Python script

Python script pane with a script exporting geometries to CSV

This pane is a Python script editor with syntax highlighting. Scripts run in Digi3D.AI's Python interpreter, with access to the active drawing window through digi3d. See Python pane.

Toolbar

  • Load script: opens a .py and shows its contents in the editor.
  • Save script: saves editor contents to a .py.
  • Play script: runs editor contents.

Running the script

  • If a drawing window is active, all script changes to its drawing file form a single transaction: one UNDO reverses them all.
  • If the script raises an exception, its message appears in a message box.

Showing the pane

Select Window/Python script.

The pane exists only if registry value CrearPanelPython is nonzero. Default: 1.

See also