PreprocessGeometryBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# PreprocessGeometryBuilder Class

class `NXOpen.CAM.``PreprocessGeometryBuilder`

  Bases: `NXOpen.Builder`

  Represents a Preprocess Geometry Builder

  To create a new instance of this class, use `NXOpen.CAM.CAMSetup.CreatePreprocessGeometryBuilder()`

  New in version NX6.0.0.

# Properties

Property | Description
--- | ---
FixedVector | Returns or sets the default tool axis vector
Tag | Returns the Tag for this object.
TriangleTolerance | Returns or sets the default triangle tolerance

# Methods

Method | Description
--- | ---
Commit | Commits any edits that have been applied to the builder.
Create | Create new facet body
Delete | Delete one facet body
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.
GetObjects | Get solid bodies and relevant facet bodies
GetParameter | Get tolerance and vector of facet body which is gotten from relevant solid body
SetParameter | Set tolerance and vector for facet body which is gotten from relevant solid body
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.

# Property Detail

## FixedVector

`PreprocessGeometryBuilder.``FixedVector`

  Returns or sets the default tool axis vector

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

  Getter Method

  Signature `FixedVector`

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

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

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

  Setter Method

  Signature `FixedVector`

  Parameters: | newVector (`NXOpen.SmartObject`) –

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

## TriangleTolerance

`PreprocessGeometryBuilder.``TriangleTolerance`

  Returns or sets the default triangle tolerance

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

  Getter Method

  Signature `TriangleTolerance`

  Returns: |
  Return type: | float

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

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

  Setter Method

  Signature `TriangleTolerance`

  Parameters: | tolerance (float) –

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

# Method Detail

## Create

`PreprocessGeometryBuilder.``Create`

  Create new facet body

  Signature `Create(obj, tolerance, vector)`

  Parameters:

  - obj (`NXOpen.NXObject`) – the new solid body, it will be converted to facet body in function
  - tolerance (float) – tolerance
  - vector (`NXOpen.NXObject`) – vector

  New in version NX6.0.0.

  License requirements: None.

## Delete

`PreprocessGeometryBuilder.``Delete`

  Delete one facet body

  Signature `Delete(obj)`

  Parameters: | obj (`NXOpen.NXObject`) – the solid body,its relevant facet body will be deleted actually

  New in version NX6.0.0.

  License requirements: None.

## GetObjects

`PreprocessGeometryBuilder.``GetObjects`

  Get solid bodies and relevant facet bodies

  Signature `GetObjects()`

  Returns: | a tuple
  Return type: | A tuple consisting of (solidBodies, facetBodies). solidBodies is a list of `NXOpen.NXObject`. the solid bodies facetBodies is a list of `NXOpen.NXObject`. the facet bodies, corresponding to facet bodies

  New in version NX6.0.0.

  License requirements: None.

## GetParameter

`PreprocessGeometryBuilder.``GetParameter`

  Get tolerance and vector of facet body which is gotten from relevant solid body

  Signature `GetParameter(obj)`

  Parameters: | obj (`NXOpen.NXObject`) – the solid body,will find relevant facet body dependent on it
  Returns: | a tuple
  Return type: | A tuple consisting of (tolerance, vector). tolerance is a float. tolerance vector is a `NXOpen.NXObject`. vector

  New in version NX6.0.0.

  License requirements: None.

## SetParameter

`PreprocessGeometryBuilder.``SetParameter`

  Set tolerance and vector for facet body which is gotten from relevant solid body

  Signature `SetParameter(obj, tolerance, vector)`

  Parameters:

  - obj (`NXOpen.NXObject`) – the solid body,will find relevant facet body dependent on it
  - tolerance (float) – tolerance
  - vector (`NXOpen.NXObject`) – vector

  New in version NX6.0.0.

  License requirements: None.

## Validate

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