DatumCollection Class

class NXOpen.DatumCollection

Bases: object

Represents a collection of datum geometry.

Datum geometry includes datum planes, datum axes, datum coordinate systems, and datum points To obtain an instance of this class, refer to NXOpen.BasePart

New in version NX3.0.0.

Methods

Method Description
CreateFixedDatumAxis Creates a fixed datum axis Note: <tt>start</tt> and <tt>end</tt> only specify the origin and start direction of the datum axis.
CreateFixedDatumPlane Creates a fixed datum plane
FindObject Finds the datum with the given identifier as recorded in a journal.

Method Detail

CreateFixedDatumAxis

DatumCollection.CreateFixedDatumAxis

Creates a fixed datum axis

Note: <tt>start</tt> and <tt>end</tt> only specify the origin and start direction of the datum axis. The datum axis that is created may have a length longer than what is specified by <tt>start</tt> and <tt>end</tt>. To set the start and end points, DatumAxis.SetEndPoints may be used

Signature CreateFixedDatumAxis(start, end)

Parameters:
Returns:

The datum axis that is created

Return type:

NXOpen.DatumAxis

New in version NX3.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR cam_base (“CAM BASE”) OR geometric_tol (“GDT”) OR insp_programming (“INSPECTION PROGRAMMING”)

CreateFixedDatumPlane

DatumCollection.CreateFixedDatumPlane

Creates a fixed datum plane

Signature CreateFixedDatumPlane(origin, orientation)

Parameters:
Returns:

The datum plane that is created

Return type:

NXOpen.DatumPlane

New in version NX3.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR cam_base (“CAM BASE”) OR insp_programming (“INSPECTION PROGRAMMING”)

FindObject

DatumCollection.FindObject

Finds the datum with the given identifier as recorded in a journal.

An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.

An exception will be thrown if no object can be found with the given journal identifier.

Signature FindObject(journalIdentifier)

Parameters:journalIdentifier (str) – Identifier of the datum you want
Returns:Datum with this identifier
Return type:NXOpen.DisplayableObject

New in version NX3.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”) OR cam_base (“CAM BASE”) OR geometric_tol (“GDT”) OR insp_programming (“INSPECTION PROGRAMMING”)