Prompt Samples for use in the Python Assistant.


Sample prompts can help in understanding some of the language that can be used to get the best out of the Python Assistant. When a New Chat is started, a list of sample prompts is listed in the feature, but if you want to see more prompts, select "See all prompts" and you will be taken to this page. The Sample prompts can be seen below. Given the non-deterministic nature of LLM's, the same prompts could yield different results. 

 

• Manipulation
○    Can you write a script which implements an interactive tool to copy selected elements from a base point to a new point specified by the user?
○    Can you write a script which implements an interactive tool to scale selected elements relative to a base point using a scale factor derived from user input?
 
• Levels
○    Can you write a script which changes the level of all selected elements to a level specified by the user?
 
• Groups
○    Can you write a script which creates a new named group and adds all currently selected elements to it?
 
• Measure
○    Can you write a script which selects all linear elements (lines, line strings, curves) whose length falls within a user-specified range?
○    Can you write a script which selects all closed shape elements (shapes, complex shapes) whose perimeter length falls within a user-specified range?
○    Can you write a script which selects all 3D solid or surface elements whose volume falls within a user-specified range?
 
• Selection
○    Can you write a script which select an element and then selects all other elements using the same line style?
○    Can you write a script which selects all elements whose effective color matches a specific RGB value entered by the user (considering level/by-level symbology)?
○    Can you write a script which selects all elements of a specific type (e.g., all Text Elements or all Cell Elements) in the active model?
○    Can you write a script which prompts the user to select an element and then selects all other elements in the model that have the same line weight?
○    Can you write a script which adds all currently selected elements to the active display set?
○    Can you write a script which finds and selects shared cells matching a wildcard name pattern?
 
• View
○    Can you write a script which saves the contents of the currently active view window to an image file (e.g., PNG, JPG, TIFF) with specified resolution?
○    Can you write a script which implements fits the view to the entire design when run?
 
• GUI
○    Can you write a script which displays a non-modal PyQt window within MicroStation showing the current time, updating every second?
○    Can you write a script which displays a modal Tkinter dialog that requires user interaction (e.g., OK/Cancel) before execution can continue in MicroStation?
 
• Multi-Line
○    Can you write a script which creates a multi-line text node element from a list of strings provided by the user?
 
• Shapes
○    Can you write a script which performs a flood operation from a user-clicked point to identify a closed boundary and create a shape element representing that area?
 
• Text
○    Can you write a script which implements an interactive tool allowing the user to select a text element and edit its content in a dialog box?
○    Can you write a script which defines a new text style with specific font, height, width, color, and spacing parameters?
○    Can you write a script which modifies the content of an selected text element
○    Can you write a script which modifies the properties (e.g., font or height) of an existing text style?
 
• Table
○    Can you write a script which creates a table element with a specified number of rows and columns, populating it with data from a list or array?
 
• Models
○    Can you write a script which creates a new 3D model within the active DGN file, with the name "Design"
 
• Printing
○    Can you write a script which generates a PDF plot of the current view
 
• Reference
○    Can you write a script which attaches another DGN file as a reference attachment, prompting the user for the file and attachment settings (model, logical name, scale)?
 
• Curves
○    Can you write a script which creates a circular arc element by specifying its center point, radius, start angle, and sweep angle?
○    Can you write a script which accepts command-line arguments (e.g., coordinates, radius) to draw a specific element like a circle without user interaction?
○    Can you write a script which draws circles using the active symbology using center point and radius?
 
• Properties
○    Can you write a script which defines a new Item Type library and adds Item Type definitions with various property types (text, number, boolean)?
 
• Cells
○    Can you write a script which prompts the user to select a cell library and cell name, then places that cell interactively?
○    Can you write a script which places a parametric cell from a library
 
• Geospatial
○    Can you write a script which imports features from a user-selected Shapefile (SHP) into the active DGN model?
 
• Mesh
○    Can you write a script which implements a tool to create a simple mesh element (like a quad mesh) based on points entered by the user and rewrites it to Model
○    Can you write a script which implements a tool to create a polyface mesh (mesh with facets defined by points) based on user-clicked points defining each facet?
 
• Constraints
○    Can you write a script which creates a distance constraint between two planar faces in 3D?
 
• Drawing Aids
○    Can you write a script which creates elements using the active element attributes (level, color, weight, style)?
 
• Surfaces
○    Can you write a script which creates a shape element representing a surface with multiple circular cutouts (holes)?
 
• Programming
○    Can you write a script which encapsulates common element creation logic (e.g., create_line(p1, p2, color)) into a reusable utility module by importing math library?