I am working on a major revision to our network workspace and am trying to build the MS_RFDIR configuration variable with our knowing all of the possible directories that will need to be included.
I have a base set of directories to include in this variable but some of our design build projects have additional directories that need to be added as the project progresses. I don't know the directory names until the files are recieved from another design firm and I don't want to continually edit the PCF to add the new directories
Example:
Base Directory: /DesignBuild/
/DesignBuild/CompanyA/ #Additional subdirectory added after creation of pcf file
/DesignBuild/CompanyB/ #Additional subdirectory added after creation of pcf file
Is there a way to have all subdirectories(CompanyA and CompanyB) of a known directory (DesignBuild) added automatcially to the MS_RFDIR without using VBA or another other programming language?
Thanks,
Jason Brame
Microstation V8i SS2:08.11.07.443
Hi Jason, I am afraid there isn't an option to automatically add reference's folder paths to the MS_RFDIR.
I guess currently this would require some code to add the new path to the variable in one of the configuration files.
Another quick way for manually doing this (if you are not already doing it) is to create a text file with the folders/subfolders list using the MSDOS "dir" command, then use a good text editor (such as Notepad++) to quickly change each folder path into an MS_RFDIR > .... entry that can be pasted in your PCF or other .cfg file.
It will only take a minute using the advanced find/replace features and you can so it on multiple files at the same time.
Answer Verified By: Jason Brame
Unknown said:Another quick way for manually doing this (if you are not already doing it) is to create a text file with the folders/subfolders list using the MSDOS "dir" command, then use a good text editor (such as Notepad++) to quickly change each folder path into an MS_RFDIR > .... entry
Good suggestion!
Unknown said: Create a text file ... that can be pasted in your PCF or other .cfg file
Almost! Create that text file and save it with a reasonable name (e.g. ContractorReferences.cfg). Then, edit the existing PCF file and include the contractor's references...
%include ContractorsReferences.cfg
That way, you can edit the ContractorsReferences.cfg file whenever you want without touching the PCF file.
Regards, Jon Summers LA Solutions
Thanks Jon, that is definitely another good way of administering a large variable list. You could actually then reference this "ContractorsReferences.cfg" (or whatever it will be called) in different PCF and hence any modification to it will be immediately picked by every projects that requires this list.
Jon and Marco,
Thanks for the advice.
Jason
You're welcome Jason, I have created a WiKi article on how to to do this, including Jon's suggestion of using a separate cfg file.
communities.bentley.com/.../10431.aspx