ContactMeshBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# ContactMeshBuilder Class

class `NXOpen.CAE.``ContactMeshBuilder`

  Bases: `NXOpen.Builder`

  Represents a `NXOpen.CAE.ContactMeshBuilder`

  To create a new instance of this class, use `NXOpen.CAE.MeshManager.CreateContactMeshBuilder()`

  New in version NX10.0.0.

# Properties

Property | Description
--- | ---
AlignTargetEdgeNodes | Returns or sets a flag to align target edge nodes
AlignmentMethod | Returns or sets the alingment method
ContactEdge | Returns the contact edge or the source edge
ContactEdgeEndPoint | Returns or sets the end point of contact on contact edge
ContactEdgeStartPoint | Returns or sets the start point of contact on contact edge
ElementType | Returns the element type to be created
EnableGapTolerance | Returns or sets a flag to enable gap tolerance
GapTolerance | Returns or sets the gap tolerance
NumElements | Returns or sets the number of contact elements
Tag | Returns the Tag for this object.
TargetEdge | Returns the target edge
TargetEdgeEndPoint | Returns or sets the end point of contact on target edge
TargetEdgeStartPoint | Returns or sets the start point of contact on target edge

# Methods

Method | Description
--- | ---
Commit | Commits any edits that have been applied to the builder.
Destroy | Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit.
GetObject | Returns the object currently being edited by this builder.
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Enumerations

ContactMeshBuilderAlignmentType Enumeration | the type of alignment to be created

# Property Detail

## AlignTargetEdgeNodes

`ContactMeshBuilder.``AlignTargetEdgeNodes`

  Returns or sets a flag to align target edge nodes

  `-------------------------------------`

  Getter Method

  Signature `AlignTargetEdgeNodes`

  Returns: |
  Return type: | bool

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AlignTargetEdgeNodes`

  Parameters: | alignTargetEdgeNodes (bool) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AlignmentMethod

`ContactMeshBuilder.``AlignmentMethod`

  Returns or sets the alingment method

  `-------------------------------------`

  Getter Method

  Signature `AlignmentMethod`

  Returns: |
  Return type: | `NXOpen.CAE.ContactMeshBuilderAlignmentType`

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AlignmentMethod`

  Parameters: | alignmentMethod (`NXOpen.CAE.ContactMeshBuilderAlignmentType`) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## ContactEdge

`ContactMeshBuilder.``ContactEdge`

  Returns the contact edge or the source edge

  `-------------------------------------`

  Getter Method

  Signature `ContactEdge`

  Returns: |
  Return type: | `NXOpen.CAE.SelectCAEEdge`

  New in version NX10.0.0.

  License requirements: None.

## ContactEdgeEndPoint

`ContactMeshBuilder.``ContactEdgeEndPoint`

  Returns or sets the end point of contact on contact edge

  `-------------------------------------`

  Getter Method

  Signature `ContactEdgeEndPoint`

  Returns: |
  Return type: | `NXOpen.Point`

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ContactEdgeEndPoint`

  Parameters: | contactEdgeEndPoint (`NXOpen.Point`) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## ContactEdgeStartPoint

`ContactMeshBuilder.``ContactEdgeStartPoint`

  Returns or sets the start point of contact on contact edge

  `-------------------------------------`

  Getter Method

  Signature `ContactEdgeStartPoint`

  Returns: |
  Return type: | `NXOpen.Point`

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ContactEdgeStartPoint`

  Parameters: | contactEdgeStartPoint (`NXOpen.Point`) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## ElementType

`ContactMeshBuilder.``ElementType`

  Returns the element type to be created

  `-------------------------------------`

  Getter Method

  Signature `ElementType`

  Returns: |
  Return type: | `NXOpen.CAE.ElementTypeBuilder`

  New in version NX10.0.0.

  License requirements: None.

## EnableGapTolerance

`ContactMeshBuilder.``EnableGapTolerance`

  Returns or sets a flag to enable gap tolerance

  `-------------------------------------`

  Getter Method

  Signature `EnableGapTolerance`

  Returns: |
  Return type: | bool

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `EnableGapTolerance`

  Parameters: | enableGapTolerance (bool) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## GapTolerance

`ContactMeshBuilder.``GapTolerance`

  Returns or sets the gap tolerance

  `-------------------------------------`

  Getter Method

  Signature `GapTolerance`

  Returns: |
  Return type: | float

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `GapTolerance`

  Parameters: | gapTolerance (float) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## NumElements

`ContactMeshBuilder.``NumElements`

  Returns or sets the number of contact elements

  `-------------------------------------`

  Getter Method

  Signature `NumElements`

  Returns: |
  Return type: | int

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `NumElements`

  Parameters: | numElements (int) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## TargetEdge

`ContactMeshBuilder.``TargetEdge`

  Returns the target edge

  `-------------------------------------`

  Getter Method

  Signature `TargetEdge`

  Returns: |
  Return type: | `NXOpen.CAE.SelectCAEEdge`

  New in version NX10.0.0.

  License requirements: None.

## TargetEdgeEndPoint

`ContactMeshBuilder.``TargetEdgeEndPoint`

  Returns or sets the end point of contact on target edge

  `-------------------------------------`

  Getter Method

  Signature `TargetEdgeEndPoint`

  Returns: |
  Return type: | `NXOpen.Point`

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TargetEdgeEndPoint`

  Parameters: | targetEdgeEndPoint (`NXOpen.Point`) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## TargetEdgeStartPoint

`ContactMeshBuilder.``TargetEdgeStartPoint`

  Returns or sets the start point of contact on target edge

  `-------------------------------------`

  Getter Method

  Signature `TargetEdgeStartPoint`

  Returns: |
  Return type: | `NXOpen.Point`

  New in version NX10.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TargetEdgeStartPoint`

  Parameters: | targetEdgeStartPoint (`NXOpen.Point`) –

  New in version NX10.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

# Method Detail

## Validate

`ContactMeshBuilder.``Validate`

  Validate whether the inputs to the component are sufficient for commit to be called.

  If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

  Signature `Validate()`

  Returns: | Was self validation successful
  Return type: | bool

  New in version NX3.0.1.

  License requirements: None.