Snippets
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.
Snippet Example
This example shows how to use a Code Snippet to create a simple gear.
The model already contains a cylindrical shaft, which could also be constructed using a script.
Open the Constructing Geometry folder and select the gear Snippet.
The Snippet code loads into the Script Editor window.
Click the Run Script button to build the gear.