<?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>How to batch replace reference files in a bunch of drawings.</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/130966/how-to-batch-replace-reference-files-in-a-bunch-of-drawings</link><description>Before i begin please be aware that i have tried &amp;quot;RefRename.mvba&amp;quot; and it was unsuccessful. 
 Here is what i am trying to do. 
 
 I have a set of drawings (D1-D10), who each reference a drawing (R1) twice and have logical names TOP and BOT in all 10 dwgs</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to batch replace reference files in a bunch of drawings.</title><link>https://communities.bentley.com/thread/399753?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 10:46:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:39956115-6878-45de-9f24-c52217f7e4dc</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Robin Viebrock&amp;quot;]I have tried &amp;quot;RefRename.mvba&amp;quot; and it was unsuccessful[/quote]&lt;/p&gt;
&lt;p&gt;If you can write VBA, or have a colleague who can, then &lt;em&gt;RefRename&lt;/em&gt; would be a great place to start to develop your own version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to batch replace reference files in a bunch of drawings.</title><link>https://communities.bentley.com/thread/399747?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 10:00:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1f1e0d80-53c7-410f-b97e-cc4b421d388d</guid><dc:creator>Lorys</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Robin Viebrock&amp;quot;]&lt;/p&gt;
&lt;p&gt;Before i begin please be aware that i have tried &amp;quot;RefRename.mvba&amp;quot; and it was unsuccessful.&lt;/p&gt;
&lt;p&gt;Here is what i am trying to do.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a set of drawings (D1-D10), who each reference a drawing (R1) twice and have logical names TOP and BOT in all 10 dwgs.&lt;/p&gt;
&lt;p&gt;refrename.mvba does not like when the same file is reference twice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What i am looking for is a script / batch processes to replace R1 with R2 for both TOP and BOT in all drawings D1-D10.&lt;/p&gt;
&lt;p&gt;extra info: D1-D10 are all in the same directory A and R1 and R2 are both in the same directory B&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any and all help is greatly appreciated. Thank you&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;Just on first glance &amp;nbsp;I think I have a work flow you could you nested files and &amp;nbsp;rename them to fool the ref manager?&lt;/p&gt;
&lt;p&gt;Create a nested &amp;nbsp;holding file &amp;nbsp;Called &amp;nbsp;R2 Nest which has R2 top and Bottom &amp;nbsp;set &amp;nbsp;in it how you &amp;nbsp;want&amp;nbsp;&lt;/p&gt;
&lt;p&gt;now &amp;nbsp;with &amp;nbsp;Batch process ref &amp;nbsp;attach R2 Nest &amp;nbsp;and &amp;nbsp;detach R1 both &amp;nbsp;descriptions, the &amp;nbsp;clipping &amp;nbsp;depends &amp;nbsp;on &amp;nbsp;how you set &amp;nbsp;up your drawings&lt;/p&gt;
&lt;p&gt;But without some examples its not too easy to work out how you make this work over multiple sheets or drawings&lt;/p&gt;
&lt;p&gt;for 10 drgs only you could use the &amp;nbsp;batch processor as above &amp;nbsp;and then open each drg and reclip if need be... manually... its only &amp;nbsp;10 plans..&lt;/p&gt;
&lt;p&gt;Next time &amp;nbsp;use nested &amp;nbsp;files, easy to replace with the vba macro...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>