Skip to main content
4-Participant
June 14, 2023
Question

Creo 4.0 Distributed Batch won't go beyond status "Unsubmitted"

  • June 14, 2023
  • 3 replies
  • 6379 views

I am trying to batch convert drw to pdf. I have set the pro_lang=English as suggested by some threads. I have created a config.pro with search paths pointing to the parts of which drawings are to be converted to pdf. However, when I run distributed batch it does not runs, instead it gets stucked at "Unsubmitted" stage. The status colors are all yellow. Even if I stop the process it does not stops, rather I have to force close. I have reconfigured the creo to use creo distributed batch. Tried even from ptcdbatch.bat file. But of no use. Please help me as I need to batch convert more than 300 drawings and would take ages to do that.

3 replies

KenFarley
21-Topaz II
June 14, 2023

This comes up all the time. Here's a similar discussion with solution. I've used this "trail file method" in the past and it worked very well for me. Not the solution PTC wants but the one I prefer.

 

community.ptc.com/t5/System-Administration/PTC-Creo-Distributed-Batch/m-p/596053 

4-Participant
June 16, 2023

@KenFarley  I fear I cant use that exe file. I am using Creo in my organization, which blocks exe download. 

KenFarley
21-Topaz II
June 16, 2023

The executable file is an assisting program that helps to create the trail file that will be run in Creo. I did not use it - we, too are under strict download policies and can't install things freely.  I just reference the discussion because it's easier for people who might not have as much experience working with files. When I did this type of thing, I did the following:

(1) Start a fresh session of Creo.

(2) Do the steps needed to process exactly one file in the manner I want to.

(3) Close Creo.

(4) Copy the last trail file created by Creo that recorded the steps I need, saving it to something else like "make-dxfs.txt".

(5) Edit the trail file, taking out any extra stuff I don't need, like navigating our network to get to the directory I'm working in, etc.

(6) Figure out what set of commands is needed to do the task for each file I want to process.

(7) Using a sophisticated editor (that does macros), incorporate a list of the files I want to work on by copying the "action block" of commands in the trail file and changing the name of the file they work on to the next one in the list, etc. Thus I end up with block after block of commands, each working on one file.

(8) Once I've got the necessary trail file built, I run it from within Creo.

 

Some pointers:

(a) You're processing 100s of files, so it is best to include commands in each "processing block" that will erase the current object from memory. Otherwise you run the chance of the process failing due to too many files open.

(b) Before unleashing the trail file, do a test run with a few files to make sure your logic is correct and you're getting exactly what you want.

(c) You might, if possible, want to copy the files to a temporary directory and work from there, to keep all the files safe from any mishaps. Standard file hygeine stuff.

24-Ruby III
June 16, 2023

Hi,

please record video showing steps you did when used ptcdbatch.bat

4-Participant
June 16, 2023

@MartinHanak Unfortunately, I cannot install any app, neither Xbox game bar is enabled by the admin. So, I cannot record the video. 

24-Ruby III
June 16, 2023

Hi,

please read following documents

https://www.ptc.com/en/support/article/CS60575

https://www.ptc.com/en/support/article/CS325222

 

I tested PDF export in Creo 7.0 successfully.

 

ptcdbatch.bat

MartinHanak_0-1686918301212.png

 

I started Creo, opened some drawing and in PTD export dialog I clicked Options button and saved config_pdf.dop file (it contains PDF Export profile).

 

I started ptcdbatch.bat and defined PDF export batch and start it

MartinHanak_1-1686918586637.png

 

IMPORTANT NOTE:

By default ptcdbatch.bat uses following files located in Parametric\bin subdirectory

parametric.bat

parametric.exe

parametric.psf

 

4-Participant
June 16, 2023

@MartinHanak , I followed the process as mentioned by you in the above steps, but still the issue persists. 

KS_10705911_0-1686930627903.png

Check the configuration files:

KS_10705911_1-1686930665772.png

Also, I have edited the batch file for ptcdbatch.bat as suggested by you (adding indentations accordingly). 

Is there any way how can I check the backend process, where exactly it is getting stuck, so that I can post the issue to this thread. 

24-Ruby III
June 17, 2023

Hi,

MartinHanak_1-1686991180454.png

path to files contain spaces. This can cause problems. Place files to different directory and test export again.