PythonCodeEventBased
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.PythonCodeEventBased#
Bases:
object
Defines a PythonCodeEventBased.
Overview#
Activate the current object. |
|
Register the python code. |
|
Copies all visible properties from this object to another. |
|
Creates a new parameter for a Property. |
|
Run the Delete action. |
|
Duplicate method. |
|
Gets the parameter corresponding to the given property. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Get a property by its API name. |
|
Get a property by its unique name. |
|
Reload properties to update properties provided by the provider. |
|
Removes the parameter from the parameter set corresponding to the given property. |
Gets or Sets whether the PythonCode allows recursion. |
|
Gets whether the callbacks are currently connected. |
|
Gets the current DataModelObject's category. |
|
Gets the internal object. For advanced usage only. |
|
Gets or sets the InvalidateSolution. |
|
Gets the list of properties for this object. |
|
Gets or sets the propperty provider instance associated with this python code object. |
|
The scope identifier in which the code execution will take place. |
|
Gets the SolverTarget. |
|
Gets or sets the Suppressed. |
|
Gets or sets the TargetCallback. |
|
Gets or sets the text in the script tab for the Python Code object. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property PythonCodeEventBased.AllowRecursion: bool | None#
Gets or Sets whether the PythonCode allows recursion.
- property PythonCodeEventBased.Connected: bool | None#
Gets whether the callbacks are currently connected.
- property PythonCodeEventBased.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#
Gets the current DataModelObject's category.
- property PythonCodeEventBased.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPythonCodeEventBasedAuto | None#
Gets the internal object. For advanced usage only.
- property PythonCodeEventBased.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties for this object.
- property PythonCodeEventBased.PropertyProvider: Ansys.ACT.Interfaces.Mechanical.IPropertyProvider | None#
Gets or sets the propperty provider instance associated with this python code object.
- property PythonCodeEventBased.ScriptExecutionScope: str | None#
The scope identifier in which the code execution will take place.
- property PythonCodeEventBased.SolverTarget: Ansys.Mechanical.DataModel.Enums.CommandEditorTarget | None#
Gets the SolverTarget.
- property PythonCodeEventBased.TargetCallback: Ansys.Mechanical.DataModel.Enums.PythonCodeTargetCallback | None#
Gets or sets the TargetCallback.
Method detail#
- PythonCodeEventBased.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None #
Copies all visible properties from this object to another.
- PythonCodeEventBased.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Creates a new parameter for a Property.
- PythonCodeEventBased.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject #
Duplicate method.
- PythonCodeEventBased.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Gets the parameter corresponding to the given property.
- PythonCodeEventBased.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder #
Run the GroupSimilarObjects action.
Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.
- PythonCodeEventBased.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property #
Get a property by its unique name.