Constraint (hwx.inspire.core)

A constraint to restrict the sliding and rotational movement.

Attributes

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

Public Methods

updatePosition (self, m44)

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.

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 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.

dofs : Attribute

Returns a set of the degrees of freedom.

Values can be:

  • tx - Translation in the x direction is free.
  • ty - Translation in the y direction is free.
  • tz - Translation in the z direction is free.
  • rx - Rotation about the x axis is free.
  • ry - Rotation about the y axis is free.
  • rz - Rotation about the z axis is free.

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.

visible : Bool

Determines whether the Boundary Condition is visible or not.

Property Details

detached()

Determines if the constraint is defined on a detached point.

detachedInSpace()

Determines if the constraint is defined on a detached location in space.

position()

Returns and sets the position of the constraint as a M44 matrix.

Method Details

updatePosition(self, m44)

Update the position by multiplying input M44 matrix.