Here are a few simple examples that you can demonstrate on your licensed copy of SpinFire Ulitmate.
Acquire full scripting help from within SpinFire Ultimate using the Documentation menu item from the script menu.
The following shows simple examples of some scripting primitives
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
The following demonstrates getting the physical properties of the assembly and printing to the console through scriptnig. UsageGetPhysicalProperties() Parametersnone
|
Expand | ||
---|---|---|
| ||
test |
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
The following demonstrates selecting and rotating an assembly through scriptnig. UsageRotaeSelectedAssemblyItems(axis, degrees) Parametersaxis: selectd the x, y, or z axis degrees: amount to rotate in degrees
|
Expand | ||
---|---|---|
| ||
test |
Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
The following demonstrates creating 2D lines through scriptnig. UsageInsertLine(x-coord, y-coord, color, thickness) Parametersx-coord: Starting starting x-coordinate. y-coord: Starting starting y-coordinate. color: color as a string in the form "#AARRGGBB" thickness: lne line thickness number > 0
|
Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
The following demonstrates creating 2D lines through scriptnig. Usage: InsertLine(x-coord, y-coord, color, thickness) Parameters x-coord: Starting x-coordinate. y-coord: Starting y-coordinate. color: color as a string in the form "#AARRGGBB" thickness: lne thickness number > 0
|
Expand | ||
---|---|---|
| ||
test |