示例#1
0
 public void DrawSwLine(SwLine swLine)
 {
     var p1 = swLine.p1;
     var p2 = swLine.p2;
     swLine.ThisSketchLine = swSketchManager.CreateLine(p1.x, p1.y, p1.z, p2.x, p2.y, p2.z) as SketchLine;
 }
示例#2
0
 public void CreateSwLine(Vector3 p1, Vector3 p2)
 {
     if (model_code_xrefDMC.Count == 0)
         firstDmcLineInCode = dmcCode.Count - 1;
     model_code_xrefDMC.Add(dmcCode.Count - 1);
     var l = new SwLine(p1, p2, dmcCode.Count - 1);
     dmcLines.Add(l);
     modDoc.ViewZoomtofit2();
 }