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!

Batch script: Convert STEP to PRT and vice versa

Status
Not open for further replies.

bcmchandra

Automotive
Jul 14, 2011
3
Hey,

I am new to UG NX. I am working on a batch script which translates STEP file to PRT file. This I do it using STEP214UG.cmd. Apparently it works, but it fails to convert PRT to STEP. Any pointers???

Am using UG NX 7.0.
 
Replies continue below

Recommended for you

Try

Set UGII_BASE_DIR=C:\Program Files\UGS\NX 7.0
Set UGII_ROOT_DIR=C:\Program Files\UGS\NX 7.0\UGII\
Set Path=%path%;C:\Program Files\UGS\NX 7.0\UGII\
"C:\Program Files\UGS\NX 7.0\STEP203UG\step203ug.cmd" test.stp O= test.prt

 
moudy, Thanks for the reply.
STEP > PRT works alright, but PRT to STEP does not work.
Can you pls help.
 
After looking at GTAC soulution center it seems you need to specify the correct .def file to tell it which direction.

For importing step214, the def file is d=%UGII_BASE_DIR%\step214\step214ug.def

For exporting step214, the def file is d=%UGII_BASE_DIR%\step214\ugstep214.def

I just ran this on my system
Set UGII_BASE_DIR=C:\Program Files\UGS\NX 7.0
Set UGII_ROOT_DIR=C:\Program Files\UGS\NX 7.0\UGII\
Set Path=%path%;C:\Program Files\UGS\NX 7.0\UGII\
"C:\Program Files\UGS\NX 7.0\STEP203UG\step203ug.cmd" test.prt O=c:\temp\step214\test.stp d="C:\Program Files\UGS\NX 7.0\STEP214UG\ugstep214.def"

 
Hey Moudy, this is what I was looking for. Thanks a ton.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor