SymmetryConstraint (hwx.inspire.core)

Symmetry and Cyclic Shape Controls.

Symmetry and cyclic repetition are used to create optimized shapes with repeating patterns and/or nearly symmetric results. Both are valid for optimization but not analysis. There are two kinds of cyclic shapes: those with symmetric sectors and those with asymmetric sectors.

You can only apply one type of symmetry constraint to a design space.

  • Choose SYMMETRIC to apply symmetry planes to a design space.
  • Choose CYCLIC_SYMMETRIC to apply cyclic symmetric repetition to a design space.
  • Choose CYCLIC to apply cyclic repetition to a design space.

Attributes

active: Bool activePlanes: Attribute color: Color
connectionRadius: Double connectionType: Enum direction: Direction
distributed: Bool features: Attribute localToPart: Bool
location: Location mode: Enum name: Attribute
part: Attribute parts: Attribute sectors: Int
type: Enum visible: Bool  

Attribute Details

active : Bool

Returns or sets the object activeness.

Setting this on or off sets all children. Setting to True sets all the parents active too.

activePlanes : Attribute

Sets/gets the list of planes that symmetry has been applied to.

Valid values are:

  • ‘FIRST_PLANE’
  • ‘SECOND_PLANE’
  • ‘THIRD_PLANE’

color : Color

The color assigned to the Boundary Condition.

connectionRadius : Double (units=”length”)

The search radius for the Boundary Condition.

connectionType : Enum (rigid, flexible)

The type of the connection. Valid choices are:

  • rigid
  • flexible

direction : Direction

Returns the direction vector of the entity.

distributed : Bool

Returns whether the applied boundary condition is distributed or not.

Boundary conditions applied across the entire feature area (for faces) or length (for edges) are distributed and at a single point boundary conditions are non-distributed.

features : Attribute

Returns a list of features the entity is applied to.

localToPart : Bool

Returns or sets ‘Rotate with part’.

It makes boundary condition not to rotate or rotate along with its associated part.

location : Location (units=”length”)

Returns the location of the entity.

mode : Enum (direction, components)

Specifies the mode of the boundary condition.

Valid choices are:

  • direction
  • components

name : Attribute

Returns or sets the name of the object.

It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.

While these characters are allowed, they could create difficulties when you export the model to other applications.

part : Attribute

Returns the part on which the entity is applied graphically.

parts : Attribute

Returns a list of parts on which the entity is applied on.

sectors : Int

Sets/Gets the number of sectors.

type : Enum (SYMMETRIC, CYCLIC_SYMMETRIC, CYCLIC)

Sets/Gets the type of the symmetric constraint.

visible : Bool

Determines whether the Boundary Condition is visible or not.