Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Automatically save NX files as Parasolids or better IGS

Status
Not open for further replies.

tomasgast

Mechanical
Oct 8, 2021
2
Hi All,

I'm pretty new to NX and I'm trying to automate a siemens NX to ANSYS APDL import (this is done in Phoenix Modelcenter). I my mind, four possible approach are possible, but I'm running into problems for each approach. An import note here is that I can automatically save files as .prt, .stp or .igs within Phoenix Modelcenter.
- .prt Here I receive an error from ANSYS APDL, stating the .anf file is missing. I'm not sure what this means.
- .stp There seems to be no way to import .stp files into ANSYS APDL.
- .igs I get some warnings from ANSYS APDL, with the end result that it doesn't detect any volumes. I do believe this issue resides at the NX side, since the .igs files I used during an ANSYS course import perfectly fine (and these geometeries are quite complex). Importing is also fine when I use extremely simple shapes, such as a simple cube. Once I add a hole however, volumes are no longer detected.
- .x_t (parasolid) This import also works perfectly well but I don't know how to automate the generation of these files. Ideally, I would like to save a copy in this format each time the model closes for example.
- Alternatively, I could see myself running a very simple cmd line that opens a .prt , .stp or .igs and saves it as .x_t. But I'm not sure what program to use.

If anyone has any ideas or any direction, it would be very much appreciated.

I have attached my super simple .prt file to this thread.
 
Replies continue below

Recommended for you

There used to be a program included with the installation named ug_inspect. Ug_inspect had an option that could export the parasolid data (.x_t). I would guess it may be named nx-inspect now.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Thank Ben!

This program does seem to do exactly what I want to do! Unfortunately, I ran into another issue using it:

I use the following line to launch a file from the CMD:

C:\Users\320151073>"C:\Program Files\Siemens\NX 12.0\UGII\ug_inspect.exe" -extract_all C:\Data\Unique_Name.prt

And I end up with the following error:

ug_inspect: bad class name length 18261

I get the same error for different file locations, or when I launch from the NX specific CMD.

Do you have any idea what I'm doing wrong?
 
you can run the translators by command line.

example
$%UGII_BASE_DIR%\iges\iges.cmd ”D:\Iges\Solid.prt” o=”D:\temp\Solid.igs” d=”D:\iges\igesexport.def” l=”D:\temp\iges_log.log”

here is a link to the KB page and here


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor