DirectMorph#

class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.DirectMorph#

Bases: object

Defines a DirectMorph.

Overview#

Activate

Activate the current object.

Clear

clear morph control

CopyTo

Copies all visible properties from this object to another.

CreateParameter

Creates a new parameter for a Property.

Delete

Run the Delete action.

Duplicate

Creates a copy of the current DataModelObject.

Generate

Generate morph control

GetChildren

Gets the list of children, filtered by type.

GetParameter

Gets the parameter corresponding to the given property.

GroupAllSimilarChildren

Run the GroupAllSimilarChildren action.

GroupSimilarObjects

Run the GroupSimilarObjects action.

PropertyByAPIName

Get a property by its API name.

PropertyByName

Get a property by its unique name.

RemoveParameter

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

Children

Gets the list of children.

DataModelObjectCategory

Gets the current DataModelObject's category.

DisplacementFile

Gets or sets the DisplacementFile.

InternalObject

Gets the internal object. For advanced usage only.

Location

Gets or sets the Location.

Properties

Gets the list of properties for this object.

ScaleFactor

Gets or sets the ScaleFactor.

Suppressed

Gets or sets the Suppressed.

VisibleProperties

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

Property detail#

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

Gets the list of children.

property DirectMorph.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#

Gets the current DataModelObject's category.

property DirectMorph.DisplacementFile: str | None#

Gets or sets the DisplacementFile.

property DirectMorph.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSDirectMorphAuto | None#

Gets the internal object. For advanced usage only.

property DirectMorph.Location: Ansys.ACT.Interfaces.Common.ISelectionInfo | None#

Gets or sets the Location.

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

Gets the list of properties for this object.

property DirectMorph.ScaleFactor: float | None#

Gets or sets the ScaleFactor.

property DirectMorph.Suppressed: bool | None#

Gets or sets the Suppressed.

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

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

Method detail#

DirectMorph.Activate() None#

Activate the current object.

DirectMorph.Clear() None#

clear morph control

DirectMorph.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None#

Copies all visible properties from this object to another.

DirectMorph.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#

Creates a new parameter for a Property.

DirectMorph.Delete() None#

Run the Delete action.

DirectMorph.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject#

Creates a copy of the current DataModelObject.

DirectMorph.Generate() None#

Generate morph control

DirectMorph.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType]#

Gets the list of children, filtered by type.

DirectMorph.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#

Gets the parameter corresponding to the given property.

DirectMorph.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

DirectMorph.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#

Run the GroupSimilarObjects action.

DirectMorph.PropertyByAPIName(name: str) 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.
DirectMorph.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property#

Get a property by its unique name.

DirectMorph.RemoveParameter(propName: str) None#

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