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!

[Solved] Batch export step files from .bat file

Status
Not open for further replies.

Giovanni_S

Automotive
Feb 3, 2021
2
[Update] Removing the d=xxx.def allowed the command to run. Still need
"C:\Program Files\Siemens\NX 11.0\STEP214UG\step214ug.cmd" test.prt o=test.step
will create a step file using the default definitions

We are working on a new system to get released files to other parts of our company in STEP format. I would like to theoretically do thousands of files from thousands of folders (please do not post about the batch exporter nor the exporter inside NX)

I only need the code that ACTUALLY translates the file, the rest is no problem.

[reference thread] thread561-302702

I have attempted to use the script above (modifying to NX 11, which we are currently using) and I keep receiving the following output:

STEP to UG
! INFO- NX STEP AP214 - V11.0
! INFO-
! INFO- Start of Translation: 3-FEB-2021 9:20:45 AM
! INFO-
! STATUS- Converting Part: C:\Users\Public\Script\test.prt
! ERROR- Invalid STEP file name.
! ERROR- File must have a '.step' or .stp' extension.
! ERROR- Unable to continue processing.
! INFO-
! INFO- End of Translation: 3-FEB-2021 9:20:45 AM
! INFO-


The code I am using is:
"C:\Program Files\Siemens\NX 11.0\STEP214UG\step214ug.exe" l=test.txt d=step214ug.def test.prt o=test.step

I have tried to add the "set UGII..." top three lines but they don't seem to be necessary
I have also tried to put a full path for the output and input but I cannot see where I am going wrong.

Thank you for your time.
 
Replies continue below

Recommended for you

I would like to add, I have the definitions inside the same folder as the batch script.
Also, I tried using ".cmd" instead of ".exe" but they give me the same error
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor