ScriptingTool#

class ansys.stk.core.stkobjects.astrogator.ScriptingTool#

Bases: IRuntimeTypeInfoProvider

Scripting Tool.

Overview#

script_text

Injects the script into the scripting tool.

copy_to_clipboard

Copy entire scripting tool to clipboard.

paste_from_clipboard

Replace entire scripting tool with scripting tool in clipboard.

enable

If true, the scripting tool is enabled.

segment_properties

Return the collection of the segment properties.

calculation_objects

Return the collection of the calculation objects.

parameters

Return the collection of parameters.

language_type

Get or set the scripting language being used.

pre_iterate

If true, the sequence will run once before executing the script.

Import detail#

from ansys.stk.core.stkobjects.astrogator import ScriptingTool

Property detail#

property ScriptingTool.enable: bool#

If true, the scripting tool is enabled.

property ScriptingTool.segment_properties: ScriptingSegmentCollection#

Return the collection of the segment properties.

property ScriptingTool.calculation_objects: ScriptingCalculationObjectCollection#

Return the collection of the calculation objects.

property ScriptingTool.parameters: ScriptingParameterCollection#

Return the collection of parameters.

property ScriptingTool.language_type: Language#

Get or set the scripting language being used.

property ScriptingTool.pre_iterate: bool#

If true, the sequence will run once before executing the script.

Method detail#

ScriptingTool.script_text(self, script: str) None#

Injects the script into the scripting tool.

Parameters:

script : str

Returns:

None

ScriptingTool.copy_to_clipboard(self) None#

Copy entire scripting tool to clipboard.

Returns:

None

ScriptingTool.paste_from_clipboard(self) None#

Replace entire scripting tool with scripting tool in clipboard.

Returns:

None