If my understanding of your question is correct, the go to: FILE, SAVE AS. Then at the bottom of the box in the SAVE AS TYPE, select IGS. Make sure to select your directory.
While I don't think NX Open has a specific function for saving a Part file in an iges format, there is the 'iges.bat' file in the \IGES folder that you could call from within an NX Open program and pass it the names of the files that you would want converted to iges. Note that the 'iges.bat' file calls the 'iges.cmd' file which supports several options for defining the output directory as well as to set-up the various translator options. Of course, you could just run IGES from the Windows 'Start' menu.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA Siemens PLM: UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
thanks very much for the reply. I have tried to record a journal file and use that as a reference to write c++ code to covert prt file to igs. Blow is the c++ file I have tried:
//------------------
UF_initialize();
// Initialize the NX Open C++ API environment
NXOpen::Session *theSession = NXOpen::Session::GetSession();
// NXOpen:art *Part1=(NXOpen:art*)NXOpen::NXObjectManager::Get(part_tag);
but it gives me error at the place of :
*DexManager1= NXOpen:exManager(theSession);
NXOpen::IgesCreator *igesCreator1=DexManager1->CreateIgesCreator();
could anyone please tell me how to correct it? How can I initialize the CreateIgesCreator() method from a nxsession?
i read the journal file back to nx and it doesn't allow me to run it. I think it is not a run-able one by missing some definitions such as program execution entrance.
I don't know. I am not familiar with nx/nxopen, but just trying to call some nx functions in my program.
yes, I have tried to save my geometry using:
UF_initialisze();
UF_PART_new();
UF_terminate();
and it works fine which can generate the .prt file directly.
For the program above, the compiler gives no complain, the error(segmentation fault) only comes in when it gets to the line:
[highlight #FCE94F]*DexManager1= NXOpen:exManager(theSession);[/highlight]
NXOpen::IgesCreator *igesCreator1=DexManager1->CreateIgesCreator();
so i think the way I instantiate the DexManger and IgesCreator objects are wrong?