Showing results for 
Search instead for 
Do you mean 

Posting feature information

I understand this has been asked several times before but I have found no solid answer, so I will ask it once again. Hey maybe this could help someone in the future. I will try to make this as clear as possible.


We have a part that we drill several hundred holes. These holes have an alphnumeric designation (for inspection purposes). What I need is for my post to ouput the information with each hole. What I am thinking is something along the lines of mom_attr_PART_**** although that only picks up the attributes under File>Properties. I need to pick up the attributes in a feature like, let's say a "body" or "subtraction". I looked at the Expression option but I don't believe that's a good fit for my situation. I also looked at the FBM and that would be fine if I wanted to grab the whole group. Plus it's quite random. Subsiquent parts may be solids with features or may be as simple as a point set. I just need the simplest way to label them and the ability post that info.


Re: Posting feature information

You could create a custom DLL, that you call from the post to get the information from the cylindrical face at the current position.


In general information from the machined body is hard to get.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 ( | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Posting feature information

Like Stefan said, you probably need to write some custom API code.


My general approach would be

1) Attribute the hole geometry with desired info (object attributes)

2) As you are doing drilling (PTP) or holemaking, for each hole, call API & pass hole center

API program would:

- find hole closest to hole center passed in

- extract object attribute(s) desired

- set mom variables

- return


Could get a bit tricky if holes intersect other holes at/near "top" surface of the part (for that hole).

You might need to pass tool axis & compare to hole's axis (if it exists) to make sure you get the right one.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled

Re: Posting feature information

Some examples exist.  See NX install folder.  In NX9:



Also in UGAnswer (aka symptoms/solution database) at


Also see docs

Programming tools (note this is a separate install from rest of docs)

->Click here -> NX Open -> Open for C/C++ -> Open C reference guide -> UF_MOM section

UF_MOM_extend_xlator and UF_MOM_execute_command

I'm pretty sure there are new "Common" API calls as well.


Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled

Learn online

Solution Information