Why the "Insert3DSketch" comes after "CreateLine". I mean if I want to create mutiple 3D Lines in an assembly document (not creating the explode lines as in the help document), I would firstly have to create a sketch. Does that mean I have to insert the 3Dsketch first?
//Create a line
swSketchSegment = swSketchMgr.CreateLine(0, 0.1, 0, 0, 0.3, 0);
// Close the 3D sketch
swSketchMgr.Insert3DSketch(true);
From example "Insert Explode Line Sketch and Jog Line Example (C#)".
SolidworksApi macros