Esempio n. 1
0
        private void AddCurves(_Contour myContour)
        {
            foreach (_Curve myCurve in myContour.Curves)
            {
                AddLines(myCurve);
            }

            theSession.ActiveSketch.Update();
        }
Esempio n. 2
0
        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);
        }