Unable to fully process batch file for STEP to PRT
Unable to fully process batch file for STEP to PRT
(OP)
Sorry if this is a similar repeat, but I was unable to reply thread561-302702: Batch script: Convert STEP to PRT and vice versa.
Can someone tell me what I'm doing wrong with this batch file (small example in txt format)? Each line has the identical syntax, with the exception of the file name I'm processing. I can only get the first line to process the step to prt output, and then it fails to process the remaining batch items.
I have tried "backspacing" lines 2,3,4 & 5 so that there isn't a "linefeed" between each line. (Everything runs together.) When I try that, only the last item in the batch file will process.
What am I doing wrong?
Can someone tell me what I'm doing wrong with this batch file (small example in txt format)? Each line has the identical syntax, with the exception of the file name I'm processing. I can only get the first line to process the step to prt output, and then it fails to process the remaining batch items.
I have tried "backspacing" lines 2,3,4 & 5 so that there isn't a "linefeed" between each line. (Everything runs together.) When I try that, only the last item in the batch file will process.
What am I doing wrong?
J. Tuttle
Senior Designer
Weir Minerals Lewis Pumps
St. Louis, MO





RE: Unable to fully process batch file for STEP to PRT
To Get there in WINDOWS:
START -> ALL PROGRAMS -> SIEMENS NX -> TRANSLATORS -> STEPAP214 -> IMPORT
RE: Unable to fully process batch file for STEP to PRT
The Java Runtime Environment (JRE) was not found. Install your own JRE and set UGII_JAVA_HOME in C:\SPLM\NX85\ugii\ugii_env.dat to the directory containing the bin and lib directories. Press any key to continue...
And then it quits. I am on a Tier-4 network and corporate will not allow us to alter the ugii_env.dat file.
Therefore, I am trying this workaround method, which would probably work if I can find the solution.
I can either read the log file after running the bat file, or read it directly off the DOS screen as it's running to see the type of error(s) I'm getting. I have tried putting a REM in front of several lines to see what happens and letting it export at least 1 or 2 that don't have REM lines. The error I'm getting is:
THE FILE NAME, DIRECTORY NAME, OR VOLUME LABEL SYNTAX IS INCORRECT.
I have reordered the lines to test the naming convention, etc., and the results are the same. It usually exports whichever file it sees first and then quits. It just doesn't want to continue the next line.
Translator exiting...
Any other suggestions?
J. Tuttle
Senior Designer
Weir Minerals Lewis Pumps
St. Louis, MO
RE: Unable to fully process batch file for STEP to PRT
RE: Unable to fully process batch file for STEP to PRT
The solution to this batch problem, is to append the DOS command CALL to each and every line inside the batch script!
REF: https://community.plm.automation.siemens.com/t5/Of...
EXAMPLE:
call "C:\SPLM\NX85\...
call "C:\SPLM\NX85\...
This will now generate all the STEP files to PRT files!
Thanks again Moudy!
J. Tuttle
Senior Designer
Weir Minerals Lewis Pumps
St. Louis, MO