ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JKJohannes Kronberger11/09/2015

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?