Python

State Machine Examples

You'll find Python examples written by LA Solutions on these pages. The examples range from a simple element picker to a pick-and-place text creator tool, that shows how to draw an element in dynamics.

Those examples lead you through stages of increasing complexity. They are written for MicroStation Python programmers, and they are not complete applications.

Download Simple Element Picker

Download la_solutions_element_picker.zip
├── la_solutions_element_picker.py
├── ElementPicker
│   ├── element_picker.py
├── common
│   ├── create_centroid_from_selection.py
│   ├── create_text_element.py
│   ├── dgn_elements.py
│   └── version_info.py

Download Element Pick and Modify

Download la_solutions_element_pick_and_modify.zip
├── la_solutions_element_pick_and_modify.py
├── PickAndModify
│   ├── element_modifier.py
│   ├── MicroStation 2026.lnk
│   └── PickAndModifyElement.tws
├── common
│   ├── create_centroid_from_selection.py
│   ├── create_text_element.py
│   ├── dgn_elements.py
│   └── version_info.py

Download Element Pick and Place Text

Download la_solutions_element_pick_and_place.zip
│   ├── la_solutions_element_pick_and_place.py
│   ├── PickAndPlace
│   │   └── element_modifier.py
├── common
│   ├── create_centroid_from_selection.py
│   ├── create_text_element.py
│   ├── dgn_elements.py
│   └── version_info.py

Download Element Pick and Place Text Interactive

Download la_solutions_element_pick_and_place_dynamics.zip
│   ├── la_solutions_element_pick_and_place_dynamics.py
│   ├── PickAndPlaceDynamics
│   │   └── element_modifier.py
├── common
│   ├── create_centroid_from_selection.py
│   ├── create_text_element.py
│   ├── dgn_elements.py
│   └── version_info.py

Selection Set Tool

Download la_solutions_selection_set_tool.zip
├── la_solutions_selection_set_tool.py
└── SelectionSet
│   ├── SelectionSetTool.py
│   └── select_set_modifier.py
├── common
│   ├── create_centroid_from_selection.py
│   ├── create_text_element.py
│   ├── dgn_elements.py
│   └── version_info.py

Questions

Post questions about MicroStation programming to the MicroStation Programming Forum.