I´m having problems to create two separates sketches, with command "createline".
once, I create and that´s ok. But the others it´s only created when I put command "CreateCornerRectangle" together on my createline (for the second sketch)
I know this is a basic doubt....but I need that for continue my project...
here´s the code:
//first sketch
Part.SketchManager.InsertSketch(true);
vSkLines = Part.SketchManager.CreateLine(0, 0, 0, -2.18739, 0, 0);
vSkLines = Part.SketchManager.CreateLine(-3.64316, 0, 0, -7.44239, 0, 0);
vSkLines = Part.SketchManager.CreateLine(-0.63264, 2.660, 0, -6.649, 2.660, 0);
Part.SketchManager.InsertSketch(true);
Part.ClearSelection2(true);
//second sketch
Part.SketchManager.InsertSketch(true);
vSkLines = Part.SketchManager.CreateCornerRectangle(0,0.5, 0, 0.5, 0, 0);
vSkLines = Part.SketchManager.CreateLine(0, 0.04, 0, -5.18739, 0, 0);
vSkLines = Part.SketchManager.CreateLine(0, 0, 0, 0, 0.04, 0);
Part.SketchManager.InsertSketch(true);
Part.ViewZoomtofit2();
So, when I take off the line: vSkLines = Part.SketchManager.CreateCornerRectangle(0,0.5, 0, 0.5, 0, 0); , on my project only shows the first sketch...
can anyone help me
SolidworksApi macros