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#

duplicate

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.

anonymous_duplicate

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.

depends_on

Test if the instance depends on another component.

export

Export the component to a file.

rename

Rename the component.

component_type

Return the component kind.

category

Allow the user to access or change the component category (Folder).

name

Return the component name.

description

Return the component description.

path

Return the component’s fully qualified path (ie. CentralBody/Earth Body, etc.).

is_duplicable

Return whether the VGT component can be duplicated.

context

Return the context object associated with the instance. The returned object is either an instance of AnalysisWorkbenchComponentInstance or AnalysisWorkbenchComponentTemplate interface.

type_information

Return the component type information.

qualified_path

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.).

is_valid

Return whether the component is valid.

is_ready

Return whether the component is ready. The component is ready if it’s been fully initialized.

is_read_only

Return whether the component is modifiable.

embedded_components

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.name: str#

Return the component name.

property IAnalysisWorkbenchComponent.description: str#

Return the component description.

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_valid: bool#

Return whether the component is valid.

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.

Parameters:

new_name : str

description : str

Returns:

IAnalysisWorkbenchComponent

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:

bool

IAnalysisWorkbenchComponent.export(self, filename: str, comments: str) None#

Export the component to a file.

Parameters:

filename : str

comments : str

Returns:

None

IAnalysisWorkbenchComponent.rename(self, new_name: str) None#

Rename the component.

Parameters:

new_name : str

Returns:

None