Scripting

Note: Refer to the Class Library for a detailed description of the API. A copy of the Class Library compiled help file (.chm) is included in the installation. The path will be similar to the paths shown below and will change according to the version you are using and where SpaceClaim is installed.

For SpaceClaim: C:\Program Files\SpaceClaim <version number>\SpaceClaim.Api.<version number>

For SCDM: C:\Program Files\ANSYS Inc\<version number>\scdm\SpaceClaim.Api.<version number>

You can work with SpaceClaim programmatically using Python. A built-in script editor allows you to create and run scripts to perform repetitive tasks and work with models and geometry.

Use File > New > Script to begin a new script.

Use File > Open to open an existing script file (*.scscript, *.py).

When you exit SpaceClaim with an open script, you are asked if you want to save the existing script.