Python

Q How do I set MicroStation's main window title using Python?

A Here's a small Python program that does just that.

Python Implementation

This is one of the shortest Python programs I've posted …

import win32com.client as win32

# Connect to the MicroStation DGN application
msApp = win32.Dispatch('MicroStationDGN.Application')

# Change the window title
new_title = "My Custom MicroStation Title"
msApp.Caption = new_title

Thanks to Leonard Jones for providing that information.

Use MicroStation's Python Manager to execute the script.

Python Manager

Questions

Post questions about MicroStation programming to the MicroStation Programming Forum.