Skip to main content
1-Visitor
November 10, 2010
Question

Using Search Paths in Assembly Folder

  • November 10, 2010
  • 1 reply
  • 6870 views

I'm having trouble managing components that are used in multiple different assemblies. For example, I have a "Bearing Housing" component that is used in two main assemblies: "Large Housing" and "Small Housing". The way i do things currently, I have to have Bearing Housing.prt file saved in both assembly folders.

Is there a way to use shortcuts or pointer files?

I would like to have one master Bearing_Housing.prt file and shortcuts / pointers to that file in Large Housing and Small Housing folders. I'm aware that i could just not have the Bearing_Housing.prt file in either of the two folders, but in that case i would have to retrieve the file afer i open the assembly, or have Bearing_Housing.prt in session before i open either of them. I don't want to have those limitations, if possible.

I'm using WF5 M040, and I don't have Windchill...


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.

1 reply

1-Visitor
November 11, 2010

Search paths is what I was looking for...

However, I could still use some clarification; If i place a search path option in my config file I would have to have multiple config files. How do you manage those? How do you tell Pro-E which one to open?

I was thinking about placing a search path file in the same directory as the assembly file, and set options in the config file to look for search path file in the work directory. Only Issue with that is having to designate the work directory every time I want to open an assembly. Also, I would not be able to open more than one assembly at a time, since you can't have more than one work directory at the same time.

Does anyone have a solution for this issue?

1-Visitor
November 11, 2010

Admir,

You actually have two options, based on two different config settings (you do not need multiple config files):

search_path

search_path_file

If you use search_path you can have more than one file designated in your config file. However, if you have more than a few files, the better option is to use the search_path_file option. With the latter option, you simply designate the full path and file name of a text file that has each desired path-file listed, one per line. Then, to add paths, you don't have to modify your config file; just modify the text file.

David

1-Visitor
November 11, 2010

P.S. Rereading your second post, a couple more comments:

(1) You can have assemblies from different directories open at the same time, even though you can have only one Working Directory at a time, but I don't think that is relevant to your underlying question, and you can make a mess of things when you start saving things to the wrong directory.

(2) If you really want your Working Directory to be designated by the search_path option (not sure why you would want to do this), you can always create a temporary one-line config file in your Working Directory during a particular working session. (You can always load or create specialty config files in addition to the primary config files that are loaded automatically.)