static void CreatePoints(Part part) { Window window = Window.ActiveWindow; List <PointTarget> points = ImportingFun.LoadSampleData(); foreach (var PointTarget in points) { //MessageBox.Show($"Line between {points[0]} and will be created"); Point.Create(PointTarget.xPoint, PointTarget.yPoint, PointTarget.zPoint); } }
static void CreateLines(Part multiLine) { Window window = Window.ActiveWindow; List <PointTarget> points = ImportingFun.LoadSampleData(); foreach (var PointTarget in points) { //MessageBox.Show($"Line between {points[0]} and will be created"); DesignCurve.Create(multiLine, CurveSegment.Create(Point.Create(PointTarget.xPoint, PointTarget.yPoint, PointTarget.zPoint), Point.Create(PointTarget.x2Point, PointTarget.y2Point, PointTarget.z2Point))); } }