Skip to main content
Skip table of contents

Scripting Changes

A number of additional functionality has been added to SpinFire Ultimate scripting, primarliy focused around cooridate systems.

SpinFire Ultimate 11.10.1 adds the following features,

  • Get a coordinate systems list.

  • Show a coordinate system.

  • Hide a coordinate system.

  • Export the coordinate system's transformation matrix.

  • Select items by type.

  • Rename a selected assembly

Get a Coordinate Systems List

Function

GetCoordinateSystems()

Summary

Returns the 'SpinFire.Scripting.API.Geometry.CoordinateSystemsData' object with collection of coordinate systems and possible message.

Example

Output Example

Show a Coordinate System

Function

ShowCoordinateSystem()

Summary

Shows the coordinate system.

Parameters

The name or index of the coordinate system.

Example

Output Example

n/a

Hide a Coordinate System

Function

HideCoordinateSystem()

Summary

Hides the coordinate system.

Parameters

The name or index of the coordinate system.

Example

Output Example

n/a

Select Items By Types

Function

SelectItemsByTypes(itemTypes, clearSelection=true)

Summary

Selects the items by types.

Parameters

itemTypes(list(TreeItemType)): The types of the items.clearSelection(bool): The value indicates whether to clear all currently selected items.

Example

Output Example

Rename a Selected Assembly

Function

RenameSelectedItem(“new name“)

Summary

Renames the select item.

Parameters

The new name for the selected assembly.

Example

Output Example

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.