Python Assistant is a built-in feature in the Python Editor dialog that helps both coders and non-coders generate Python scripts using natural language prompts. It simplifies automation and tool creation within MicroStation.
You must review and accept the License Agreement during installation. Enabling Python Assistant means you agree to the AI Product-Specific Terms and Bentley AI User Guidelines, both of which are linked during installation and available online.
You can access the assistant through the Python Editor dialog. Simply type your request in the Ask Assistant box, and the assistant will generate Python code based on your prompt.
Python Editor dialog is located on the Utilities tab of the Drawing Ribbon.
The quickest way to start with using Python in MicroStation is to use the Python Editor dialog on the Utilities tab of the Drawing Ribbon.
Both beginners and experienced developers can benefit. Non-coders can generate scripts without needing to write code manually, while coders can accelerate their development process.
Yes. Under the Fair Usage Policy, you can send a limited number of prompts. Once the limit is reached, the assistant will pause for 12 hours before accepting new prompts.
Yes. You can explore example prompts under the “See all prompts” section within the Python Editor dialog to get started quickly.
You’ll also find helpful suggestions under Python Assistant Prompts.
Not always. The assistant uses AI to generate code, which may not be 100% accurate or context aware. Always review and test the generated scripts before using them in production.
Caution: It is an AI-generated module and may not be completely accurate.
Absolutely. The generated code appears in the Python Editor, where you can review, modify, and enhance it as needed.
Try rephrasing your request using simpler or more specific language. You can also refer to the example prompts for guidance.
If you see an error indicating that Python Assistant's usage tracking has failed, the recommended solution is to repair or re-install the product. For best results, it's advisable to create a Deployment Image and perform the installation using Administrator privileges. This ensures all components are properly configured and helps prevent similar issues.
Bentley prioritizes data security. By default, Python Assistant does not capture or store user data. You remain in full control of how your data is used.
For additional details do check Data Security and Control.
Chat history and interactions with the Python Assistant are stored locally in the following folder.
C:\Users\{UserName}\AppData\Local\Bentley\MicroStation\25.0.0\Copilot\Sessions\
Open File Explorer and key-in
%localappdata%\Bentley\MicroStation\25.0.0\Copilot\Sessions
No data is sent unless you explicitly choose to submit feedback by clicking the thumbs-down button after receiving an answer. In that case, only the prompt and your comment are sent—no code or design data is transmitted or retained.
Python Assistant is included as an optional component during the installation of MicroStation. If you prefer not to install it, simply uncheck the Python Assistant (Technology Preview) checkbox on the Features page during the installation process.
For more detailed Python-related FAQs, refer to this article
MicroStation Python: FAQs
Python: Documentation | API Presentations | FAQs | GitHub | Samples | Wikis | Blogs