Skip to main content
4-Participant
September 4, 2023
Solved

Working directory relative path

  • September 4, 2023
  • 2 replies
  • 2722 views

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

 

 

 

 

 

 

 

 

Best answer by MartinHanak

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

 

2 replies

tbraxton
22-Sapphire II
22-Sapphire II
September 4, 2023

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

Z_diBossi4-ParticipantAuthor
4-Participant
September 5, 2023

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

24-Ruby III
September 5, 2023

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.

Z_diBossi4-ParticipantAuthor
4-Participant
September 5, 2023

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

24-Ruby III
September 5, 2023

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