GetQuantityInfo

For each quantity that the UDO creates, it must also describe the quantity (unit and other details). This method is called for each quantity name (across all categories) as returned from an earlier call of the GetQuantityNames method.

UI Access NA
Parameters
Name Type Description
<quantityName> String Name of quantity
Return Value Object of type QuantityInfo.

 

Python Syntax GetQuantityInfo(<quantityName>)
Python Example
# Returns an instance of QuantityInfo for the qtyName supplied or None if such a 
# quantity could not be found
def GetQuantityInfo(self, qtyName):
    # All the quantities we have are simple doubles
    # we can leave them unitless
    return QuantityInfo(Constants.kDoubleParamStr)