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: - start (
NXOpen.Point3d
) – Start point - end (
NXOpen.Point3d
) – End point
Returns: The datum axis that is created
Return type: 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”)
- start (
CreateFixedDatumPlane¶
-
DatumCollection.
CreateFixedDatumPlane
¶ Creates a fixed datum plane
Signature
CreateFixedDatumPlane(origin, orientation)
Parameters: - origin (
NXOpen.Point3d
) – Origin of the datum plane - orientation (
NXOpen.Matrix3x3
) – Orientation matrix of the datum plane. Must be orthonormal
Returns: The datum plane that is created
Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR cam_base (“CAM BASE”) OR insp_programming (“INSPECTION PROGRAMMING”)
- origin (
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”)