NX Open C++ Reference Guide
|
Provides methods for manipulating the units in a part
To obtain an instance of this class, refer to NXOpen::BasePart
Created in NX4.0.0.
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. More... | |
double | Convert (NXOpen::Unit *initialUnit, NXOpen::Unit *targetUnit, double initialValue) |
Convert a value from one unit of measure to another. More... | |
iterator | end () |
Returns an iterator addressing one past the last element. More... | |
NXOpen::Unit * | FindObject (const NXString &journalIdentifier) |
Finds the Unit with the given identifier as recorded in a journal. More... | |
NXOpen::Unit * | FindObject (const char *journalIdentifier) |
Finds the Unit with the given identifier as recorded in a journal. More... | |
NXOpen::Unit * | GetBase (const NXString &measureName) |
Find the base part unit for a given type of measure. More... | |
NXOpen::Unit * | GetBase (const char *measureName) |
Find the base part unit for a given type of measure. More... | |
std::vector< NXString > | GetMeasures () |
Finds the list of different types of measures available in the system. More... | |
std::vector< NXOpen::Unit * > | GetMeasureTypes (const NXString &measureName) |
Finds the units that are available for a given type of measure. More... | |
std::vector< NXOpen::Unit * > | GetMeasureTypes (const char *measureName) |
Finds the units that are available for a given type of measure. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Provides methods for manipulating the units in a part
To obtain an instance of this class, refer to NXOpen::BasePart
Created in NX4.0.0.
iterator NXOpen::UnitCollection::begin | ( | ) |
Returns an iterator addressing the first element.
double NXOpen::UnitCollection::Convert | ( | NXOpen::Unit * | initialUnit, |
NXOpen::Unit * | targetUnit, | ||
double | initialValue | ||
) |
Convert a value from one unit of measure to another.
initialUnit | initial measurement unit |
targetUnit | target measurement unit |
initialValue | initial value |
iterator NXOpen::UnitCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Unit* NXOpen::UnitCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the Unit with the given identifier as recorded in a journal.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier to be found |
NXOpen::Unit* NXOpen::UnitCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the Unit with the given identifier as recorded in a journal.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier to be found |
NXOpen::Unit* NXOpen::UnitCollection::GetBase | ( | const NXString & | measureName | ) |
Find the base part unit for a given type of measure.
measureName | the type of measure NOTE: The full Unicode character set is not supported for this parameter. |
NXOpen::Unit* NXOpen::UnitCollection::GetBase | ( | const char * | measureName | ) |
Find the base part unit for a given type of measure.
measureName | the type of measure NOTE: The full Unicode character set is not supported for this parameter. |
std::vector<NXString> NXOpen::UnitCollection::GetMeasures | ( | ) |
Finds the list of different types of measures available in the system.
Types of measures include length, area and volume
std::vector<NXOpen::Unit *> NXOpen::UnitCollection::GetMeasureTypes | ( | const NXString & | measureName | ) |
Finds the units that are available for a given type of measure.
measureName | the type of measure NOTE: The full Unicode character set is not supported for this parameter. |
std::vector<NXOpen::Unit *> NXOpen::UnitCollection::GetMeasureTypes | ( | const char * | measureName | ) |
Finds the units that are available for a given type of measure.
measureName | the type of measure NOTE: The full Unicode character set is not supported for this parameter. |
tag_t NXOpen::UnitCollection::Tag | ( | ) | const |
Returns the tag of this object.