AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Script ​

Write and run Python that builds and changes models. The editor sits beside the model; Run is F5 and Stop is Shift+F5. See Scripting for the cadkit library.

Workspaces: Script · Sections: Write → Your own editor

For a walkthrough, read the Python scripting guide.

Python script editor and console beside a camera lens model
The Script workspace keeps the model, Python source and console together. This example reads the open model and fits the camera. View full size

Write ​

ToolWhat it does
Script EditorShow or hide the script editor and its console.
New ScriptStart a new script from a small example.
Run Script...Pick a script file and run it.

Your own editor ​

ToolWhat it does
VS CodeOpen the current script in Visual Studio Code. The scripting library sits next to your scripts so it just works there.
PyCharmOpen the current script in PyCharm.
Scripts FolderOpen the folder that holds your scripts and the examples.