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!

Unable to fully process batch file for STEP to PRT

Status
Not open for further replies.

jtuttle

Mechanical
Aug 5, 2013
5
Sorry if this is a similar repeat, but I was unable to reply thread561-302702.

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
 
 http://files.engineering.com/getfile.aspx?folder=d48b265e-0faa-42cf-9b60-ce0b54574da2&file=convert.txt
Replies continue below

Recommended for you

Try using the external STEP translator to do a batch translation.
To Get there in WINDOWS:
START -> ALL PROGRAMS -> SIEMENS NX -> TRANSLATORS -> STEPAP214 -> IMPORT

 
jerry1423 - Using the STEP translator as suggested presents a problem in itself. It doesn't work for me. I'm sure you've seen this error before but I'll post it anyway...

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
 
I worked at the Weir Minerals in Waukesha, WI for five years
 
After tracking a user down, named Moudy, in a different website forum, I got his attention and he was able to help me fix this!

The solution to this batch problem, is to append the DOS command CALL to each and every line inside the batch script!
REF:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor