DistancePatternSpacing Class — NXOpen Python API Reference 12.0.0 documentation

# DistancePatternSpacing Class

class `NXOpen.GeometricUtilities.``DistancePatternSpacing`

  Bases: `NXOpen.GeometricUtilities.PatternSpacing`

  defines the various ways pattern instances can be spaced within the pattern, particularly in the context of the PatternDefinition class.

  New in version NX7.5.0.

# Properties

Property | Description
--- | ---
NCopies | Returns the number of copies the pattern will generated in this direction
PitchDistance | Returns the distance for the spacing of the pattern from one instance to the next.
SpaceType | Returns or sets the type of spacing to be used by the pattern
SpacingsList | Returns the list of spacings (Expression or OnPathDimBuilder) to be used in this direction
SpanDistance | Returns the distance for the spacing of the pattern for the entire pattern.
Tag | Returns the Tag for this object.

# Methods

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

# Property Detail

## PitchDistance

`DistancePatternSpacing.``PitchDistance`

  Returns the distance for the spacing of the pattern from one instance to the next.

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

  Getter Method

  Signature `PitchDistance`

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

  New in version NX7.5.0.

  License requirements: None.

## SpanDistance

`DistancePatternSpacing.``SpanDistance`

  Returns the distance for the spacing of the pattern for the entire pattern.

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

  Getter Method

  Signature `SpanDistance`

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

  New in version NX7.5.0.

  License requirements: None.

# Method Detail

## Validate

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