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