ScriptingSegmentCollection#
- class ansys.stk.core.stkobjects.astrogator.ScriptingSegmentCollection#
Bases:
IRuntimeTypeInfoProvider
Scripting Segment Collection.
Overview#
Allow you to iterate through the collection. |
|
Add an object property to the collection. |
|
Remove a object property. |
|
Remove all object properties. |
|
Copy the object property into the clipboard and removes the object property from the list. |
|
Pastes the object property from the clipboard and inserts into the list. |
|
Copy the object property and inserts the copy into the list. |
|
Retrieve a scripting segment in the collection by index. |
|
Retrieve a scripting segment in the collection by name. |
Allow you to enumerate through the collection. |
|
Return the size of the collection. |
|
Return the RuntimeTypeInfo interface to access properties at runtime. |
Import detail#
from ansys.stk.core.stkobjects.astrogator import ScriptingSegmentCollection
Property detail#
- property ScriptingSegmentCollection._new_enum: EnumeratorProxy#
Allow you to enumerate through the collection.
- property ScriptingSegmentCollection.provide_runtime_type_info: RuntimeTypeInfo#
Return the RuntimeTypeInfo interface to access properties at runtime.
Method detail#
- ScriptingSegmentCollection.item(self, index_or_name: Any) ScriptingSegment #
Allow you to iterate through the collection.
- Parameters:
index_or_name :
Any
- Returns:
ScriptingSegment
- ScriptingSegmentCollection.add(self, component_name: str) ScriptingSegment #
Add an object property to the collection.
- Parameters:
component_name :
str
- Returns:
ScriptingSegment
- ScriptingSegmentCollection.cut(self, index_or_name: Any) None #
Copy the object property into the clipboard and removes the object property from the list.
- ScriptingSegmentCollection.paste(self) ScriptingSegment #
Pastes the object property from the clipboard and inserts into the list.
- Returns:
ScriptingSegment
- ScriptingSegmentCollection.insert_copy(self, obj_property: ScriptingSegment) ScriptingSegment #
Copy the object property and inserts the copy into the list.
- Parameters:
obj_property :
ScriptingSegment
- Returns:
ScriptingSegment
- ScriptingSegmentCollection.get_item_by_index(self, index: int) ScriptingSegment #
Retrieve a scripting segment in the collection by index.
- Parameters:
index :
int
- Returns:
ScriptingSegment
- ScriptingSegmentCollection.get_item_by_name(self, name: str) ScriptingSegment #
Retrieve a scripting segment in the collection by name.
- Parameters:
name :
str
- Returns:
ScriptingSegment