DirectMorph#

class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.DirectMorph(internalObject: Any)#

Bases: object

Defines a DirectMorph.

Overview#

Activate

Activate the current object.

CopyTo

Copies all visible properties from this object to another.

CreateObjRef

CreateObjRef method.

CreateParameter

Creates a new parameter for a Property.

Delete

Run the Delete action.

Duplicate

Creates a copy of the current DataModelObject.

Equals

Equals method.

GetAPIName

Property name bound to dispId.

GetAllProperties

GetAllProperties method.

GetChildren

Gets the list of children, filtered by type.

GetDetailsView

GetDetailsView method.

GetEnumName

Enum name bound to value

GetHashCode

GetHashCode method.

GetIconFile

GetIconFile method.

GetLifetimeService

GetLifetimeService method.

GetObjectData

GetObjectData method.

GetParameter

Gets the parameter corresponding to the given property.

GetPath

GetPath method.

GetPropertyName

GetPropertyName method.

GetPropertyValue

GetPropertyValue method.

GetType

GetType method.

GetVisibleProperties

GetVisibleProperties method.

GetVisiblePropertyNames

GetVisiblePropertyNames method.

GroupAllSimilarChildren

Run the GroupAllSimilarChildren action.

GroupSimilarObjects

Run the GroupSimilarObjects action.

InitializeLifetimeService

InitializeLifetimeService method.

IsPropertyEditable

IsPropertyEditable method.

IsPropertyVisible

IsPropertyVisible method.

PropertyByAPIName

Get a property by its API name.

PropertyById

PropertyById method.

PropertyByName

Get a property by its unique name.

RemoveParameter

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

ToString

ToString method.

AttachedRefs

AttachedRefs property.

Children

Gets the list of children.

ClsId

ClsId property.

DataModelObjectCategory

Gets the current DataModelObject's category.

DisplacementFile

Gets or sets the DisplacementFile.

GroupingFolder

GroupingFolder property.

IconName

IconName property.

InternalObject

Gets the internal object. For advanced usage only.

Location

Gets or sets the Location.

MorphDefinition

Defines whether the Morphing is done based on the specified Displacement File or the outcome of a Mesh Workflow Morphing step.

Name

Name property.

ObjectId

ObjectId property.

ObjectState

ObjectState property.

ObjectTags

ObjectTags property.

Parent

Parent property.

Properties

Gets the list of properties for this object.

ScaleFactor

Gets or sets the ScaleFactor.

State

State property.

Suppressed

Gets or sets the Suppressed.

TrackWorkflowStep

Specifies whether to track changes to the Morph field file of the specified Mesh Workflow Morphing step.

VisibleProperties

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

WorkflowMorphStep

Gets or sets the object ID of the Mesh Workflow Morphing step that the Morph Control is based on.

Property detail#

property DirectMorph.AttachedRefs: List[int] | None#

AttachedRefs property.

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

Gets the list of children.

property DirectMorph.ClsId: int | None#

ClsId property.

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.GroupingFolder: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

GroupingFolder property.

property DirectMorph.IconName: str | None#

IconName property.

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.MorphDefinition: Ansys.Mechanical.DataModel.MechanicalEnums.MorphControl.MorphDefinitionType | None#

Defines whether the Morphing is done based on the specified Displacement File or the outcome of a Mesh Workflow Morphing step.

property DirectMorph.Name: str | None#

Name property.

property DirectMorph.ObjectId: int | None#

ObjectId property.

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

ObjectState property.

property DirectMorph.ObjectTags: Iterable[Ansys.Mechanical.DataModel.Interfaces.IObjectTag] | None#

ObjectTags property.

property DirectMorph.Parent: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

Parent property.

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.State: Ansys.Mechanical.DataModel.Enums.Legacy.State | None#

State property.

property DirectMorph.Suppressed: bool | None#

Gets or sets the Suppressed.

property DirectMorph.TrackWorkflowStep: bool | None#

Specifies whether to track changes to the Morph field file of the specified Mesh Workflow Morphing step.

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

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

property DirectMorph.WorkflowMorphStep: int | None#

Gets or sets the object ID of the Mesh Workflow Morphing step that the Morph Control is based on.

Method detail#

DirectMorph.Activate() None#

Activate the current object.

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

Copies all visible properties from this object to another.

DirectMorph.CreateObjRef(requestedType: type) System.Runtime.Remoting.ObjRef#

CreateObjRef method.

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.Equals(other: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#

Equals method.

DirectMorph.GetAPIName(dispId: int) str#

Property name bound to dispId.

DirectMorph.GetAllProperties() List[Ansys.ACT.Automation.Mechanical.AutomationPropertyWrapper]#

GetAllProperties method.

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

Gets the list of children, filtered by type.

DirectMorph.GetDetailsView() Ansys.ACT.Automation.Mechanical.DetailsViewData#

GetDetailsView method.

DirectMorph.GetEnumName(enumType: type, value: int, dispId: int) str#

Enum name bound to value

DirectMorph.GetHashCode() int#

GetHashCode method.

DirectMorph.GetIconFile() System.Byte#

GetIconFile method.

DirectMorph.GetLifetimeService() Any#

GetLifetimeService method.

DirectMorph.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#

GetObjectData method.

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

Gets the parameter corresponding to the given property.

DirectMorph.GetPath() str#

GetPath method.

DirectMorph.GetPropertyName(dispId: int) str#

GetPropertyName method.

DirectMorph.GetPropertyValue(name: str) Any#

GetPropertyValue method.

DirectMorph.GetType() type#

GetType method.

DirectMorph.GetVisibleProperties() List[System.Reflection.PropertyInfo]#

GetVisibleProperties method.

DirectMorph.GetVisiblePropertyNames() List[str]#

GetVisiblePropertyNames method.

DirectMorph.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

DirectMorph.InitializeLifetimeService() Any#

InitializeLifetimeService method.

DirectMorph.IsPropertyEditable(dispId: int) bool#

IsPropertyEditable method.

DirectMorph.IsPropertyVisible(dispId: int) bool#

IsPropertyVisible method.

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.PropertyById(dispId: int) Ansys.ACT.Automation.Mechanical.Property#

PropertyById method.

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.

DirectMorph.ToString() str#

ToString method.