Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Dependent Edit query using NXOpen in NX 11?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
0
0
US
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
 
Status
Not open for further replies.
Back
Top