ComponentAssemblySubstitutionMode Enumeration — NXOpen Python API Reference 12.0.0 documentation

# ComponentAssemblySubstitutionMode Enumeration

NXOpen.Assemblies.ComponentAssembly.SubstitutionMode is an alias for NXOpen.Assemblies.ComponentAssemblySubstitutionMode

class `NXOpen.Assemblies.``ComponentAssemblySubstitutionMode`

  Bases: `object`

  Defines how a component substitution operation is performed.

  Enum Members

  Enum Member | Enum Member Description
  --- | ---
  NonAssociative | The old component is deleted, and the new one is added
  SingleComponent | An associative substitution is performed. As far as possible, this will attempt to preserve assembly constraints and interpart links.
  All | An associative substitution is performed on all components that represent the same prototype part. This effectively substitutes one child part for a new one.

  `ValueOf`()

    Returns enum member equivalent to the value passed. Useful for bit operations of enum members.

    Signature `ValueOf(value)`

    Parameters: | value – Any integer value or bit operation result of enum members:type value: int:returns: Enum member equivalent to the value passed.
    Return type: | Enum Member type.

    New in version NX9.0.1.

    License requirements: None.