SewFacetBodyBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# SewFacetBodyBuilder Class

class `NXOpen.Facet.``SewFacetBodyBuilder`

  Bases: `NXOpen.Builder`

  Represents a `NXOpen.Facet.SewFacetBodyBuilder` It sews two touching NX facet bodies.

  User need to specify the range on one of input body. The range on the other body is calculated automatically by choosing the closest vertex. It retruns a new mergered NX facet body. The two input bodies can be kept, deleted or hidden.

  To create a new instance of this class, use `NXOpen.Facet.FacetedBodyCollection.CreateSewFacetBodyBuilder()`

  Default values.

  Property | Value
  --- | ---
  DeformDistance.Value | 0.5 (millimeters part), 0.05 (inches part)
  InputStatus | Keep

  New in version NX9.0.0.

# Properties

Property | Description
--- | ---
DeformBody | Returns the deform body to be sewed
DeformDistance | Returns the distance to control the deform area on the deform body
DistanceTolerance | Returns or sets the distance tolerance used in the merge touching facet body feature
InputStatus | Returns or sets the option to specify how to deal with the input two facet bodies: keep, delete or hide
Tag | Returns the Tag for this object.
TargetBody | Returns the target body to be sewed
Vertex1 | Returns or sets the first vertex used to define the range
Vertex2 | Returns or sets the second vertex used to define the range

# 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.
FlipRange | Flip the range between the first and second vertex
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

SewFacetBodyBuilderInput Enumeration | Represents the option for keeping, deleting or hiding input two facet bodies after builder committing
SewFacetBodyBuilderVertexIndex Enumeration | Index of the vertex

# Property Detail

## DeformBody

`SewFacetBodyBuilder.``DeformBody`

  Returns the deform body to be sewed

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

  Getter Method

  Signature `DeformBody`

  Returns: |
  Return type: | `NXOpen.Facet.SelectFacetedBody`

  New in version NX9.0.0.

  License requirements: None.

## DeformDistance

`SewFacetBodyBuilder.``DeformDistance`

  Returns the distance to control the deform area on the deform body

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

  Getter Method

  Signature `DeformDistance`

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

  New in version NX9.0.0.

  License requirements: None.

## DistanceTolerance

`SewFacetBodyBuilder.``DistanceTolerance`

  Returns or sets the distance tolerance used in the merge touching facet body feature

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

  Getter Method

  Signature `DistanceTolerance`

  Returns: |
  Return type: | float

  New in version NX9.0.2.

  License requirements: None.

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

  Setter Method

  Signature `DistanceTolerance`

  Parameters: | distanceTolerance (float) –

  New in version NX9.0.2.

  License requirements: None.

## InputStatus

`SewFacetBodyBuilder.``InputStatus`

  Returns or sets the option to specify how to deal with the input two facet bodies: keep, delete or hide

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

  Getter Method

  Signature `InputStatus`

  Returns: |
  Return type: | `NXOpen.Facet.SewFacetBodyBuilderInput`

  New in version NX9.0.0.

  License requirements: None.

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

  Setter Method

  Signature `InputStatus`

  Parameters: | inputStatus (`NXOpen.Facet.SewFacetBodyBuilderInput`) –

  New in version NX9.0.0.

  License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)

## TargetBody

`SewFacetBodyBuilder.``TargetBody`

  Returns the target body to be sewed

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

  Getter Method

  Signature `TargetBody`

  Returns: |
  Return type: | `NXOpen.Facet.SelectFacetedBody`

  New in version NX9.0.0.

  License requirements: None.

## Vertex1

`SewFacetBodyBuilder.``Vertex1`

  Returns or sets the first vertex used to define the range

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

  Getter Method

  Signature `Vertex1`

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

  New in version NX9.0.0.

  License requirements: None.

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

  Setter Method

  Signature `Vertex1`

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

  New in version NX9.0.0.

  License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)

## Vertex2

`SewFacetBodyBuilder.``Vertex2`

  Returns or sets the second vertex used to define the range

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

  Getter Method

  Signature `Vertex2`

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

  New in version NX9.0.0.

  License requirements: None.

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

  Setter Method

  Signature `Vertex2`

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

  New in version NX9.0.0.

  License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)

# Method Detail

## FlipRange

`SewFacetBodyBuilder.``FlipRange`

  Flip the range between the first and second vertex

  Signature `FlipRange()`

  New in version NX9.0.0.

  License requirements: None.

## Validate

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