ScalarCollection Class

class NXOpen.ScalarCollection

Bases: object

Represents a collection of NXOpen.Scalar objects.

Iterating this collection only returns live uncondemned objects contained in the owning part of the collection. Note that NXOpen.Scalar is a smart object and many smart objects are condemned as they only exist to support other objects and are not displayed. To obtain an instance of this class, refer to NXOpen.BasePart

New in version NX3.0.0.

Methods

Method Description
CreateScalar Creates a scalar without parameters.
CreateScalarExpression Creates a scalar using an expression.
CreateScalarReciprocalValue Creates a scalar whose value is a reciprocal of another scalar

Method Detail

CreateScalar

ScalarCollection.CreateScalar

Overloaded method CreateScalar

  • CreateScalar(value, dimensionality, update)
  • CreateScalar(scalarExtract, scalarOptional, dimensionality, update)

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

Creates a scalar without parameters.

Signature CreateScalar(value, dimensionality, update)

Parameters:
Returns:

Return type:

NXOpen.Scalar

New in version NX3.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”) OR cam_base (“CAM BASE”)

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

Creates a scalar via an existing scalar and an optional scalar.

Signature CreateScalar(scalarExtract, scalarOptional, dimensionality, update)

Parameters:
Returns:

Return type:

NXOpen.Scalar

New in version NX3.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”) OR cam_base (“CAM BASE”)

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

CreateScalarExpression

ScalarCollection.CreateScalarExpression

Creates a scalar using an expression.

Signature CreateScalarExpression(expression, dimensionality, update)

Parameters:
Returns:

Return type:

NXOpen.Scalar

New in version NX3.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”) OR cam_base (“CAM BASE”)

CreateScalarReciprocalValue

ScalarCollection.CreateScalarReciprocalValue

Creates a scalar whose value is a reciprocal of another scalar

Signature CreateScalarReciprocalValue(scalar, dimensionality, update)

Parameters:
Returns:

Return type:

NXOpen.Scalar

New in version NX8.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”) OR cam_base (“CAM BASE”)