Skip to main content

class Ansys.ACT.Automation.Mechanical.ParameterVariable

Bases: object Defines a ParameterVariable.

Overview

Methods

Properties

Property detail

property ParameterVariable.Children : List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None

Gets the list of children.

property ParameterVariable.Comments : Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None

Gets the list of associated comments.

property ParameterVariable.DataModelObjectCategory : Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None

Gets the current DataModelObject’s category.

property ParameterVariable.Figures : Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None

Gets the list of associated figures.

property ParameterVariable.Images : Iterable[Ansys.ACT.Automation.Mechanical.Image] | None

Gets the list of associated images.

property ParameterVariable.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSParameterVariableAuto | None

Gets the internal object. For advanced usage only.

property ParameterVariable.Properties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties for this object.

property ParameterVariable.VisibleProperties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties that are visible for this object.

Method detail

ParameterVariable.Activate() → None

Activate the current object.

ParameterVariable.AddComment() → Ansys.ACT.Automation.Mechanical.Comment

Creates a new child Comment.

ParameterVariable.AddFigure() → Ansys.ACT.Automation.Mechanical.Figure

Creates a new child Figure.

ParameterVariable.AddImage(filePath: str) → Ansys.ACT.Automation.Mechanical.Image

ParameterVariable.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) → None

Copies all visible properties from this object to another.

ParameterVariable.CreateParameter(propName: str) → Ansys.ACT.Interfaces.Mechanical.IParameter

Creates a new parameter for a Property.

ParameterVariable.Duplicate() → Ansys.Mechanical.DataModel.Interfaces.IDataModelObject

Creates a copy of the current DataModelObject.

ParameterVariable.GetChildren(recurses: bool, children: List[ChildrenType]) → List[ChildrenType]

Gets the list of children, filtered by type.

ParameterVariable.GetParameter(propName: str) → Ansys.ACT.Interfaces.Mechanical.IParameter

Gets the parameter corresponding to the given property.

ParameterVariable.GroupAllSimilarChildren() → None

Run the GroupAllSimilarChildren action.

ParameterVariable.GroupSimilarObjects() → Ansys.ACT.Automation.Mechanical.TreeGroupingFolder

Run the GroupSimilarObjects action.

ParameterVariable.PropertyByAPIName(name: str) → Ansys.ACT.Automation.Mechanical.Property

ParameterVariable.PropertyByName(name: str) → Ansys.ACT.Automation.Mechanical.Property

Get a property by its unique name.

ParameterVariable.RemoveParameter(propName: str) → None

Removes the parameter from the parameter set corresponding to the given property.