Skip to main content
4-Participant
Sep 4, 2023 8:31 AM UTC
Solved

Working directory relative path

Hi everybody,

I want to ask if WORKING DIRECTORY has a relative path like in "$PRO_DIRECTORY"
I want to specify the search path of "foldersearch" which is specified in the current working directory.
I would like to avoid having to edit config.pro for every new project.
I use Creo 7 without Windchill.

Thanks

 

 

 

 

 

 

 

 

24-Ruby III
Sep 5, 2023 11:54 AM UTC

Hi,

during start Creo is able to load up to 3 config.pro file.

Please read https://www.ptc.com/en/support/article/CS28227

 

In each project directory you can have Creo startup shortcut and config.pro specific for the project.

MartinHanak_0-1693914860002.png

 

5 replies

tbraxton
22-Sapphire II
Sep 4, 2023 4:12 PM UTC

I am not aware of a way to avoid loading the search.pro file or manually performing additions to the search.pro files.

 

Refer to this thread which I believe offers several options for this issue which are semi-automated:

 

Solved: Config.pro search path "relative" path - PTC Community

Translate
Z_diBossi4-ParticipantAuthor
4-Participant
Sep 5, 2023 5:01 AM UTC

Thanks for the quick response.
I have a problem with this now:

 

"If you exit the program and later want to work on the same project, you will have to repeat Step (5) again"

((5) Load the "locconfg.pro" file by following the menu picks:

File->Options->Configuration Editor->Import/Export->Import Configuration File)

 

I would like to enter a path in config.pro that always points to the current working directory.

Thanks in advance

Translate
24-Ruby III
Sep 5, 2023 7:26 AM UTC

Hi,

using relative paths in search_path option can cause a lot of trouble.

My suggestion ... always use  absolute paths.

If you start new project, then you will copy config.pro from existing project and then in Notepad you will simply replace start part of path. This is "one step" procedure - nothing time consuming.

Translate
Z_diBossi4-ParticipantAuthor
4-Participant
Sep 5, 2023 11:37 AM UTC

Thank Martin,

 

Can I use two config.pro at the same time?
A main config.pro in C:\Program Files\PTC\Creo 7.0.0.0\Common Files\text and a second config.pro in the working directory?
It only has the search_path_file N:\XXXXXXXXXXXX\search.pro, so do you load the other settings from the main config.pro the same way?

 

ZD

Translate
24-Ruby III
Sep 5, 2023 11:54 AM UTC

Hi,

during start Creo is able to load up to 3 config.pro file.

Please read https://www.ptc.com/en/support/article/CS28227

 

In each project directory you can have Creo startup shortcut and config.pro specific for the project.

MartinHanak_0-1693914860002.png

 

Translate