A VBA programmer can open a DGN file using two methods: OpenDesignFile and OpenDesignFileForProgram . This blog attempts to clear up confusion between the two, and which one to use.
Prefer OpenDesignFile
Prefer OpenDesignFile to OpenDesignFileForProgram…
I have some VBA code in an Excel spreadsheet where I am trying to open a dgn in order to do some editing:
Dim oMSApp As MicroStationDGN.Application
Dim myDGN As DesignFile
Dim myFSO As New Scripting.FileSystemObject
Dim myFile As Scripting.File
…