MassConstraint#

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

Bases: object

Defines a MassConstraint.

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.

RenameBasedOnDefinition

Run the RenameBasedOnDefinition action.

ToString

ToString method.

AttachedRefs

AttachedRefs property.

Children

Gets the list of children.

ClsId

ClsId property.

DataModelObjectCategory

Gets the current DataModelObject's category.

DefineBy

Gets or sets the DefineBy.

EnvironmentSelection

Gets or Sets the EnvironmentSelection to an Analysis object or TopoEnvironmentType enum.

GroupingFolder

GroupingFolder property.

IconName

IconName property.

InternalObject

Gets the internal object. For advanced usage only.

Location

Gets or sets the Location.

MaximumAbsoluteValue

Gets or sets the MaximumAbsoluteValue.

MinimumAbsoluteValue

Gets or sets the MinimumAbsoluteValue.

Name

Name property.

ObjectId

ObjectId property.

ObjectState

ObjectState property.

ObjectTags

ObjectTags property.

Parent

Parent property.

PercentageToRetain

Gets or sets the PercentageToRetain.

PercentageToRetainMax

Gets or sets the PercentageToRetainMax.

PercentageToRetainMin

Gets or sets the PercentageToRetainMin.

Properties

Gets the list of properties for this object.

ScopingMethod

Gets or sets the ScopingMethod.

Selection

Gets or sets the Selection.

State

State property.

Suppressed

Gets or sets the Suppressed.

VisibleProperties

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

Property detail#

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

AttachedRefs property.

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

Gets the list of children.

property MassConstraint.ClsId: int | None#

ClsId property.

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

Gets the current DataModelObject's category.

property MassConstraint.DefineBy: Ansys.Mechanical.DataModel.Enums.ResponseConstraintDefineBy | None#

Gets or sets the DefineBy.

property MassConstraint.EnvironmentSelection: Any | None#

Gets or Sets the EnvironmentSelection to an Analysis object or TopoEnvironmentType enum.

property MassConstraint.GroupingFolder: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#

GroupingFolder property.

property MassConstraint.IconName: str | None#

IconName property.

property MassConstraint.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSTopoConstraintAuto | None#

Gets the internal object. For advanced usage only.

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

Gets or sets the Location.

property MassConstraint.MaximumAbsoluteValue: Ansys.Core.Units.Quantity | None#

Gets or sets the MaximumAbsoluteValue.

property MassConstraint.MinimumAbsoluteValue: Ansys.Core.Units.Quantity | None#

Gets or sets the MinimumAbsoluteValue.

property MassConstraint.Name: str | None#

Name property.

property MassConstraint.ObjectId: int | None#

ObjectId property.

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

ObjectState property.

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

ObjectTags property.

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

Parent property.

property MassConstraint.PercentageToRetain: int | None#

Gets or sets the PercentageToRetain.

property MassConstraint.PercentageToRetainMax: int | None#

Gets or sets the PercentageToRetainMax.

property MassConstraint.PercentageToRetainMin: int | None#

Gets or sets the PercentageToRetainMin.

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

Gets the list of properties for this object.

property MassConstraint.ScopingMethod: Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None#

Gets or sets the ScopingMethod.

property MassConstraint.Selection: Ansys.ACT.Automation.Mechanical.OptimizationRegion | None#

Gets or sets the Selection.

property MassConstraint.State: Ansys.Mechanical.DataModel.Enums.Legacy.State | None#

State property.

property MassConstraint.Suppressed: bool | None#

Gets or sets the Suppressed.

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

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

Method detail#

MassConstraint.Activate() None#

Activate the current object.

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

Copies all visible properties from this object to another.

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

CreateObjRef method.

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

Creates a new parameter for a Property.

MassConstraint.Delete() None#

Run the Delete action.

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

Creates a copy of the current DataModelObject.

MassConstraint.Equals(other: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#

Equals method.

MassConstraint.GetAPIName(dispId: int) str#

Property name bound to dispId.

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

GetAllProperties method.

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

Gets the list of children, filtered by type.

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

GetDetailsView method.

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

Enum name bound to value

MassConstraint.GetHashCode() int#

GetHashCode method.

MassConstraint.GetIconFile() System.Byte#

GetIconFile method.

MassConstraint.GetLifetimeService() Any#

GetLifetimeService method.

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

GetObjectData method.

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

Gets the parameter corresponding to the given property.

MassConstraint.GetPath() str#

GetPath method.

MassConstraint.GetPropertyName(dispId: int) str#

GetPropertyName method.

MassConstraint.GetPropertyValue(name: str) Any#

GetPropertyValue method.

MassConstraint.GetType() type#

GetType method.

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

GetVisibleProperties method.

MassConstraint.GetVisiblePropertyNames() List[str]#

GetVisiblePropertyNames method.

MassConstraint.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

MassConstraint.InitializeLifetimeService() Any#

InitializeLifetimeService method.

MassConstraint.IsPropertyEditable(dispId: int) bool#

IsPropertyEditable method.

MassConstraint.IsPropertyVisible(dispId: int) bool#

IsPropertyVisible method.

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

PropertyById method.

MassConstraint.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property#

Get a property by its unique name.

MassConstraint.RemoveParameter(propName: str) None#

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

MassConstraint.RenameBasedOnDefinition() None#

Run the RenameBasedOnDefinition action.

MassConstraint.ToString() str#

ToString method.