×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Batch script: Convert STEP to PRT and vice versa

Batch script: Convert STEP to PRT and vice versa

Batch script: Convert STEP to PRT and vice versa

(OP)
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.
 

RE: Batch script: Convert STEP to PRT and vice versa

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

 

RE: Batch script: Convert STEP to PRT and vice versa

(OP)
moudy, Thanks for the reply.
STEP > PRT works alright, but PRT to STEP does not work.
Can you pls help.

RE: Batch script: Convert STEP to PRT and vice versa

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"

 

RE: Batch script: Convert STEP to PRT and vice versa

(OP)
Hey Moudy, this is what I was looking for.  Thanks a ton.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources