Setting units in Component Definition DC

Thank you - just what I was looking for. Just 1 small correction,
CENTIMETERS and MILLIMETERS are swaped for [LengthUnit], the should be:

return value 2 = MILLIMETERS
return value 3 = CENTIMETERS