Parsing units?

I modified the gear script to handle lower values for the radius, addendum, etc. since the first real gear I tried to model required values smaller than the defaults in the current script.

I also noticed that it does not handle units specification, i.e. 10mm. Just ignores the mm, or cm, or in for that matter.

Where is the parsing of the units handled?

Regards,
Mac

Hi Mac,


    radius = FloatProperty(name="Radius",
        description="Radius of the gear, negative for crown gear",
        min=-100.0,
        max=100.0,
        default=1.0,
        unit='LENGTH')