Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Path in search.pro include sub-folders?

DefCon5

New member
How to create the search.pro file for a perticular project,w here i am using the different components from different folders.

Also when we provide the folder path in search.pro, does it take the sub folders also in to consideration?


Thanks.
 
Simply list the folders to be searched in a search.pro (full paths recommended). Look at help. Pretty sure there's an example and some caveats listed (first line can't be blank, etc.?)

I prefer to put search path statements in project directory config.pro files, myself. When Pro/E is launched from that directory the config.pro is read. Don't need to mess with changing search_path_file statements.

Pro/E will only search the listed directory, no sub dirs.
 
If you want to make a searchpath filelisting a certain folder and all it's subfolders, there is an easy way to do this in windows (XP).


Go to DOS and place yourself in that 'certain folder' and type in the folowing:


dir *. /s /b >>search.pro


In 'that certainfolder' you now have a search.pro file. Place it where you like and then point to it using config.pro option "search_path_file" and you are done.


'
 
That's a good idea if there are a lot of 'em.

Is that the syntax that would be used in XP or is it

dir /s /b /a:d (and maybe /-p so it doesn't hang waiting for a key punch)?

(You can also cut-n-paste out of Explorer's address bar, fwiw.)
Edited by: jeff4136
 

Sponsor

Back
Top