Hi,
In our company, we are now using onedrive to store our CAD projects
We are facing a problem with the path for the reference files
If I attach a reference path it uses my Windows user directory :
C:\user\[MYWindowsLogin]\OneDrive-Of-My-Company\Project Folders\Shared Project\ReferenceFile.dgn
So, when a collegue opens the file, obviously the reference file is not found because his windows login is different.
Using relative paths does not help. Not sure that MS_RFDIR can help either because we have a lot of project directories
Any ideas ?
Many thanks
OneDrive creates Windows Environment variables that point to the OneDrive folder of the current user. You can use environment variables as regular variables in MicroStation.
So setting MS_RFDIR to:
MS_RFDIR = $(OneDrive)/Project Folders/Shared Project/ add additional paths with the > operator: MS_RFDIR > $(OneDrive)/Project Folders/Shared Project/other_ref_dir/ Note: slashes should be forward slashes in configuration files.
Many thanks Kevin
What is annoying with this solution is that every user need to edit the MS_RFDIR variable each time a new project is created to add the new path
A more convenient way would be to use a variable in the reference path:
$(OneDrive)/Project Folders/Shared Project/other_ref_dir/referenceFile.dgn
But I don't succed to do this.
Even this old trick does not seem to work anymore: https://communities.bentley.com/products/microstation/w/askinga/521/attaching-reference-file-with-a-config-variable
Rémy
Rémy Weill said:A more convenient way would be to use a variable in the reference path: $(OneDrive)/Project Folders/Shared Project/other_ref_dir/referenceFile.dgn But I don't succed to do this
But I don't succed to do this
Please post the statement in your configuration file that sets MS_RFDIR.
MS_RFDIR
You could try something like this in your configuration file...
SHARED_PROJECT = $(OneDrive)/Project Folders/Shared Project/ MS_RFDIR = $(SHARED_PROJECT)other_ref_dir/
If you want to add more folders...
SHARED_PROJECT = $(OneDrive)/Project Folders/Shared Project/ MS_RFDIR = $(SHARED_PROJECT)other_ref_dir/ MS_RFDIR > $(SHARED_PROJECT)other_ref_dir2/
Regards, Jon Summers LA Solutions
Thanks Jon,
Unfortunatly that doesn't help :
Rémy Weill said:What is annoying with this solution is that every user need to edit the MS_RFDIR variable each time a new project is created to add the new path
This is no different than previous uses of MS_RFDIR. Any time a new project was introduced, and there were no project-specific configurations, MS_RFDIR would have to be updated to include those new project directories.
One option to streamline this a little may be to store your Microstation workspace, configuration, and resource files on a network drive, so that everything is controlled from one location, instead of being saved locally on everybody's computer. That way, there can be a procedure when new projects are added for one person to update the MS_RFDIR path, which would then be used by everyone.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Thank you Mary.
This is something I may consider.
However, I also posted the following question because it would have been my prefered choice if possible
https://communities.bentley.com/products/microstation/f/microstation-forum/223380/ms-ce-up15-trying-to-store-a-configuration-variable-in-the-attachement-filename/687036#687036
Remy