<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/223295/ms-ce-15-2-references-files-path-to-onedrive-folder</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/687040?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 14:16:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:053a696d-7fc8-4564-ad05-25645fccebad</guid><dc:creator>R&amp;#233;my Weill</dc:creator><description>&lt;p&gt;Thank you Mary.&lt;/p&gt;
&lt;p&gt;This is something I may consider.&lt;/p&gt;
&lt;p&gt;However, I also posted the following question because it would have been my prefered choice if possible&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/microstation/f/microstation-forum/223380/ms-ce-up15-trying-to-store-a-configuration-variable-in-the-attachement-filename/687036#687036"&gt;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&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Remy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/687034?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 14:02:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:57a17e37-a62d-4937-93ca-fa0c163bd45d</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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&amp;#39;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686990?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 10:38:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:76668032-729b-4390-b2bc-9a475b8b770b</guid><dc:creator>R&amp;#233;my Weill</dc:creator><description>&lt;p&gt;Thanks Jon,&lt;/p&gt;
&lt;p&gt;Unfortunatly that doesn&amp;#39;t help :&lt;/p&gt;
[quote userid="1078036" url="~/products/microstation/f/microstation-forum/223295/ms-ce-15-2-references-files-path-to-onedrive-folder/686986"]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[/quote]
&lt;p&gt;R&amp;eacute;my&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686989?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 10:34:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9bc40f24-23ff-4811-8930-11a2816cbd1e</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1078036" url="~/products/microstation/f/microstation-forum/223295/ms-ce-15-2-references-files-path-to-onedrive-folder/686986"]&lt;p&gt;A more convenient way would be to use a variable in the reference path:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$(OneDrive)/Project Folders/Shared Project/other_ref_dir/referenceFile.dgn&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t succed to do this&lt;/p&gt;[/quote]
&lt;p&gt;Please post the statement in your configuration file that sets &lt;code&gt;MS_RFDIR&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You could try something like this in your configuration file...&lt;/p&gt;
&lt;pre&gt;    SHARED_PROJECT = $(OneDrive)/Project Folders/Shared Project/
    MS_RFDIR = $(SHARED_PROJECT)other_ref_dir/
&lt;/pre&gt;
&lt;p&gt;If you want to add more folders...&lt;/p&gt;
&lt;pre&gt;    SHARED_PROJECT = $(OneDrive)/Project Folders/Shared Project/
    MS_RFDIR = $(SHARED_PROJECT)other_ref_dir/
    MS_RFDIR &amp;gt; $(SHARED_PROJECT)other_ref_dir2/
&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686986?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 10:26:14 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:25d8b2b5-d6e1-464d-9068-ee6d403d327a</guid><dc:creator>R&amp;#233;my Weill</dc:creator><description>&lt;p&gt;Many thanks Kevin&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;A more convenient way would be to use a variable in the reference path:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$(OneDrive)/Project Folders/Shared Project/other_ref_dir/referenceFile.dgn&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t succed to do this.&lt;/p&gt;
&lt;p&gt;Even this old trick does not seem to work anymore:&amp;nbsp;&lt;a href="/products/microstation/w/askinga/521/attaching-reference-file-with-a-config-variable"&gt;https://communities.bentley.com/products/microstation/w/askinga/521/attaching-reference-file-with-a-config-variable&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;R&amp;eacute;my&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686792?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 18:03:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2e1c3c24-9f1f-49f5-ba79-10ec3e18e3e0</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;I believe %OneDrive% is the generic and %OneDriveCommercial% only exists if you&amp;#39;re using OneDrive for business. The article you link to mentions %OneDriveConsumer% is the regular user OneDrive version. I have commercial version installed and have both %OneDrive% and %OneDriveCommercial% (pointing to the same path). I assume all products create the %OneDrive%&lt;/p&gt;
&lt;p&gt;if you want a more fail safe way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;%undef ustnOneDrive
%if !defined (ustnOneDrive) &amp;amp;&amp;amp; defined (OneDrive) &amp;amp;&amp;amp; ($(OneDrive) != &amp;quot;&amp;quot;) &amp;amp;&amp;amp; exists ($(OneDrive))
	ustnOneDrive=$(OneDrive)/
%endif
%if !defined (ustnOneDrive) &amp;amp;&amp;amp; defined (OneDriveCommercial) &amp;amp;&amp;amp; ($(OneDriveCommercial) != &amp;quot;&amp;quot;) &amp;amp;&amp;amp; exists ($(OneDriveCommercial))
	ustnOneDrive=$(OneDriveCommercial)/
%endif
%if !defined (ustnOneDrive) &amp;amp;&amp;amp; defined (OneDriveConsumer) &amp;amp;&amp;amp; ($(OneDriveConsumer) != &amp;quot;&amp;quot;) &amp;amp;&amp;amp; exists ($(OneDriveConsumer))
	ustnOneDrive=$(OneDriveConsumer)/
%endif

%if !defined (ustnOneDrive)
    %error Unable to locate Microsoft OneDrive environment variable
%endif

MS_RFDIR = $(ustnOneDrive)Project Folders/Shared Project/
MS_RFDIR &amp;gt; $(ustnOneDrive)Project Folders/Shared Project/other_ref_dir/&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t find any documentation at Microsoft as to which environment variables are created when.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686790?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 17:44:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f579c37b-8ff0-4eb8-b1f1-96413162b5a8</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="2378" url="~/products/microstation/f/microstation-forum/223295/ms-ce-15-2-references-files-path-to-onedrive-folder/686786"]OneDrive creates Windows Environment variables that point to the OneDrive folder of the current user[/quote]
&lt;p&gt;Apparently &lt;a title="SuperUser: Environment variables for OneDrive synchronisation folders" href="https://superuser.com/questions/1447461/environment-variables-for-onedrive-synchronisation-folders/1448151" rel="noopener noreferrer" target="_blank"&gt;we can use other environment variables with OneDrive&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Quoting from that article: &lt;cite&gt;The answer is to use &lt;code&gt;%OneDriveCommercial%&lt;/code&gt; as the generic prefix to share paths among people using the same corporate OneDrive&lt;/cite&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686786?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 17:17:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:23c07f35-5df5-4840-9b7d-3324a76125f6</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;So setting MS_RFDIR to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MS_RFDIR = $(OneDrive)/Project Folders/Shared Project/

add additional paths with the &amp;gt; operator:
MS_RFDIR &amp;gt; $(OneDrive)/Project Folders/Shared Project/other_ref_dir/

Note: slashes should be forward slashes in configuration files.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [MS CE 15.2] References files path to OneDrive folder</title><link>https://communities.bentley.com/thread/686775?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 16:45:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:79c187f9-7efa-427e-a587-d7a5f421cba3</guid><dc:creator>mwlong</dc:creator><description>&lt;p&gt;There may be some info in the thread to assist&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/products/microstation/microstation_printing/f/printing-and-plotting-forum/217408/print-organizer-with-onedrive"&gt;communities.bentley.com/.../print-organizer-with-onedrive&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>