Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

NX Journal for PMI and Location

Status
Not open for further replies.

SBlackBeard

Aerospace
Joined
Apr 21, 2022
Messages
15
Location
US
I want to be able to report all PMI labels in a part file along with the XYZ location of the leader termination point - aka what the PMI is actually pointing at. What I've tried seems to get the location of the label itself, not the point where it is terminated. I'm very new to NX Open in either VB or C#. If I had a good clue what the right strategy is, I think I could puzzle the rest out and report back here.
 
I don't often work with PMI, but I suspect they work similarly to drafting dimensions. The following thread has some code that shows the edge/feature that a dimension is attached to:

caveat: the code is from 2016 and may not work well with new options in NX. For example, the minimal load option will probably give it trouble (I recommend fully loading the data for this example). Also, if you are using the newer "exact" drafting views, the code may report the drafting curve instead of the model edge (in which case some code would have to be added to resolve the dependencies).

However, the code shows that there are "associativities" managed by the dimension that you can query through code.
 
If you have a point location in "drawing space" and want to know the location in "model space" (to borrow some AutoCAD terms), you can use the .MapDrawingToModel method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top