SpaceClaim Online Help |
![]() |
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 directory. You can also download the latest version here.
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.
The Script Editor has the following functions.
Script is written in the main Script Window but can also be entered as single commands in the command line.
Intellisense is included in the editor to assist with entering commands.
The editor supports the following shortcuts:
Results of running a script, including error and warnings, are written to the Output Window.
Snippets are chunks of code that can be inserted into your script. They are presented in a dropdown folder browser with tooltip help describing the function of each Snippet.
You can write your own Snippets and add them to the Snippet directory, which is a collection of directories and XML files.
... src\dev\SpaceClaim\SpaceClaim\bin\x64\Debug\Snippets
Scripts can be saved to Groups to store them in the model. In the Script Editor, open the dropdown menu on the Save button and check Save Script to Group. Click the Save button to create the group and add it to the Scripts folder in the Groups Panel
.
Variables used in scripts can be saved to Parameter Groups. This allows you to easily modify the values without editing the script.
© Copyright 2016 SpaceClaim Corporation. All rights reserved.