biw01
Automotive
- Dec 31, 2011
- 152
Hi Friends,
I have a piece of code which is working perfectly fine in NX9 but the same piece of code is throwing a problem on NX11
The code takes as input a view in which it performs view dependent edit on certain edges (within a given face) to make it visible as dashed line in the drawing view, I am collecting these edge objects from the 3D model assembly
Sub sShowBodyFacesInView(ByVal objPart As Part, ByVal objView As DraftingView, ByVal aoToShow() As DisplayableObject)
objView.DependentDisplay.ApplyWireframeEdit(ViewDependentDisplayManager.Font.Dashed, ViewDependentDisplayManager.Width.Object, aoToShow)
objPart.DraftingViews.SuppressViewBreaks(objView)
objView.Commit()
objPart.DraftingViews.RestoreViewBreaks(objView)
objView.Update()
End Sub
Even though the code is not throwing any error, I do not see the edges visible as dashed line, when this code is fired in NX11, in the final drawing view. Please help!
Thank you,
Amitabh
I have a piece of code which is working perfectly fine in NX9 but the same piece of code is throwing a problem on NX11
The code takes as input a view in which it performs view dependent edit on certain edges (within a given face) to make it visible as dashed line in the drawing view, I am collecting these edge objects from the 3D model assembly
Sub sShowBodyFacesInView(ByVal objPart As Part, ByVal objView As DraftingView, ByVal aoToShow() As DisplayableObject)
objView.DependentDisplay.ApplyWireframeEdit(ViewDependentDisplayManager.Font.Dashed, ViewDependentDisplayManager.Width.Object, aoToShow)
objPart.DraftingViews.SuppressViewBreaks(objView)
objView.Commit()
objPart.DraftingViews.RestoreViewBreaks(objView)
objView.Update()
End Sub
Even though the code is not throwing any error, I do not see the edges visible as dashed line, when this code is fired in NX11, in the final drawing view. Please help!
Thank you,
Amitabh