Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Extracting NX model info 1

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
Is it possible to export NX9 model information to a spreadsheet (or xml file)? We need info relating to Cylindrical Faces and Planar Faces (i.e. Axis vector / Normal vector Direction Cosines, Hole Center Coordinate value, Feature Type (Cyl or Planar Face)). What API should I use? Also need to export any attributes associated with the feature. I don't mind exporting ALL data associated with the 3D model to a spreadsheet and then searching the spreadsheet for relevant information.

Thank you.
 
Replies continue below

Recommended for you

Go to Menu->Information->object(clt+i)

Select Face or feature of which you need information. You will get a text file with all the information. You can save this text file and import to Excel using "from text" option in "data" tab.

Ranjith P R
Automotive Seatings
 
Thank you, Ranjith. We are aware of this method. Our program currently cycles through all Faces of the part and exports this info to Excel. We are trying to find a faster method...eg. accessing info from prt file.
 
Huh, NXOpen should be able to get that information but it sounds like you are already doing that?
 
We are obtaining that information by programmatically reading each face in the model file and exporting the relevant info. We are trying to find a faster way...i.e. is it possible to read the prt file?
 
No NXopen is probably as fast as it gets, a least with the tools that are available to the user. But is speed really an issue when you are doing excel analysis afterwards? (which should be a few magnitudes slower)
 
Thought you could probably compile a command line tool that would work without a graphical NX session which might speed things up.
 
An NX/Open or SNAP program is the fastest way. To improve performance, we'd need to look at the details of how you're cycling through objects, how you're reading/calculating information, and how you're writing it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor