CenterOfGravityConstraint#

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

Bases: object

Defines a CenterOfGravityConstraint.

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.

Axis

Gets or sets the Axis used for calculation. Only positive direction enums will be accepted (“PositiveXAxis”, “PositiveYAxis”, “PositiveXAxis”).

Children

Gets the list of children.

ClsId

ClsId property.

DataModelObjectCategory

Gets the current DataModelObject's category.

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.

MaximumPosition

Gets or sets the MaximumPosition.

MinimumPosition

Gets or sets the MinimumPosition.

Name

Name property.

ObjectId

ObjectId property.

ObjectState

ObjectState property.

ObjectTags

ObjectTags property.

Parent

Parent property.

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 CenterOfGravityConstraint.AttachedRefs: List[int] | None#

AttachedRefs property.

property CenterOfGravityConstraint.Axis: Ansys.Mechanical.DataModel.Enums.CoordinateSystemAxisType | None#
Gets or sets the Axis used for calculation. Only positive direction enums will be accepted (“PositiveXAxis”, “PositiveYAxis”, “PositiveXAxis”).

InvalidArgumentException: Any unsupported enum value.

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

Gets the list of children.

property CenterOfGravityConstraint.ClsId: int | None#

ClsId property.

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

Gets the current DataModelObject's category.

property CenterOfGravityConstraint.EnvironmentSelection: Any | None#

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

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

GroupingFolder property.

property CenterOfGravityConstraint.IconName: str | None#

IconName property.

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

Gets the internal object. For advanced usage only.

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

Gets or sets the Location.

property CenterOfGravityConstraint.MaximumPosition: Ansys.Core.Units.Quantity | None#

Gets or sets the MaximumPosition.

property CenterOfGravityConstraint.MinimumPosition: Ansys.Core.Units.Quantity | None#

Gets or sets the MinimumPosition.

property CenterOfGravityConstraint.Name: str | None#

Name property.

property CenterOfGravityConstraint.ObjectId: int | None#

ObjectId property.

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

ObjectState property.

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

ObjectTags property.

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

Parent property.

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

Gets the list of properties for this object.

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

Gets or sets the ScopingMethod.

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

Gets or sets the Selection.

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

State property.

property CenterOfGravityConstraint.Suppressed: bool | None#

Gets or sets the Suppressed.

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

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

Method detail#

CenterOfGravityConstraint.Activate() None#

Activate the current object.

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

Copies all visible properties from this object to another.

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

CreateObjRef method.

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

Creates a new parameter for a Property.

CenterOfGravityConstraint.Delete() None#

Run the Delete action.

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

Creates a copy of the current DataModelObject.

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

Equals method.

CenterOfGravityConstraint.GetAPIName(dispId: int) str#

Property name bound to dispId.

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

GetAllProperties method.

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

Gets the list of children, filtered by type.

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

GetDetailsView method.

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

Enum name bound to value

CenterOfGravityConstraint.GetHashCode() int#

GetHashCode method.

CenterOfGravityConstraint.GetIconFile() System.Byte#

GetIconFile method.

CenterOfGravityConstraint.GetLifetimeService() Any#

GetLifetimeService method.

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

GetObjectData method.

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

Gets the parameter corresponding to the given property.

CenterOfGravityConstraint.GetPath() str#

GetPath method.

CenterOfGravityConstraint.GetPropertyName(dispId: int) str#

GetPropertyName method.

CenterOfGravityConstraint.GetPropertyValue(name: str) Any#

GetPropertyValue method.

CenterOfGravityConstraint.GetType() type#

GetType method.

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

GetVisibleProperties method.

CenterOfGravityConstraint.GetVisiblePropertyNames() List[str]#

GetVisiblePropertyNames method.

CenterOfGravityConstraint.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

CenterOfGravityConstraint.InitializeLifetimeService() Any#

InitializeLifetimeService method.

CenterOfGravityConstraint.IsPropertyEditable(dispId: int) bool#

IsPropertyEditable method.

CenterOfGravityConstraint.IsPropertyVisible(dispId: int) bool#

IsPropertyVisible method.

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

PropertyById method.

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

Get a property by its unique name.

CenterOfGravityConstraint.RemoveParameter(propName: str) None#

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

CenterOfGravityConstraint.RenameBasedOnDefinition() None#

Run the RenameBasedOnDefinition action.

CenterOfGravityConstraint.ToString() str#

ToString method.