Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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

SBlackBeard

Aerospace
Apr 21, 2022
13
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.
 
Replies continue below

Recommended for you

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.
 

Part and Inventory Search

Sponsor