<?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>Carl Stanton's Activities</title><link>https://communities.bentley.com/members/b597f7a7_2d00_e56b_2d00_4624_2d00_8d27_2d00_64c55a2d1270</link><description>Carl Stanton's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Export MBVA into text files</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/225863/export-mbva-into-text-files</link><pubDate>Tue, 15 Feb 2022 16:48:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fb5c6ef0-b6af-43f7-a0aa-04e6634fecea</guid><dc:creator>Carl Stanton</dc:creator><description>&lt;p&gt;I am attempting to export my MVBA projects as text files. I was able to get the .bas, .cls, and .frm files to export, but I am struggling with how to make the .frx file text, and how to export the project references. (Declaring Dim oRef as Reference throws a user-defined type not defined error) I used this article as a reference: &lt;a href="/products/microstation/w/microstation__wiki/2889/2889"&gt;https://communities.bentley.com/products/microstation/w/microstation__wiki/2889/2889&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Full code here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Public oComp As Object
Public index As Integer
Public filePath As String
Public fileName As String
Public fullfileName As String
Public fsoOutputFile As TextStream



Public Sub Finish()
    Dim projName As String
    Dim suffix As String
    Dim filetype As String
    Dim oRef As Reference
    
    filePath = &amp;quot;U:\Carl_Stanton\microstation_vbas&amp;quot;
    
    Set oVBE = Application.VBE
    Set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)
    
    For Each oProject In oVBE.VBProjects
        projName = oProject.Name
        If doesFolderExist(filePath &amp;amp; &amp;quot;\&amp;quot; &amp;amp; oProject.Name) = False Then
            MkDir (filePath &amp;amp; &amp;quot;\&amp;quot; &amp;amp; projName)
        End If
       
        Call SetOutputFile(filePath &amp;amp; &amp;quot;\&amp;quot; &amp;amp; projName, projName &amp;amp; &amp;quot;_refs.txt&amp;quot;)
        
        Set refsFile = objFSO.OpenTextFile(fullfileName, ForWriting, True)
        
        For Each oRef In oProject.References
        
                refsFile.WriteLine (oRef.FullPath)
            Next
        
        For Each oComp In oProject.VBComponents
                filetype = oComp.Type

                Select Case oComp.Type
                        Case &amp;quot;1&amp;quot;
                            suffix = &amp;quot;.bas&amp;quot;
                        Case &amp;quot;2&amp;quot;
                            suffix = &amp;quot;.cls&amp;quot;
                        Case &amp;quot;3&amp;quot;
                            suffix = &amp;quot;.frm&amp;quot;

                End Select
                Call SetOutputFile(filePath, oComp.Name &amp;amp; suffix)
                fileName = filePath &amp;amp; &amp;quot;\&amp;quot; &amp;amp; projName &amp;amp; &amp;quot;\&amp;quot; &amp;amp; oComp.Name &amp;amp; suffix
                oComp.Export (fileName)
                
            Next
            
        index = 1
    Next
    MsgBox (&amp;quot;extract complete&amp;quot;)

        
End Sub

Public Sub Start()
    UserForm1.Show
End Sub

Public Function doesFolderExist(folderPath) As Boolean

doesFolderExist = Dir(folderPath, vbDirectory) &amp;lt;&amp;gt; &amp;quot;&amp;quot;

End Function

Public Sub SetOutputFile(file_path As String, file_name As String)
    fullfileName = file_path &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file_name
    If objFSO.FileExists(fullfileName) Then
        &amp;#39;you delete if you find it&amp;#39;
        objFSO.DeleteFile fullfileName, True
    End If
End Sub&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/221589/tags-do-not-hide-when-created-with-vba-in-connect-edition</link><pubDate>Tue, 02 Nov 2021 13:57:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1f644165-9440-4df3-a205-658358dc75c8</guid><dc:creator>Carl Stanton</dc:creator><description>&lt;p&gt;I am trying to migrate from Microstation V8i to CONNECT Edition, and when I run my custom VBA blocks elements are drawn with all tags visible, even though both the tag configuration settings and t he VBA code both have the tags set to hidden. Is this a bug? Is there another setting somewhere else I am missing?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://communities.bentley.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Tue, 02 Nov 2021 07:54:33 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:98805b93-0e1c-45d6-990a-95c813560233</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>