CurveFitData Class — NXOpen Python API Reference 12.0.0 documentation

# CurveFitData Class

class `NXOpen.GeometricUtilities.``CurveFitData`

  Bases: `NXOpen.TaggedObject`, `NXOpen.GeometricUtilities.IComponentBuilder`

  Represents the curve fitting methods options.

  New in version NX8.0.0.

# Properties

Property | Description
--- | ---
AngleTolerance | Returns or sets the angle tolerance
CurveJoinMethod | Returns or sets the curve join method
Degree | Returns or sets the fitting degree
FitMethod | Returns or sets the fitting method
IsAdvancedFit | Returns or sets the advanced fitting option
IsAlignShape | Returns or sets the align shape option
MaximumDegree | Returns or sets the maximum degree
MaximumSegments | Returns or sets the maximum segments
MinimumDegree | Returns or sets the minimum degree
Segments | Returns or sets the fitting segments
Tag | Returns the Tag for this object.
Tolerance | Returns or sets the tolerance

# Methods

Method | Description
--- | ---
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Enumerations

CurveFitDataJoin Enumeration | Represents the curve join method
CurveFitDataMethod Enumeration | Represents the curve fitting method in the case of advanced fitting

# Property Detail

## AngleTolerance

`CurveFitData.``AngleTolerance`

  Returns or sets the angle tolerance

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

  Getter Method

  Signature `AngleTolerance`

  Returns: |
  Return type: | float

  New in version NX8.5.0.

  License requirements: None.

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

  Setter Method

  Signature `AngleTolerance`

  Parameters: | angleTolerance (float) –

  New in version NX8.5.0.

  License requirements: None.

## CurveJoinMethod

`CurveFitData.``CurveJoinMethod`

  Returns or sets the curve join method

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

  Getter Method

  Signature `CurveJoinMethod`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.CurveFitDataJoin`

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `CurveJoinMethod`

  Parameters: | curveJoinMethod (`NXOpen.GeometricUtilities.CurveFitDataJoin`) –

  New in version NX8.0.0.

  License requirements: None.

## Degree

`CurveFitData.``Degree`

  Returns or sets the fitting degree

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

  Getter Method

  Signature `Degree`

  Returns: |
  Return type: | int

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `Degree`

  Parameters: | degree (int) –

  New in version NX8.0.0.

  License requirements: None.

## FitMethod

`CurveFitData.``FitMethod`

  Returns or sets the fitting method

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

  Getter Method

  Signature `FitMethod`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.CurveFitDataMethod`

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `FitMethod`

  Parameters: | fitMethod (`NXOpen.GeometricUtilities.CurveFitDataMethod`) –

  New in version NX8.0.0.

  License requirements: None.

## IsAdvancedFit

`CurveFitData.``IsAdvancedFit`

  Returns or sets the advanced fitting option

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

  Getter Method

  Signature `IsAdvancedFit`

  Returns: |
  Return type: | bool

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `IsAdvancedFit`

  Parameters: | isAdvancedFit (bool) –

  New in version NX8.0.0.

  License requirements: None.

## IsAlignShape

`CurveFitData.``IsAlignShape`

  Returns or sets the align shape option

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

  Getter Method

  Signature `IsAlignShape`

  Returns: |
  Return type: | bool

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `IsAlignShape`

  Parameters: | isAlignShape (bool) –

  New in version NX8.0.0.

  License requirements: None.

## MaximumDegree

`CurveFitData.``MaximumDegree`

  Returns or sets the maximum degree

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

  Getter Method

  Signature `MaximumDegree`

  Returns: |
  Return type: | int

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `MaximumDegree`

  Parameters: | maximumDegree (int) –

  New in version NX8.0.0.

  License requirements: None.

## MaximumSegments

`CurveFitData.``MaximumSegments`

  Returns or sets the maximum segments

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

  Getter Method

  Signature `MaximumSegments`

  Returns: |
  Return type: | int

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `MaximumSegments`

  Parameters: | maximumSegments (int) –

  New in version NX8.0.0.

  License requirements: None.

## MinimumDegree

`CurveFitData.``MinimumDegree`

  Returns or sets the minimum degree

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

  Getter Method

  Signature `MinimumDegree`

  Returns: |
  Return type: | int

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `MinimumDegree`

  Parameters: | minimumDegree (int) –

  New in version NX8.0.0.

  License requirements: None.

## Segments

`CurveFitData.``Segments`

  Returns or sets the fitting segments

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

  Getter Method

  Signature `Segments`

  Returns: |
  Return type: | int

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `Segments`

  Parameters: | segments (int) –

  New in version NX8.0.0.

  License requirements: None.

## Tolerance

`CurveFitData.``Tolerance`

  Returns or sets the tolerance

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

  Getter Method

  Signature `Tolerance`

  Returns: |
  Return type: | float

  New in version NX8.0.0.

  License requirements: None.

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

  Setter Method

  Signature `Tolerance`

  Parameters: | tolerance (float) –

  New in version NX8.0.0.

  License requirements: None.

# Method Detail

## Validate

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