Basic Sample Scripts
Short, beginner versions of the Advanced Sample Scripts. Each one does the main job of its full sample in a few dozen lines, so you can read the whole script and see how it works. They have no start window, no options, no completion window and no log. Results are printed to the Python.NET Console.
Note
New to scripting? Read Basic Introduction to Scripting first. It explains how to run a script and the few Python ideas these samples use.
When you are ready for more, each page links to its full sample, which adds a start window with options, error handling, a log and a completion window.
How to Use Them
Open
Filter.CATPart(or your own model) in SpinFire Insight. It is installed in theSamples\CATIA V5\Aquo Bottlefolder of your SpinFire Insight installation. Each page says if a sample needs something else.Open View > Python.NET Console to see what the script prints.
Click the Scripting icon on the 3D toolbar, choose New Script…, paste the script and click Run.
To change what a script does, edit the values under
# ---- Settings (change these) ----at the top.
Files are saved under C:\temp\SpinFire_Basic_Samples, in a new folder for each run, so earlier results are never overwritten.
Warning
These are unofficial sample scripts, provided as-is without warranty or support. Save your work before running them. If a script stops with an error, check the console: it shows the message and the line that caused it.
Samples
Basic sample |
Full version |
|---|---|