Component#
- class Component(element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine)#
Bases: ansys.modelcenter.workflow.grpc_modelcenter.abstract_renamable.AbstractRenamableElement
, ansys.modelcenter.workflow.grpc_modelcenter.abstract_datapin_container.AbstractGRPCDatapinContainer
, ansys.modelcenter.workflow.grpc_modelcenter.abstract_assembly_child.AbstractAssemblyChild
, ansys.modelcenter.workflow.api.IComponent
Defines the component in the workflow.
Note
This class should not be directly instantiated by clients. Get a
Workflow
object from an instantiatedEngine
instance and use it to get a valid instance of this object.
Overview#
Get the source of the component. |
|
Invoke one of the componentβs methods. |
|
Invalidate the component and all of its datapins. |
|
Reload the component from its source. |
|
Download the componentβs datapin values from the server if it is a |
Flag indicating if the component is connected to its source. |
|
URL to the PACZ file or directory. |
Return self==value. |
Import detail#
from ansys.modelcenter.workflow.grpc_modelcenter.component import Component
Property detail#
- property Component.pacz_url: str | None#
URL to the PACZ file or directory.
The URL may be absolute or relative. If relative, the URL must be relative to the workflow definition. While all components are represented by PACZ definitions, in the short term, many components are not currently defined in this way. If there is not a PACZ definition of the component, the method returns
None
. In such cases, you must fall back on engine-specific methods to determine what the component type is.
Method detail#
- Component.__eq__(other)#
Return self==value.