| Applies To | ||
| Product(s): | OpenPlant Modeler CE / MicroStation | |
| Version(s): | U11.2 & above (ex: - U11 & above or 2024.2 & above) | |
| Environment: | Windows 11 (64 bit) | |
| Area: | Batch Utility | |
| Subarea: | ||
| Original Author: | Chanchal Mashalkar, Bentley Global Technical Support Group |
Background
This article presents a detailed, step-by-step guide for addressing issues encountered during the conversion of DGN files to DWG format using the Batch Conversion Utility Tool in Bentley MicroStation. The process involves configuring the correct environment, setting up batch scripts, and ensuring compatibility with required standards.
Note: The steps outlined below were successfully implemented to resolve a specific user-reported issue.
Steps to Accomplish
All folders (From ZIP file) to be placed in the C:\ drive directory.
1. Folder "Batch" - Contains the batch files used to initiate the processes.
2. Folder "BatchFiles" - Holds the DGN files that need to be processed.
3. Folder "BatchScripts" - Contains the script files that are used by the batch files.
4. Folder "OutputFiles" – Will store the converted DWG files after the process is initiated.
Steps:
· Ensure the batch files are configured to run the MicroStation executable. The path must match the version installed on the user's machine.
If the executable path differs, update the FlattenDGNs.bat file accordingly.
· Launch MicroStation and create a dummy workspace and workset using the same names as those used during the ISO DGN file export.
Note: Enter the same name as your workspace & workset i.e. (workspcae: SJ_WORKSPACE & workset: PM0018)
· Create a new file within the workspace/workset and open the DGN file.
· Navigate to File > Settings > User > Preferences > Command Line and enable the 'Execute Startup Script' option.
· Make sure you disable PW integration on the MicroStation.
you can make changes in file "PW.cfg" file from directory : C:\Program Files\Bentley\MicroStation 2025\MicroStation\config\appl
Note: If needed you can re-enable this configuration variable
· Place the VBA file (.mvba extension) in the MicroStation configuration directory. Set it to 'Load on Startup' to ensure it runs automatically when files are opened.
Note: Keep the .mvba file in your MicroStation configuration directory.
Preferred Directory: C:\ProgramData\Bentley\MicroStation 2025\Configuration\Organization\Macros
· Use the provided modified isometric seed file to ensure compatibility with AutoCAD.
· Please copy the logos from the provided IsoSeed.dgn file and update all existing isometric seed files accordingly. This will resolves the missing logo issue.
To perform this task:
· Open the IsoSeed.dgn file and right-click on the logos to select “Copy to Clipboard.”
· Open each existing isometric seed file.
· Delete the existing logos from the seed file.
· Use “Paste from Clipboard” to insert the copied logos from the provided file.
· Generate isometric drawings using the modified seed file.
· Move the generated iso .dgn files into the 'BatchFiles' directory for processing.
· Run Batch File 01 by double-clicking it to flatten and compress the DGN files.
· Run Batch File 02 by double-clicking it to convert the flattened DGN files into DWG format using the VBA script.
· Retrieve the flattened DGN files from the 'BatchFiles' folder.
· Retrieve the converted DWG files from the 'OutputFiles' folder.
See Also
OpenPlant Communities Resource Center
Comments or Corrections?
Bentley's Global Technical Support group requests that you please confine any comments you have on this Knowledge Base Article entry to Forum section. THANK YOU!