<?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>Export Model List</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/172917/export-model-list</link><description>Good Morning All, 
 Is there a way to export the list of all the Models in a V8i SS2 .dgn file? 
 I just want to be able to easily record all the Models in a file for documentation, to keep track of edits and other possible administrative tasks. It would</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498865?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 15:10:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7472cae1-acd5-4292-900b-f6371442d2d1</guid><dc:creator>David Sullivan</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you all so very much for all the information and guidance. I will definitely take a look at all you said and review the training. Thanks again!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;God bless,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;David&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498854?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 14:32:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:41e84c6e-02d0-46d7-8d5f-e13eb6cc7f7a</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="2269" url="~/products/programming/f/developers-and-programming-forum/172917/export-model-list/498841"]CONNECT &lt;em&gt;Reports&lt;/em&gt; are excellent.[/quote]
&lt;p&gt;I mostly agree it&amp;#39;s the great feature, but it&amp;#39;s not without bugs and I found some scenarios not supported (partially or completely). On the other hand ... they will probably never be spotted by normal user :-)&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498841?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 14:03:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:43784958-b33b-44f1-8c71-415ccaf64371</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="2473" url="~/products/programming/f/developers-and-programming-forum/172917/export-model-list/498829"]It&amp;#39;s also possible to define own report[/quote]
&lt;p&gt;CONNECT &lt;em&gt;Reports&lt;/em&gt; are excellent.&amp;nbsp; I&amp;#39;ve posted &lt;a title="LA Solutions: MicroStation CONNECT: Reports" href="http://www.la-solutions.co.uk/content/connect/Reports/Reports.htm#ReportExamples" rel="noopener noreferrer" target="_blank"&gt;some examples&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498829?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 13:15:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7d2fb7d1-d3b7-4a93-9b55-b9ca3cfc437a</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
[quote userid="721226" url="~/products/programming/f/developers-and-programming-forum/172917/export-model-list/498592"] In addition to the information that Jose&amp;#39;s suggestion will get me: Model Type, 2D/3D, Annotation, and Sheet Name.[/quote]
&lt;p&gt;In such case, I think MicroStation VBA is the only solution in V8i, how to collect this information and store them in a file. Especially because Sheet properties are not part of standard model information, but has to be retrieved separately when the model is sheet.&lt;/p&gt;
[quote userid="721226" url="~/products/programming/f/developers-and-programming-forum/172917/export-model-list/498592"]We will be moving the Cells over to ORD-CE soon and it would be nice to be able to record all the Cell information and be able to track the changes as we make them.[/quote]
&lt;p&gt;If ORD is your target platform, it can be easier to do such export in ORD and not in V8i. CONNECT Edition is much better when a summary of information about any type of object (file, model ... elements...) should be displayed:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343380/MStn_2D00_CE_2D00_File_2D00_details.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;s also possible to define own report (it&amp;#39;s a bit more limited than standard Details and Properties dialogs).&lt;/p&gt;
&lt;p&gt;I am not sure whether and how it can be automated, but for a ferw files, it&amp;#39;s pretty simple to export the data manually or to copy and paste them to Excel.&lt;/p&gt;
[quote userid="721226" url="~/products/programming/f/developers-and-programming-forum/172917/export-model-list/498592"]I am somewhat new to the programming side of things and I could use some instructions on how to run your VBA.[/quote]
&lt;p&gt;Leonard provided nice list of resources where you can obtain more information how to work with MicroStation VBA macros.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498593?ContentTypeID=1</link><pubDate>Mon, 31 Dec 2018 13:08:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:332454aa-0658-409d-be6a-57480ae46d41</guid><dc:creator>Leonard Jones</dc:creator><description>&lt;p&gt;Some VBA resources&amp;hellip;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/microstation/w/microstation__wiki/8775/getting-started-with-visual-basic" rel="noopener noreferrer" target="_blank"&gt;Getting Started with Visual Basic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Book: &lt;a href="https://store.bentley.com/en/products/books/WAD00781A10001--Learning-MicroStation-VBA" rel="noopener noreferrer" target="_blank"&gt;Learning MicroStation VBA&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Training: &lt;a href="https://learn.bentley.com/app/Public/ViewLearningPathDetails?lpId=100238" rel="noopener noreferrer" target="_blank"&gt;MicroStation VBA Programming Learning Path&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Took the liberty to save Jan&amp;rsquo;s VBA to a MVBA file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343380/ExportModelList.mvba"&gt;communities.bentley.com/.../ExportModelList.mvba&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498592?ContentTypeID=1</link><pubDate>Mon, 31 Dec 2018 13:01:27 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:af1f4fee-9156-41f4-a831-96236f04ec15</guid><dc:creator>David Sullivan</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;Thanks for the help. To clarify what I am looking for, sorry for not being clearer, I was hoping to get most if not all the information showed in the Models list in MicroStation V8i SS2. In addition to the information that Jose&amp;#39;s suggestion will get me: Model Type, 2D/3D, Annotation, and Sheet Name. We will be moving the Cells over to ORD-CE soon and it would be nice to be able to record all the Cell information and be able to track the changes as we make them.&lt;/p&gt;
&lt;p&gt;I am somewhat new to the programming side of things and I could use some instructions on how to run your VBA. I have copied the text to a .txt file and have tried to run it through the batch process but it did not work. I have also replaced &amp;#39;.txt&amp;#39; with &amp;#39;.mvba&amp;#39; to the file name and tried to load it through &amp;#39;mdl load ...&amp;#39; but that did not work either. I am sure I am&amp;nbsp;missing something simple. Thanks a lot!&lt;/p&gt;
&lt;p&gt;God bless,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498591?ContentTypeID=1</link><pubDate>Mon, 31 Dec 2018 12:49:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a617927e-e779-4f42-8717-d016f0b8064a</guid><dc:creator>David Sullivan</dc:creator><description>&lt;p&gt;Hi Jose,&lt;/p&gt;
&lt;p&gt;Thanks, that will work for some of what I hoped to get for information. I was hoping to get more information including: Model Type, 2D/3D, Annotation, and Sheet Name. We will be moving the Cells over to ORD-CE soon and it would be nice to be able to record all the Cell information and be able to track the changes as we make them. I will share this with Jan since he has another good suggestion. Thanks a lot!&lt;/p&gt;
&lt;p&gt;God bless,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498532?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 08:11:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:13d66c47-1894-4cd0-89d5-e399fdc10f53</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;it&amp;#39;s not clear what information you would like to record (model name onlyu, anything else?) and what level of automation is required (manuall, key-in, batch process...). Jose&amp;#39;s advice is the best in my opinion for manual export, which maybe is enough for you. MicroStation V8i (SELECTseries 2) does not provide any reporting functionality.&lt;/p&gt;
&lt;p&gt;An alternative solution when an automation is required (e.g. to record models from more models in batch process) is to use MicroStation VBA macro. I found (and modified a bit) some my older code (I guess I created it for some training ;-)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Option Explicit

Const outputFolder = &amp;quot;D:\temp\&amp;quot;

Public Sub SaveListOfModels()
    
    Dim outputFileNum As Integer: outputFileNum = 1
    Dim outputFile As String: outputFile = ConstructExportFileFullPath
    
    Open outputFile For Append As outputFileNum
    
    SaveListOfModelsToFile outputFileNum
    
    Close outputFileNum

End Sub

Private Sub SaveListOfModelsToFile(fileNum As Integer)

    Dim model As ModelReference
    
    For Each model In ActiveDesignFile.Models
        Print #fileNum, model.Name
    Next

End Sub

Private Function ConstructExportFileFullPath() As String

    Dim activeDesignFileName As String: activeDesignFileName = ActiveDesignFile.Name
    Dim exportFileName As String: exportFileName = outputFolder &amp;amp; activeDesignFileName &amp;amp; &amp;quot;.txt&amp;quot;
    ConstructExportFileFullPath = exportFileName

End Function
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498521?ContentTypeID=1</link><pubDate>Sat, 29 Dec 2018 19:06:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:71c1724a-2ac0-431b-a61c-ef48b7a86365</guid><dc:creator>Jose Pinho</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi David.&lt;/span&gt;&lt;/p&gt;
[quote userid="721226" url="~/products/microstation/f/microstation-forum/172917/export-model-list"]Is there a way to export the list of all the Models in a V8i SS2 .dgn file?[/quote]
&lt;p&gt;&lt;span&gt;Open the &lt;strong&gt;Models&lt;/strong&gt; dialog and here you can select all the desired models and hit &lt;strong&gt;CTRL+C&lt;/strong&gt; and next open the desired program like Notepad or Excel and hit &lt;strong&gt;CTRL+V&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You&amp;#39;ll get the list with:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Name |&amp;nbsp;&lt;/span&gt;&lt;span&gt;Description&amp;nbsp;|&amp;nbsp;&lt;/span&gt;&lt;span&gt;Cell Type |&amp;nbsp;&lt;/span&gt;&lt;span&gt;Design File.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Be mindful that if one of these tabs are turned off in Models dialog the respective data will not be copy.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope this helps and regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498436?ContentTypeID=1</link><pubDate>Fri, 28 Dec 2018 16:33:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d62aa142-eb7b-4b8f-a561-1f24e79493c6</guid><dc:creator>David Sullivan</dc:creator><description>&lt;p&gt;Thanks Jon,&lt;/p&gt;
&lt;p&gt;I will look into FlexiTable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Export Model List</title><link>https://communities.bentley.com/thread/498431?ContentTypeID=1</link><pubDate>Fri, 28 Dec 2018 16:26:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:25dfe896-f240-49c3-990b-cbb71b7983c6</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="721226" url="~/products/microstation/f/microstation-forum/172917/export-model-list"]Is there a way to export the list of all the Models in a V8i SS2 .dgn file?[/quote]
&lt;p&gt;&lt;a title="LA Solutions: FlexiTable" href="http://www.la-solutions.co.uk/content/V8/FlexiTable/DgnDataAcquisition.htm" rel="noopener noreferrer" target="_blank"&gt;FlexiTable&lt;/a&gt; can do that.&lt;/p&gt;
[quote userid="721226" url="~/products/microstation/f/microstation-forum/172917/export-model-list"]It would be very helpful for managing Cell Libraries too.[/quote]
&lt;p&gt;A cell is a model: a model is a cell.&amp;nbsp; A cell library is a DGN file having a &lt;code&gt;.cel&lt;/code&gt; extension.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>