ComponentInfoCollection#
- class ansys.stk.core.stkobjects.ComponentInfoCollection#
The collection of components and component folders.
Overview#
Allow the user to iterate through the components. |
|
Return the specified folder. |
|
Remove the named component from the collection. |
|
Duplicates and adds the component, with the supplied name or index, to the collection and then returns the duplicated component. |
|
Load a component from a specified file (full path) into the current folder and then returns the loaded component. |
|
Retrieve component info from the collection by index. |
|
Retrieve component info from the collection by name. |
Enumerates through the components. |
|
Get the number of components available. |
|
Get the number of folders available. |
|
Return an array of Folder names. |
|
Get the current folderβs name. |
Import detail#
from ansys.stk.core.stkobjects import ComponentInfoCollection
Property detail#
- property ComponentInfoCollection._new_enum: EnumeratorProxy#
Enumerates through the components.
Method detail#
- ComponentInfoCollection.item(self, index_or_name: Any) IComponentInfo #
Allow the user to iterate through the components.
- Parameters:
index_or_name :
Any
- Returns:
IComponentInfo
- ComponentInfoCollection.get_folder(self, index_or_name: Any) ComponentInfoCollection #
Return the specified folder.
- Parameters:
index_or_name :
Any
- Returns:
ComponentInfoCollection
- ComponentInfoCollection.remove(self, name: str) None #
Remove the named component from the collection.
- ComponentInfoCollection.duplicate_component(self, index_or_component_name: Any, new_component_name: str) IComponentInfo #
Duplicates and adds the component, with the supplied name or index, to the collection and then returns the duplicated component.
- ComponentInfoCollection.load_component(self, file_name: str) IComponentInfo #
Load a component from a specified file (full path) into the current folder and then returns the loaded component.
- Parameters:
file_name :
str
- Returns:
IComponentInfo
- ComponentInfoCollection.get_item_by_index(self, index: int) IComponentInfo #
Retrieve component info from the collection by index.
- Parameters:
index :
int
- Returns:
IComponentInfo
- ComponentInfoCollection.get_item_by_name(self, name: str) IComponentInfo #
Retrieve component info from the collection by name.
- Parameters:
name :
str
- Returns:
IComponentInfo