Unlike many code fields in Smart Materials, units are not restricted to uppercase. Because this is not necessarily supported by all software outside Smart Materials, units are processed as follows:
First, the software tries to find the unit that is passed. If this unit is not found, the software tries to find the unit using uppercase in the comparison.
Examples
Unit in the database |
Unit passed to the API |
Comment |
---|---|---|
kg |
kg |
Unit is found directly |
KG |
kg |
Unit is found because of compare using uppercase |
kg |
KG |
Unit is found because of compare using uppercase |