PatternSpacing Class

class NXOpen.GeometricUtilities.PatternSpacing

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

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

Enumerations

PatternSpacingSpacingType Enumeration defines the type of spacing instances can have within a pattern.

Property Detail

NCopies

PatternSpacing.NCopies

Returns the number of copies the pattern will generated in this direction

-------------------------------------

Getter Method

Signature NCopies

Returns:
Return type:NXOpen.Expression

New in version NX7.5.0.

License requirements: None.

SpaceType

PatternSpacing.SpaceType

Returns or sets the type of spacing to be used by the pattern

-------------------------------------

Getter Method

Signature SpaceType

Returns:
Return type:NXOpen.GeometricUtilities.PatternSpacingSpacingType

New in version NX7.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature SpaceType

Parameters:spaceType (NXOpen.GeometricUtilities.PatternSpacingSpacingType) –

New in version NX7.5.0.

License requirements: None.

SpacingsList

PatternSpacing.SpacingsList

Returns the list of spacings (Expression or OnPathDimBuilder) to be used in this direction

-------------------------------------

Getter Method

Signature SpacingsList

Returns:
Return type:NXOpen.GeometricUtilities.PatternSpacingsList

New in version NX8.0.0.

License requirements: None.

Method Detail

Validate

PatternSpacing.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.