IAnalysisWorkbenchComponent#
- class ansys.stk.core.analysis_workbench.IAnalysisWorkbenchComponent#
A base interface implemented by all VGT components. The methods and properties of the interface provide type information about the VGT component.
Overview#
Create a copy of the instance of a VGT component. The new component is automatically registered and will be persisted or restored when a scenario is saved or loaded. |
|
Create an anonymous copy of the instance of a VGT component. The new component is not registered and will not be persisted nor restored when a scenario is saved or loaded. |
|
Test if the instance depends on another component. |
|
Export the component to a file. |
|
Rename the component. |
Return the component kind. |
|
Allow the user to access or change the component category (Folder). |
|
Return the component name. |
|
Return the component description. |
|
Return the componentβs fully qualified path (ie. |
|
Return whether the VGT component can be duplicated. |
|
Return the context object associated with the instance. The returned object is either an instance of AnalysisWorkbenchComponentInstance or AnalysisWorkbenchComponentTemplate interface. |
|
Return the component type information. |
|
An STK-conformant path to the VGT component that can be used to visualize the VGT components in 3D (i.e. |
|
Return whether the component is valid. |
|
Return whether the component is ready. The component is ready if itβs been fully initialized. |
|
Return whether the component is modifiable. |
|
Return a collection of embedded components. |
Import detail#
from ansys.stk.core.analysis_workbench import IAnalysisWorkbenchComponent
Property detail#
- property IAnalysisWorkbenchComponent.component_type: VectorGeometryToolComponentType#
Return the component kind.
- property IAnalysisWorkbenchComponent.category: str#
Allow the user to access or change the component category (Folder).
- property IAnalysisWorkbenchComponent.path: str#
Return the componentβs fully qualified path (ie.
CentralBody/Earth Body
, etc.).
- property IAnalysisWorkbenchComponent.is_duplicable: bool#
Return whether the VGT component can be duplicated.
- property IAnalysisWorkbenchComponent.context: IAnalysisWorkbenchComponentContext#
Return the context object associated with the instance. The returned object is either an instance of AnalysisWorkbenchComponentInstance or AnalysisWorkbenchComponentTemplate interface.
- property IAnalysisWorkbenchComponent.type_information: AnalysisWorkbenchComponentTypeInformation#
Return the component type information.
- property IAnalysisWorkbenchComponent.qualified_path: str#
An STK-conformant path to the VGT component that can be used to visualize the VGT components in 3D (i.e.
CentralBody/Earth Body Vector
, etc.).
- property IAnalysisWorkbenchComponent.is_ready: bool#
Return whether the component is ready. The component is ready if itβs been fully initialized.
- property IAnalysisWorkbenchComponent.is_read_only: bool#
Return whether the component is modifiable.
- property IAnalysisWorkbenchComponent.embedded_components: AnalysisWorkbenchComponentCollection#
Return a collection of embedded components.
Method detail#
- IAnalysisWorkbenchComponent.duplicate(self, new_name: str, description: str) IAnalysisWorkbenchComponent #
Create a copy of the instance of a VGT component. The new component is automatically registered and will be persisted or restored when a scenario is saved or loaded.
- IAnalysisWorkbenchComponent.anonymous_duplicate(self) IAnalysisWorkbenchComponent #
Create an anonymous copy of the instance of a VGT component. The new component is not registered and will not be persisted nor restored when a scenario is saved or loaded.
- Returns:
IAnalysisWorkbenchComponent
- IAnalysisWorkbenchComponent.depends_on(self, component: IAnalysisWorkbenchComponent) bool #
Test if the instance depends on another component.
- Parameters:
component :
IAnalysisWorkbenchComponent
- Returns: