NX Open C++ Reference Guide
|
Represents a collection of datum geometry. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. | |
NXOpen::DatumAxis * | CreateFixedDatumAxis (const NXOpen::Point3d &start, const NXOpen::Point3d &end) |
Creates a fixed datum axis. | |
NXOpen::DatumPlane * | CreateFixedDatumPlane (const NXOpen::Point3d &origin, const NXOpen::Matrix3x3 &orientation) |
Creates a fixed datum plane. | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
NXOpen::DisplayableObject * | FindObject (const NXString &journalIdentifier) |
Finds the datum with the given identifier as recorded in a journal. | |
NXOpen::DisplayableObject * | FindObject (const char *journalIdentifier) |
Finds the datum with the given identifier as recorded in a journal. | |
tag_t | Tag () const |
Returns the tag of this 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 BasePart
Created in NX3.0.0.
iterator NXOpen::DatumCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::DatumAxis* NXOpen::DatumCollection::CreateFixedDatumAxis | ( | const NXOpen::Point3d & | start, |
const NXOpen::Point3d & | end | ||
) |
Creates a fixed datum axis.
Note: start
and end
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 start
and end
. To set the start and end points, DatumAxis.SetEndPoints may be used
start | Start point |
end | End point |
NXOpen::DatumPlane* NXOpen::DatumCollection::CreateFixedDatumPlane | ( | const NXOpen::Point3d & | origin, |
const NXOpen::Matrix3x3 & | orientation | ||
) |
Creates a fixed datum plane.
origin | Origin of the datum plane |
orientation | Orientation matrix of the datum plane. Must be orthonormal |
iterator NXOpen::DatumCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::DisplayableObject* NXOpen::DatumCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
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.
journalIdentifier | Identifier of the datum you want |
NXOpen::DisplayableObject* NXOpen::DatumCollection::FindObject | ( | const char * | journalIdentifier | ) |
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.
journalIdentifier | Identifier of the datum you want |
tag_t NXOpen::DatumCollection::Tag | ( | ) | const |
Returns the tag of this object.