//поворот эскиза на угол public void RotateToDegree(double degree, int indexSketch) { swDoc.SketchManager.CreateCenterLine(0.000000, 0.000000, 0.000000, 1, 0.000000, 0.000000); swDoc.Extension.SelectByID2("Line2", "SKETCHSEGMENT", 0.5, 0, 0, false, 0, null, 0); swDoc.Extension.SelectByID2("Line1", "SKETCHSEGMENT", -0.1, 0, 0, true, 0, null, 0); swApp.SetUserPreferenceToggle((int)swUserPreferenceToggle_e.swInputDimValOnCreate, false); swDoc.AddDimension(-0.1, 0.1, 0); var dimension = swDoc.Parameter("D1@Эскиз" + (indexSketch + 2).ToString()); dimension.SystemValue = (degree * (180 / Math.PI) + 90) / 100; }