<?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/"><channel><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba</link><description>Bentley View, MicroStation, PowerDraft</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba</link><pubDate>Mon, 08 Jun 2015 17:46:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Current Revision posted to MicroStation Wiki by Tristan Anderson on 6/8/2015 5:46:13 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;The upgrade sequence of the master file and all references can be made in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;img alt=" " src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     Debug.Print oAtt.AttachName, oAtt.UpdateOrder
 Next
End Sub&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;&lt;span style="font-family:Calibri;"&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     If oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot; Then oAtt.UpdateOrder = 0
 Next
End Sub&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img alt=" " src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/8</link><pubDate>Fri, 05 Jun 2015 19:42:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 8 posted to MicroStation Wiki by Tristan Anderson on 6/5/2015 7:42:19 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;The upgrade sequence of the master file and all references can be made in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;img alt=" " src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="background:#ffffff;text-transform:none;font-weight:normal;color:#000000;font-style:normal;letter-spacing:normal;line-height:normal;text-indent:0px;"&gt;&lt;span style="font-weight:bold;color:#7f0055;"&gt;Sub&lt;/span&gt; refUpdSelect()
 &lt;span style="font-weight:bold;color:#7f0055;"&gt;Dim&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:#7f0055;"&gt;As&lt;/span&gt; Attachment
 &lt;span style="font-weight:bold;color:#7f0055;"&gt;For Each&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:#7f0055;"&gt;In&lt;/span&gt; ActiveModelReference.Attachments
     Debug.Print oAtt.AttachName, oAtt.UpdateOrder
 &lt;span style="font-weight:bold;color:#7f0055;"&gt;Next&lt;/span&gt;
&lt;span style="font-weight:bold;color:#7f0055;"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;&lt;span style="font-family:Calibri;"&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="background:#ffffff;text-transform:none;font-weight:normal;color:#000000;font-style:normal;letter-spacing:normal;line-height:normal;text-indent:0px;"&gt;&lt;span style="font-weight:bold;color:#7f0055;"&gt;Sub&lt;/span&gt; refUpdSelect()
 &lt;span style="font-weight:bold;color:#7f0055;"&gt;Dim&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:#7f0055;"&gt;As&lt;/span&gt; Attachment
 &lt;span style="font-weight:bold;color:#7f0055;"&gt;For Each&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:#7f0055;"&gt;In&lt;/span&gt; ActiveModelReference.Attachments
     &lt;span style="font-weight:bold;color:#7f0055;"&gt;If&lt;/span&gt; oAtt.AttachName = &lt;span style="color:#2a00ff;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;ref2.dgn&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;&amp;quot;&lt;/span&gt; &lt;span style="font-weight:bold;color:#7f0055;"&gt;Then&lt;/span&gt; oAtt.UpdateOrder = 0
 &lt;span style="font-weight:bold;color:#7f0055;"&gt;Next&lt;/span&gt;
&lt;span style="font-weight:bold;color:#7f0055;"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span style="font-family:Calibri;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img alt=" " src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/7</link><pubDate>Thu, 04 Jun 2015 20:37:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 7 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 8:37:23 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border-top:#dce5f0 0px solid;border-right:#dce5f0 0px solid;width:500px;border-bottom:#dce5f0 0px solid;border-left:#dce5f0 0px solid;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;font face="Calibri"&gt;The upgrade sequence of the master file and all references can be made â€‹â€‹in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;/font&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;font face="Calibri"&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;img alt=" " src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;font face="Calibri"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="background:rgb(255,255,255);text-transform:none;font-weight:normal;color:rgb(0,0,0);font-style:normal;letter-spacing:normal;line-height:normal;text-indent:0px;"&gt;&lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Sub&lt;/span&gt; refUpdSelect()
 &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Dim&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;As&lt;/span&gt; Attachment
 &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;For Each&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;In&lt;/span&gt; ActiveModelReference.Attachments
     Debug.Print oAtt.AttachName, oAtt.UpdateOrder
 &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Next&lt;/span&gt;
&lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;font face="Calibri"&gt;The output from the example is as follows:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;&lt;font face="Calibri"&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;&lt;pre style="background:rgb(255,255,255);text-transform:none;font-weight:normal;color:rgb(0,0,0);font-style:normal;letter-spacing:normal;line-height:normal;text-indent:0px;"&gt;&lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Sub&lt;/span&gt; refUpdSelect()
 &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Dim&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;As&lt;/span&gt; Attachment
 &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;For Each&lt;/span&gt; oAtt &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;In&lt;/span&gt; ActiveModelReference.Attachments
     &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;If&lt;/span&gt; oAtt.AttachName = &lt;span style="color:rgb(42,0,255);"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:rgb(42,0,255);"&gt;ref2.dgn&lt;/span&gt;&lt;span style="color:rgb(42,0,255);"&gt;&amp;quot;&lt;/span&gt; &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Then&lt;/span&gt; oAtt.UpdateOrder = 0
 &lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;Next&lt;/span&gt;
&lt;span style="font-weight:bold;color:rgb(127,0,85);"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;"&gt;&lt;font face="Calibri"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img alt=" " src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/6</link><pubDate>Thu, 04 Jun 2015 19:22:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 6 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 7:22:55 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The upgrade sequence of the master file and all references can be made ​​in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/div&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     Debug.Print oAtt.AttachName, oAtt.UpdateOrder
 Next
End Sub&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;span&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     If oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot; Then oAtt.UpdateOrder = 0
 Next
End Sub&lt;/pre&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/5</link><pubDate>Thu, 04 Jun 2015 19:09:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 5 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 7:09:34 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The upgrade sequence of the master file and all references can be made ​​in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/div&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     Debug.Print oAtt.AttachName, oAtt.UpdateOrder
 Next
End Sub&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;span&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     If oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot; Then oAtt.UpdateOrder = 0
 Next
End Sub&lt;/pre&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/4</link><pubDate>Thu, 04 Jun 2015 19:08:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 4 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 7:08:36 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The upgrade sequence of the master file and all references can be made ​​in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;Sub refUpdSelect()
 Dim oAtt As Attachment
 For Each oAtt In ActiveModelReference.Attachments
     Debug.Print oAtt.AttachName, oAtt.UpdateOrder
 Next
End Sub&lt;/pre&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;span&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;Sub refUpdSelect()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;For Each oAtt In ActiveModelReference.Attachments&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot; Then oAtt.UpdateOrder = 0&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Next&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/3</link><pubDate>Thu, 04 Jun 2015 19:07:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 3 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 7:07:45 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The upgrade sequence of the master file and all references can be made ​​in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;Sub refUpdSelect()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;For Each oAtt In ActiveModelReference.Attachments&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Debug.Print oAtt.AttachName, oAtt.UpdateOrder&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Next&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;span&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;Sub refUpdSelect()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;For Each oAtt In ActiveModelReference.Attachments&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot; Then oAtt.UpdateOrder = 0&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Next&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/2</link><pubDate>Thu, 04 Jun 2015 18:57:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 2 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 6:57:16 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="width:500px;background-color:#dce5f0;border:#dce5f0 0px solid;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The upgrade sequence of the master file and all references can be made ​​in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;Sub refUpdSelect()&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;For Each oAtt In ActiveModelReference.Attachments&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Debug.Print oAtt.AttachName, oAtt.UpdateOrder&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Next&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;End Sub&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;The output from the example is as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt 30px;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&lt;span&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;Sub refUpdSelect()&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;For Each oAtt In ActiveModelReference.Attachments&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot; Then oAtt.UpdateOrder = 0&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;Next&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 0pt 30px;line-height:12.75pt;background:white;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;End Sub&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span style="font-size:inherit;font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item><item><title>Updating sequence control with VBA</title><link>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba/revision/1</link><pubDate>Thu, 04 Jun 2015 18:48:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e00a3ca-8202-418b-abb3-6a069ae16b28</guid><dc:creator>Tristan Anderson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/microstation__wiki/21803/updating-sequence-control-with-vba#comments</comments><description>Revision 1 posted to MicroStation Wiki by Tristan Anderson on 6/4/2015 6:48:44 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table style="border-top:#dce5f0 0px solid;border-right:#dce5f0 0px solid;width:500px;border-bottom:#dce5f0 0px solid;border-left:#dce5f0 0px solid;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;span style="font-size:medium;"&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MicroStation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.09.578 &lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7 32 bit,Windows 7 64 bit&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Programming&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;VBA&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tristan Anderson, Bentley Technical Support Group&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;span&gt;The upgrade sequence of the master file and all references can be made ​​in the Reference Manager via the menu item &amp;quot;Settings&amp;quot;.&amp;nbsp;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The order is determined by an integer increasing from 0.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;By default, the&amp;nbsp;active design file&amp;nbsp;is&amp;nbsp;at the bottom and has the sequence number 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="background:white;"&gt;The&amp;nbsp;files are&amp;nbsp;referenced beginning in Slot 1 and with the number 1 and so on, as indicated here in this example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd1.jpg" alt=" " /&gt;&lt;/p&gt;&lt;span&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span&gt;VBA can now read the currently existing order, which can, for example, be carried out as follows:&lt;/span&gt;&lt;/div&gt;&lt;span&gt;
&lt;div style="background:white;margin:0in 0in 8pt;line-height:12.75pt;"&gt;&lt;span&gt;Sub&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;refUpdSelect()&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 8pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 8pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;For&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Each&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;oAtt In&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ActiveModelReference.Attachments&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 8pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Debug.Print oAtt.AttachName, oAtt.UpdateOrder&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 8pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;Next&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 8pt;line-height:12.75pt;"&gt;&lt;span&gt;End&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Sub&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span&gt;The output from the example is as follows:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;font face="Calibri"&gt;&lt;span&gt;ref1.dgn 1&lt;br /&gt;ref2.dgn 2&amp;nbsp;&lt;br /&gt;ref3.dgn 3&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span&gt;&lt;font face="Calibri"&gt;Now, for instance, if you want a specific reference in a certain order, the following can be done:&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;Sub&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;refUpdSelect()&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;Dim OATT As Attachment&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;For&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Each&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;oAtt In&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ActiveModelReference.Attachments&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;oAtt.AttachName = &amp;quot;ref2.dgn&amp;quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Then&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;oAtt.UpdateOrder = 0&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;&amp;nbsp;Next&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;End&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Sub&lt;/span&gt;&lt;/div&gt;
&lt;div style="background:white;margin:0in 0in 0pt;line-height:12.75pt;"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;span&gt;&lt;font face="Calibri"&gt;With this change, the reference will be placed with the name &amp;quot;ref2.dgn&amp;quot; in the update sequence:&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin:0in 0in 8pt;line-height:normal;"&gt;&lt;img src="http://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-38/refupd2.jpg" alt=" " /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: VBAWindows 7 32 bit, MicroStation, Windows 7 64 bit, Programming, en, 08.11.09.578, SELECTsupport&lt;/div&gt;
</description></item></channel></rss>