LinearTolerance Class — NXOpen Python API Reference 12.0.0 documentation

# LinearTolerance Class

class `NXOpen.Annotations.``LinearTolerance`

  Bases: `NXOpen.TransientObject`

  Represents linear tolerance

  New in version NX4.0.0.

# Properties

Property | Description
--- | ---
DualDimensionDecimalPlaces | Returns or sets the number of decimal places for dual dimension
DualToleranceDecimalPlaces | Returns or sets the number of decimal places for dual tolerance
LimitFitAnsiHoleType | Returns or sets the tolerance limit fit ansi hole type
LimitFitDeviation | Returns or sets the tolerance limit fit deviation
LimitFitDisplayStyle | Returns or sets the tolerance limit fit display style
LimitFitGrade | Returns or sets the tolerance limit fit grade
PrimaryDimensionDecimalPlaces | Returns or sets the number of decimal places for primary dimension
ToleranceType | Returns or sets the tolerance type
ZeroToleranceDisplayStyle | Returns or sets the zero tolerance display style

# Methods

Method | Description
--- | ---
Dispose | Frees the object from memory.
GetLowerToleranceInches | Returns the lower tolerance value in inches
GetLowerToleranceMm | Returns the lower tolerance in millimeters(MM)
GetUpperToleranceInches | Returns the upper tolerance in inches
GetUpperToleranceMm | Returns the upper tolerance in millimeters(MM)
SetLowerToleranceInches | Sets the lower tolerance value in inches
SetLowerToleranceMm | Sets the lower tolerance in millimeters(MM)
SetUpperToleranceInches | Sets the upper tolerance in inches
SetUpperToleranceMm | Sets the upper tolerance in millimeters(MM)

# Property Detail

## DualDimensionDecimalPlaces

`LinearTolerance.``DualDimensionDecimalPlaces`

  Returns or sets the number of decimal places for dual dimension

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

  Getter Method

  Signature `DualDimensionDecimalPlaces`

  Returns: | Number of dual dimension decimal places
  Return type: | int

  New in version NX4.0.0.

  License requirements: None.

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

  Setter Method

  Signature `DualDimensionDecimalPlaces`

  Parameters: | dualDimensionDecimalPlaces (int) – New number of dual dimension decimal places

  New in version NX4.0.0.

  License requirements: None.

## DualToleranceDecimalPlaces

`LinearTolerance.``DualToleranceDecimalPlaces`

  Returns or sets the number of decimal places for dual tolerance

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

  Getter Method

  Signature `DualToleranceDecimalPlaces`

  Returns: | Number of dual tolerance decimal places
  Return type: | int

  New in version NX4.0.0.

  License requirements: None.

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

  Setter Method

  Signature `DualToleranceDecimalPlaces`

  Parameters: | dualToleranceDecimalPlaces (int) – New number of dual tolerance decimal places

  New in version NX4.0.0.

  License requirements: None.

## LimitFitAnsiHoleType

`LinearTolerance.``LimitFitAnsiHoleType`

  Returns or sets the tolerance limit fit ansi hole type

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

  Getter Method

  Signature `LimitFitAnsiHoleType`

  Returns: | Limit fit tolerance ansi hole type
  Return type: | `NXOpen.Annotations.FitAnsiHoleType`

  New in version NX7.5.0.

  License requirements: None.

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

  Setter Method

  Signature `LimitFitAnsiHoleType`

  Parameters: | fitHoleType (`NXOpen.Annotations.FitAnsiHoleType`) – New limit tolerance ansi hole type

  New in version NX7.5.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## LimitFitDeviation

`LinearTolerance.``LimitFitDeviation`

  Returns or sets the tolerance limit fit deviation

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

  Getter Method

  Signature `LimitFitDeviation`

  Returns: | Limit fit deviation
  Return type: | str

  New in version NX7.5.0.

  License requirements: None.

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

  Setter Method

  Signature `LimitFitDeviation`

  Parameters: | fitDeviation (str) – New limit fit deviation

  New in version NX7.5.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## LimitFitDisplayStyle

`LinearTolerance.``LimitFitDisplayStyle`

  Returns or sets the tolerance limit fit display style

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

  Getter Method

  Signature `LimitFitDisplayStyle`

  Returns: | Limit fit tolerance display style
  Return type: | `NXOpen.Annotations.FitDisplayStyle`

  New in version NX7.5.0.

  License requirements: None.

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

  Setter Method

  Signature `LimitFitDisplayStyle`

  Parameters: | fitDisplayStyle (`NXOpen.Annotations.FitDisplayStyle`) – New limit tolerance display style

  New in version NX7.5.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## LimitFitGrade

`LinearTolerance.``LimitFitGrade`

  Returns or sets the tolerance limit fit grade

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

  Getter Method

  Signature `LimitFitGrade`

  Returns: | Limit fit grade
  Return type: | int

  New in version NX7.5.0.

  License requirements: None.

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

  Setter Method

  Signature `LimitFitGrade`

  Parameters: | fitGrade (int) – New Limit fit grade

  New in version NX7.5.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## PrimaryDimensionDecimalPlaces

`LinearTolerance.``PrimaryDimensionDecimalPlaces`

  Returns or sets the number of decimal places for primary dimension

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

  Getter Method

  Signature `PrimaryDimensionDecimalPlaces`

  Returns: | Number of primary dimension decimal places
  Return type: | int

  New in version NX4.0.0.

  License requirements: None.

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

  Setter Method

  Signature `PrimaryDimensionDecimalPlaces`

  Parameters: | primaryDimensionDecimalPlaces (int) – New number of primary dimension decimal places

  New in version NX4.0.0.

  License requirements: None.

## ToleranceType

`LinearTolerance.``ToleranceType`

  Returns or sets the tolerance type

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

  Getter Method

  Signature `ToleranceType`

  Returns: | Tolerance type
  Return type: | `NXOpen.Annotations.ToleranceType`

  New in version NX4.0.0.

  License requirements: None.

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

  Setter Method

  Signature `ToleranceType`

  Parameters: | type (`NXOpen.Annotations.ToleranceType`) – New tolerance type

  New in version NX4.0.0.

  License requirements: None.

## ZeroToleranceDisplayStyle

`LinearTolerance.``ZeroToleranceDisplayStyle`

  Returns or sets the zero tolerance display style

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

  Getter Method

  Signature `ZeroToleranceDisplayStyle`

  Returns: | Zero tolerance display style
  Return type: | `NXOpen.Annotations.ZeroToleranceDisplayStyle`

  New in version NX7.5.0.

  License requirements: None.

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

  Setter Method

  Signature `ZeroToleranceDisplayStyle`

  Parameters: | zeroDisplayStyle (`NXOpen.Annotations.ZeroToleranceDisplayStyle`) –

  New in version NX7.5.0.

  License requirements: None.

# Method Detail

## Dispose

`LinearTolerance.``Dispose`

  Frees the object from memory.

  After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

  Signature `Dispose()`

  New in version NX4.0.0.

  License requirements: None.

## GetLowerToleranceInches

`LinearTolerance.``GetLowerToleranceInches`

  Returns the lower tolerance value in inches

  Signature `GetLowerToleranceInches()`

  Returns: | Lower tolerance in inches
  Return type: | `NXOpen.Annotations.Value`

  New in version NX4.0.0.

  License requirements: None.

## GetLowerToleranceMm

`LinearTolerance.``GetLowerToleranceMm`

  Returns the lower tolerance in millimeters(MM)

  Signature `GetLowerToleranceMm()`

  Returns: | Lower tolerance in millimeters
  Return type: | `NXOpen.Annotations.Value`

  New in version NX4.0.0.

  License requirements: None.

## GetUpperToleranceInches

`LinearTolerance.``GetUpperToleranceInches`

  Returns the upper tolerance in inches

  Signature `GetUpperToleranceInches()`

  Returns: | Upper tolerance in inches
  Return type: | `NXOpen.Annotations.Value`

  New in version NX4.0.0.

  License requirements: None.

## GetUpperToleranceMm

`LinearTolerance.``GetUpperToleranceMm`

  Returns the upper tolerance in millimeters(MM)

  Signature `GetUpperToleranceMm()`

  Returns: | Upper tolerance in millimeters
  Return type: | `NXOpen.Annotations.Value`

  New in version NX4.0.0.

  License requirements: None.

## SetLowerToleranceInches

`LinearTolerance.``SetLowerToleranceInches`

  Sets the lower tolerance value in inches

  Signature `SetLowerToleranceInches(lowerToleranceInches)`

  Parameters: | lowerToleranceInches (`NXOpen.Annotations.Value`) – New lower tolerance in inches

  New in version NX4.0.0.

  License requirements: None.

## SetLowerToleranceMm

`LinearTolerance.``SetLowerToleranceMm`

  Sets the lower tolerance in millimeters(MM)

  Signature `SetLowerToleranceMm(lowerToleranceMm)`

  Parameters: | lowerToleranceMm (`NXOpen.Annotations.Value`) – New lower tolerance in millimeters

  New in version NX4.0.0.

  License requirements: None.

## SetUpperToleranceInches

`LinearTolerance.``SetUpperToleranceInches`

  Sets the upper tolerance in inches

  Signature `SetUpperToleranceInches(upperToleranceInches)`

  Parameters: | upperToleranceInches (`NXOpen.Annotations.Value`) – New upper tolerance in inches

  New in version NX4.0.0.

  License requirements: None.

## SetUpperToleranceMm

`LinearTolerance.``SetUpperToleranceMm`

  Sets the upper tolerance in millimeters(MM)

  Signature `SetUpperToleranceMm(upperToleranceMm)`

  Parameters: | upperToleranceMm (`NXOpen.Annotations.Value`) – New upper tolerance in millimeters

  New in version NX4.0.0.

  License requirements: None.