PythonCodeEventBased
#
- class ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.PythonCodeEventBased#
Bases:
object
Defines a PythonCodeEventBased.
Overview#
|
Reload properties to update properties provided by the provider. |
|
Register the python code. |
|
Run the Delete action. |
|
Activate the current object. |
|
Copies all visible properties from this object to another. |
|
Creates a copy of the current DataModelObject. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Get a property by its unique name. |
|
Get a property by its API name. |
|
Creates a new parameter for a Property. |
|
Gets the parameter corresponding to the given property. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Gets the internal object. For advanced usage only. |
|
Gets the SolverTarget. |
|
Gets or sets the TargetCallback. |
|
Gets or sets the Suppressed. |
|
Gets the current DataModelObject’s category. |
|
Gets or sets the text in the script tab for the Python Code object. |
|
Gets or sets the propperty provider instance associated with this python code object. |
|
Gets the internal object. For advanced usage only. |
|
The scope identifier in which the code execution will take place. |
|
Gets whether the callbacks are currently connected. |
|
Gets the internal object. For advanced usage only. |
|
Gets the list of properties for this object. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property PythonCodeEventBased.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPythonCodeEventBasedAuto | None
Gets the internal object. For advanced usage only.
- 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.
- property PythonCodeEventBased.Suppressed: System.Boolean | None
Gets or sets the Suppressed.
- property PythonCodeEventBased.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None
Gets the current DataModelObject’s category.
- property PythonCodeEventBased.Text: System.String | None
Gets or sets the text in the script tab for the Python Code 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.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPythonCodeAuto | None
Gets the internal object. For advanced usage only.
- property PythonCodeEventBased.ScriptExecutionScope: System.String | None
The scope identifier in which the code execution will take place.
- property PythonCodeEventBased.Connected: System.Boolean | None
Gets whether the callbacks are currently connected.
- property PythonCodeEventBased.InternalObject: System.Object | None
Gets the internal object. For advanced usage only.
- property PythonCodeEventBased.Properties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties for this object.
- property PythonCodeEventBased.VisibleProperties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties that are visible for this object.
Method detail#
- PythonCodeEventBased.ReloadProperties() System.Void
Reload properties to update properties provided by the provider.
- PythonCodeEventBased.Connect() System.Void
Register the python code.
- PythonCodeEventBased.Delete() System.Void
Run the Delete action.
- PythonCodeEventBased.Activate() System.Void
Activate the current object.
- PythonCodeEventBased.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) System.Void
Copies all visible properties from this object to another.
- PythonCodeEventBased.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject
Creates a copy of the current DataModelObject.
- PythonCodeEventBased.GroupAllSimilarChildren() System.Void
Run the GroupAllSimilarChildren action.
- PythonCodeEventBased.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder
Run the GroupSimilarObjects action.
- PythonCodeEventBased.PropertyByName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
Get a property by its unique name.
- PythonCodeEventBased.PropertyByAPIName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
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.CreateParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Creates a new parameter for a Property.
- PythonCodeEventBased.GetParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Gets the parameter corresponding to the given property.
- PythonCodeEventBased.RemoveParameter(propName: System.String) System.Void
Removes the parameter from the parameter set corresponding to the given property.