PatternRepetitionConstraint#

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

Bases: object

Defines a PatternRepetitionConstraint.

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 repetition. Only positive direction enums will be accepted (“PositiveXAxis”, “PositiveYAxis”, “PositiveXAxis”).

Children

Gets the list of children.

ClsId

ClsId property.

CoordinateSystem

Gets or sets the CoordinateSystem.

DataModelObjectCategory

Gets the current DataModelObject's category.

GroupingFolder

GroupingFolder property.

IconName

IconName property.

InternalObject

Gets the internal object. For advanced usage only.

Location

Gets or sets the Location.

Name

Name property.

ObjectId

ObjectId property.

ObjectState

ObjectState property.

ObjectTags

ObjectTags property.

Offset

Gets or sets the Offset.

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

AttachedRefs property.

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

InvalidArgumentException: Any unsupported enum value.

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

Gets the list of children.

property PatternRepetitionConstraint.ClsId: int | None#

ClsId property.

property PatternRepetitionConstraint.CoordinateSystem: Ansys.ACT.Automation.Mechanical.CoordinateSystem | None#

Gets or sets the CoordinateSystem.

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

Gets the current DataModelObject's category.

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

GroupingFolder property.

property PatternRepetitionConstraint.IconName: str | None#

IconName property.

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

Gets the internal object. For advanced usage only.

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

Gets or sets the Location.

property PatternRepetitionConstraint.Name: str | None#

Name property.

property PatternRepetitionConstraint.ObjectId: int | None#

ObjectId property.

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

ObjectState property.

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

ObjectTags property.

property PatternRepetitionConstraint.Offset: Ansys.Core.Units.Quantity | None#

Gets or sets the Offset.

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

Parent property.

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

Gets the list of properties for this object.

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

Gets or sets the ScopingMethod.

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

Gets or sets the Selection.

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

State property.

property PatternRepetitionConstraint.Suppressed: bool | None#

Gets or sets the Suppressed.

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

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

Method detail#

PatternRepetitionConstraint.Activate() None#

Activate the current object.

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

Copies all visible properties from this object to another.

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

CreateObjRef method.

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

Creates a new parameter for a Property.

PatternRepetitionConstraint.Delete() None#

Run the Delete action.

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

Creates a copy of the current DataModelObject.

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

Equals method.

PatternRepetitionConstraint.GetAPIName(dispId: int) str#

Property name bound to dispId.

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

GetAllProperties method.

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

Gets the list of children, filtered by type.

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

GetDetailsView method.

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

Enum name bound to value

PatternRepetitionConstraint.GetHashCode() int#

GetHashCode method.

PatternRepetitionConstraint.GetIconFile() System.Byte#

GetIconFile method.

PatternRepetitionConstraint.GetLifetimeService() Any#

GetLifetimeService method.

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

GetObjectData method.

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

Gets the parameter corresponding to the given property.

PatternRepetitionConstraint.GetPath() str#

GetPath method.

PatternRepetitionConstraint.GetPropertyName(dispId: int) str#

GetPropertyName method.

PatternRepetitionConstraint.GetPropertyValue(name: str) Any#

GetPropertyValue method.

PatternRepetitionConstraint.GetType() type#

GetType method.

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

GetVisibleProperties method.

PatternRepetitionConstraint.GetVisiblePropertyNames() List[str]#

GetVisiblePropertyNames method.

PatternRepetitionConstraint.GroupAllSimilarChildren() None#

Run the GroupAllSimilarChildren action.

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

Run the GroupSimilarObjects action.

PatternRepetitionConstraint.InitializeLifetimeService() Any#

InitializeLifetimeService method.

PatternRepetitionConstraint.IsPropertyEditable(dispId: int) bool#

IsPropertyEditable method.

PatternRepetitionConstraint.IsPropertyVisible(dispId: int) bool#

IsPropertyVisible method.

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

PropertyById method.

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

Get a property by its unique name.

PatternRepetitionConstraint.RemoveParameter(propName: str) None#

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

PatternRepetitionConstraint.RenameBasedOnDefinition() None#

Run the RenameBasedOnDefinition action.

PatternRepetitionConstraint.ToString() str#

ToString method.