private void AddCurves(_Contour myContour) { foreach (_Curve myCurve in myContour.Curves) { AddLines(myCurve); } theSession.ActiveSketch.Update(); }
public void BuildCurrentLayer(int layerNr, _Contour myContour) { // 3.1 create a sketch CreateSketchInLayer(layerNr); // 3.2 sketch curve AddCurves(myContour); theSession.ActiveSketch.Deactivate(Sketch.ViewReorient.True, Sketch.UpdateLevel.Model); // 3.3 build the extrude using splines in current layer CreateExtrude(layerNr); }