2 Replies Latest reply on Sep 11, 2015 2:42 AM by Johannes Kronberger

    how to add a temporary body as a feature

    Johannes Kronberger

      I'm new to solidworks api here, @I've created a temporary body using the modeller,

       

                  //Create temporary loft body

                  swModeler = (Modeler)SwApp.GetModeler();

                  swBody = swModeler.CreateLoftBody2

                          (PModDoc: swModel

                          , Profile: profile.ToArray()

                          , GuideCurve: guides

                          , Centerline: null

                          , IsThinBody: false

                          , ThinType: 0

                          , Thickness1: 0

                          , Thickness2: 0

                          , FeatureScope: true

                          , IsBlendClosed: false

                          , KeepTangency: true

                          , ForceNonRational: false

                          , IsSolidBody: true

                          , TessTolFactor: 1

                          , StartTangentLength: 1

                          , EndTangentLength: 1

                          , StartTangentDir: true

                          , EndTangentDir: true

                          , StartMatchingType: 1

                          , EndMatchingType: 1

                          , Merge: false);

       

      which works fine and was basically copied from the examples. However this is only a temporary body. I can't figure out the api calls to insert it as a named feature. What's the process for this?