Skip to main content
1-Visitor
January 29, 2014
Solved

Use trail files for batch conversion

  • January 29, 2014
  • 2 replies
  • 5423 views

Hi

I want to use trail files for converting files.

Right now every time I issue a trail command

which opens the file dialog it starts up always inside /users/<name of user>/documents

 

Is there a way to avoid and have creo use the directory form which it was run from, or maybe even specify the directory from where file open will start.

When I start creo using the command line, its working directory is the local directory from which the executable was called but the file open command always opens up inside /users/<name of user>/documents which makes it impossible to choose local files.

 

Thanks in advance

Dimi


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by Dimi

Thanks fpr the reply,

after your suggestion I saw that I can create a config.pro file and put the

file_open_default_folder working_directory

For this I can either change the global config or create a local config.pro file.

Dimi

2 replies

12-Amethyst
January 29, 2014

Are you trying to call Creo with the -nographics option?

Why don´t you just include in the beginning of the trailfile the "set working directory" command?

Dimi1-VisitorAuthor
1-Visitor
January 30, 2014

I did not even know that there is a -nographics option... Right now creo openup normaly and shuts down again. This seams like a nice option. Do you supplu it on the command line? What other command line parameters can I use?

According to @Doug and from what i have read I can use the file_open_default_folder inside a config.pro file.

Are you suggesting setting as a command right into the trail file? If yes this is even better since the trail file will be self contained and not need a external config.pro file to function correctly.

How is the syntax of this command? Is there a doc for all available trail file commands?

Thanks

12-Amethyst
January 30, 2014

Yes, is a good option if you are concerned with performance. Creo is much more faster working with this option on.

I have a aplication for batch processing too and is possible to run it in background. The disavantage is that you can´t see what is happening

I think this is how I called it from command line:

C:\Program Files\PTC\Creo 2.0\Parametric\bin\Parametric.exe -g:no_graphics trail_file.txt

In the beginning of the trailfine I define the working directory and that´s it, it works fine for me.

Doesn´t exist a document with trail file commands. These commands are generated when you are working with creo, and trailfiles were initialy created for recovery purposes, not for programming.

I suggest to read some articles at:

inversionconsulting dot blogspot dot com/2008/05/proe-anatomy-of-trail-file-part-1.html

Some good and rare info there.

Godd luck.

Jose

21-Topaz II
January 29, 2014

Look at the config optio "file_open_default_folder". I beleive the default is "my_documents", you want it set to "working_directory".

Dimi1-VisitorAuthorAnswer
1-Visitor
January 30, 2014

Thanks fpr the reply,

after your suggestion I saw that I can create a config.pro file and put the

file_open_default_folder working_directory

For this I can either change the global config or create a local config.pro file.

Dimi