I’m trying to understand which of the units is currently selected by the user … but I’ve not been able to find this information anywhere in the API.
With units I mean measurement units (i.e. mm or inches)
Someone ever tried this?
Best regards,
Mike
You can use the GetUserUnits()
function. 0 means inches and 1 means mm (if you get -1, it means that there is no valid frame for the units to be in).
1 Like
Thanks… I cannot undestand why searching for unit
on:
http://docs.kicad.org/doxygen-python/namespacepcbnew.html
doesn’t find this occurrence…
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.