Unit of measure functions
- Last UpdatedOct 01, 2026
- 1 minute read
This section provides information relating to Unit of Measure Functions.
|
Function / Aliases |
Returns |
Description |
Example |
|---|---|---|---|
|
GETMEASURE |
String |
Gets the specified measure ID, or null if not found |
length' .GetMeasure |
|
GETMEASUREANNOTATION / GETMEASUREEXTENSION |
String |
Gets an annotation on the specified measure |
'length'.GetMeasureAnnotation('*:alias') |
|
GETMEASUREDESCRIPTION |
String |
Gets the description of a measure |
'length'.GetMeasureDescription |
|
GETMEASURENAME |
String |
Gets the human readable name of a measure |
'length'.GetMeasureName |
|
GETMEASURES |
String[] |
Returns a list of defined measure IDs |
length' .GetMeasures |
|
GETUNIT |
String |
Gets the specified unit ID, or null if not found |
GetUnit |
|
GETUNITANNOTATION / GETUNITEXTENSION |
String |
Gets an annotation on the specified unit |
'metre'.GetUnitAnnotation('*:alias') |
|
GETUNITDESCRIPTION |
String |
Gets the description of a unit |
'metre'.GetUnitDescription |
|
GETUNITNAME |
String |
Gets the human readable name of a unit |
'length'.GetUnitName |
|
GETUNITS |
String[] |
Returns a list of defined unit IDs |
GetUnits |
|
GETMEASUREUNITS |
String[] |
Returns all units for a measure |
'length'.GetMeasureUnits => 'mm', 'm' |
|
GETMEASUREUNIT |
String |
Returns the unit for a measure by ID |
'length'.GetMeasureUnit('mm') => 'mm' |
|
GETUNITBYEXTENSION / GETUNITBYANNOTATION |
ArtefactUnit |
Gets a unit by annotation or extension |
'degC'.GetUnitByAnnotation('*:alias', '|') |
|
GETUNITBYNOMENCLATURE / LOOKUPUNIT |
ArtefactUnit |
Looks up a unit by nomenclature |
'degC'.lookupUnit('SAP') |
|
GETMEASUREBYEXTENSION / GETMEASUREBYANNOTATION |
ArtefactMeasureClass |
Gets a measure by annotation or extension |
'degC'.GetMeasureByAnnotation('*:alias') |
|
GETMEASUREBYNOMENCLATURE / LOOKUPMEASURE |
ArtefactMeasureClass |
Looks up a measure by nomenclature |
'degC'.lookupMeasure('SAP') |
|
GETMEASUREUNITBYNOMENCLATURE / LOOKUPMEASUREUNIT |
ArtefactUnit |
Looks up a measure unit by nomenclature |
'length'.lookupMeasureUnit('mm','SAP') |