Skip to main content
Jul 19, 2012 11:15 PM UTC
Acknowledged

Automatically include in the search path all directories present in the Working directory

Related products:Creo Parametric

Instead of having to write all the new search paths in the search.pro file whenever we start a new project that includes parts and assemblies from other directories, the system should automatically (behavior would be controlled by a config.pro option) consider all the directories and subdirectories under the Working directory as valid directories to search first for objects.

Working_directory

               |

               |-----------> 2D_Drawings

               |-----------> Customer_files

               |-----------> Injec_system

               |-----------> Others...

This way we could always add more directories to the main project directory (working directory) and keep a better organized project approach.

15 replies

BariAuthor
Aug 20, 2012 4:11 PM UTC

Hello Brian,

Thanks for your point of view on this. I totally agree with you on that we must be selective and fortunatly there's so much where we can improve on Creo's productivity. This is just one more for the list. I only hope that PTC integrates more and more user's ideas because there many valuable ones here.

Thanks.

Dec 5, 2012 11:46 PM UTC

When i came on board here there was a raft of sub directories.... everytime i loaded a model... i had to hunt for the missing parts and with a mould base your talking a lot of parts... however if you modify the "search.pro" file and add in each and every sub-directory heck it finds the parts... well, with literally hundreds of sub-directories of files and me being lazy what i did was go back to my DOS days... (i know, i am dating myself, but no one else will)... here is what ya do youngins....

START/Programs/Accessories/Command Prompt

(my directory is on the J: drive so i will use that as the example)

c:\ j: (this will take me to the J: drive)

j:\ cd \CAD_FILES (this will take me to where the cad files are stored on my hard drive, yours is different im guessing)

j:\CAD_FILES\  dir /s /b /ad >mysubdirectories.txt (this will make a list of all subdirectories without files and make a new file called "mysubdirectories.txt" place the list in there)

.... time passes... mine is on a server, and there are lots so it takes a few minutes....

j:\CAD_FILES\ type mysubdirectories.txt (prepare to have your mind blown as you see the list of sub directories fly past....

now...

START/Programs/Accessories/Notepad

using notepad, navigate to the mysubdirectories.txt file and open it

choose from the top ... edit, select all, edit, copy...

open a file explorer session....

search for the "search.pro" file.....

right click and open it with notepad

go to the last line in the file ...

from the top line pick edit, paste.....

and the directory file will paste below.... save and  your done....

now you just have to add new ones to the file or if your lazy like me... add the commands to the autoexec.bat file and direct the output directly to the "search.pro" file so everytime you boot a fresh list is produced...... but hey.... this is 20yr old stuff your never going to need to know DOS again..... BvD

Jun 12, 2013 4:22 PM UTC

oh if you want to make it a super quick one line sort of thing...

open notepad and make a file called proesubfixer.bat

put these lines in it

del j:\ptc_standards\proe_stds\Configs\search.pro

dir j: /s /b /ad >j:\ptc_standards\proe_stds\Configs\search.pro

this is the path to my directory... so now i just open a command prompt

and type proesubfixer and hit the enter key

when my c:> comes back all the directories are updated.

Jun 12, 2013 4:23 PM UTC

oh and dont forget to change the line in config.pro to look for the search.pro file.

Jun 14, 2018 6:57 PM UTC
Status changed to: Acknowledged