MicroStation Python and DGN Files

  • All Publications
  • Links
  • LA Solutions
  • Home

  • Articles and Examples
  • Python Main
  • DGN Files
  • DGN Models
  • DGN Elements
  • PyQt User Interface
  • Custom Tools
  • Python EC
  • Selection Sets
  • Named Groups
  • Config. Variables
LA Solutions
tel: +44 7768 232 536

Python

MicroStation Python
Python Development for MicroStation
Programming Examples

Search LA Solutions for articles about Python …

Maximum Python File Name Length

Although it's not mentioned in Python help, the maximum length of a MicroStation Python file name is 48 characters, including the file extension.

A Python file name having more than 48 characters will crash MicroStation without warning.


MicroStation Python Article Index

Bentley Programming Wiki Python Programming Wiki

MicroStation Python
Title Link Comments
Bentley Programming Wiki Python Programming Wiki Examples by mostly Bentley Systems staff
DGN Utilities DGN Utilities Utilities for Analysing DGN objects
List Directories List Directories Utility for displaying a folder structure

DGN Files
Title Link Comments
Activate New File Activate a New DGN File Open and Activate a named MicroStation DGN file
Open a DGN File Open a DGN File as a Work File Open a named MicroStation DGN file as a programmer's Work File
Create a New DGN Model Create a New DGN Model Create a new, named, DgnModel
Create a DgnModelRefList Create a DgnModelRefList Create a new DgnModelRefList. Avoid confusing with ModelRefList!
BeFileName Class BeFileName Demonstrates MicroStation Python file and folder manipulation

Python Installation

MicroStation 2026 installs Python for you. As with VBA, you don't need to install anything else. MicroStation provides the Python Manager, which you will find in the Utilities tool set.

Python Development Environment
Install Python MicroStation 2026 installs Python for you. Python Manager appears in the Utilities menu
MicroStation installs additional Python modules See Python help for details

Trademarks

All trademarks are acknowledged. Trademarks may be registered in some jurisdictions.

Home
Home
Updated on 06-Aug-2026 Copyright © 2026…2026 Jon Summers