Change routing linewidth with NXOPEN
Change routing linewidth with NXOPEN
(OP)
NX 7.5 / C#(.NET Framework 3.5) / Windows 7 Pro.(X64)
In the non-master mode,
There is a pipe drawing what is made with routing.
How to set separately linewidth for bodyline(outerline) and routingline(innerline)
|-------------------------|
| ----------------------- |
|-------------------------|
RED: Flange, BLUE: Outerline, BLACK: Innerline
I wanna set... RED and BLUE are 'Thick' and BLACK is 'Thin'.
I tried with below code but no result.
In the non-master mode,
There is a pipe drawing what is made with routing.
How to set separately linewidth for bodyline(outerline) and routingline(innerline)
|-------------------------|
| ----------------------- |
|-------------------------|
RED: Flange, BLUE: Outerline, BLACK: Innerline
I wanna set... RED and BLUE are 'Thick' and BLACK is 'Thin'.
I tried with below code but no result.
CODE --> c#
public void OuterLine() //Effected not only outerline but also innerline. { component cp = targetPart.Tag; ufs.Obj.SetLineWidth(cp.Tag, 1); } public void InnerLine() //Not effected. { LineSegmentCollection lsCol = workPart.SegmentManager.LineSegments; LineSegment ls; IEnumerator iEnum3 = lsCol.GetEnumerator(); iEnum3.Reset(); while (iEnum3.MoveNext()) { ls = (LineSegment)iEnum3.Current; ufs.Obj.SetLineWidth(ls.Tag, 2); } ArcSegmentCollection asCol = workPart.SegmentManager.ArcSegments; ArcSegment ast; IEnumerator iEnum4 = asCol.GetEnumerator(); iEnum4.Reset(); while (iEnum4.MoveNext()) { ast = (ArcSegment)iEnum4.Current; ufs.Obj.SetLineWidth(ast.Tag, 2); } }




