PythonCode
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.PythonCode#
Bases:
object
Defines a PythonCode.
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 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 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 PythonCode.AllowRecursion: bool | None#
Gets or Sets whether the PythonCode allows recursion.
- property PythonCode.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#
Gets the current DataModelObject's category.
- property PythonCode.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPythonCodeAuto | None#
Gets the internal object. For advanced usage only.
- property PythonCode.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties for this object.
- property PythonCode.PropertyProvider: Ansys.ACT.Interfaces.Mechanical.IPropertyProvider | None#
Gets or sets the propperty provider instance associated with this python code object.
- property PythonCode.ScriptExecutionScope: str | None#
The scope identifier in which the code execution will take place.
Method detail#
- PythonCode.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None #
Copies all visible properties from this object to another.
- PythonCode.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Creates a new parameter for a Property.
- PythonCode.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject #
Duplicate method.
- PythonCode.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Gets the parameter corresponding to the given property.
- PythonCode.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.
- PythonCode.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property #
Get a property by its unique name.