Contact (hwx.inspire.core)

Connection between two parts by the contact of features.

Contacts indicate whether neighboring surfaces should be bonded, contacting, or have no contact.

Attributes

active: Bool connectionRadius: Double contactType: Enum
definitionType: Attribute name: Attribute parts: Attribute
primaryFeatures: Attribute searchDistance: Double secondaryFeatures: Attribute
visible: Bool  

Public Methods

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.

connectionRadius : Double (units=”length”)

The search radius for the connector.

contactType : Enum (none, bonded, sliding)

Defines contact type.

The options are bonded, sliding (Contacting in legend), or none (No Contact in legend).

  • Select bonded if parts are bonded or glued together.
  • Select sliding if there is relative sliding between the parts.
  • Select none if parts are close but you don’t want them to have contact.

definitionType : Attribute

Returns the contact definition type, they can be of type ‘Unknown’, ‘Surface’ and ‘Part’.

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.

parts : Attribute

The parts in contact.

primaryFeatures : Attribute

List of features from the primary entity.

searchDistance : Double (units=”length”)

The search distance is a global search threshold that uses default tolerances to find locations where joints can be created.

When the search distance is manually set, the contacts with a minimum separation equal to search distance or less are detected.

secondaryFeatures : Attribute

List of features from the secondary entity.

visible : Bool

Determines whether the object is visible in the modeling window.

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

Property Details

contactData()

Information about the contact including the contact regions mesh.

primaryPart()

The part associated with the primary features.

secondaryPart()

The part associated with the secondary features.

Method Details

getContactJoint(self)

Returns the joint that uses this contact.