MCSSegmentCollection#
- class ansys.stk.core.stkobjects.astrogator.MCSSegmentCollection#
Bases:
IRuntimeTypeInfoProvider
The Mission Control Sequence.
Overview#
Return the specified segment(using segment name or index number). |
|
Add a segment to the segment collection. |
|
Remove a segment; the End segment cannot be deleted. |
|
Remove all segments; the End segment cannot be deleted. |
|
Copy the segment into the clipboard and removes the segment from the sequence. |
|
Pastes the segment from the clipboard and inserts in before the given segment name. |
|
Copy the segment pointer and inserts the copy before the given segment name. |
|
Insert a segment by name to the segment collection. |
|
Retrieve the specified segment(using segment index number). |
|
Retrieve the specified segment(using segment 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 MCSSegmentCollection
Property detail#
- property MCSSegmentCollection._new_enum: EnumeratorProxy#
Allow you to enumerate through the collection.
- property MCSSegmentCollection.provide_runtime_type_info: RuntimeTypeInfo#
Return the RuntimeTypeInfo interface to access properties at runtime.
Method detail#
- MCSSegmentCollection.item(self, index_or_name: Any) IMCSSegment #
Return the specified segment(using segment name or index number).
- Parameters:
index_or_name :
Any
- Returns:
IMCSSegment
- MCSSegmentCollection.insert(self, segment_type: SegmentType, segment_name: str, segment_to_insert_before: str) IMCSSegment #
Add a segment to the segment collection.
- MCSSegmentCollection.remove(self, segment_name_to_remove: str) None #
Remove a segment; the End segment cannot be deleted.
- MCSSegmentCollection.remove_all(self) None #
Remove all segments; the End segment cannot be deleted.
- Returns:
- MCSSegmentCollection.cut(self, segment_name_to_cut: str) None #
Copy the segment into the clipboard and removes the segment from the sequence.
- MCSSegmentCollection.paste(self, segment_to_paste_before: str) IMCSSegment #
Pastes the segment from the clipboard and inserts in before the given segment name.
- Parameters:
segment_to_paste_before :
str
- Returns:
IMCSSegment
- MCSSegmentCollection.insert_copy(self, segment: IMCSSegment, segment_to_insert_before: str) IMCSSegment #
Copy the segment pointer and inserts the copy before the given segment name.
- Parameters:
segment :
IMCSSegment
segment_to_insert_before :
str
- Returns:
IMCSSegment
- MCSSegmentCollection.insert_by_name(self, segment_name: str, segment_to_insert_before: str) IMCSSegment #
Insert a segment by name to the segment collection.
- MCSSegmentCollection.get_item_by_index(self, index: int) IMCSSegment #
Retrieve the specified segment(using segment index number).
- Parameters:
index :
int
- Returns:
IMCSSegment
- MCSSegmentCollection.get_item_by_name(self, name: str) IMCSSegment #
Retrieve the specified segment(using segment name).
- Parameters:
name :
str
- Returns:
IMCSSegment