Tuesday, 20 January 2009

Checking your displayed units

To find out what units your document is displaying you can use this:

Document.DisplayUnitSystem

This will return zero for metric, and 1 for imperial. It would be handy (for me at least) for this to be changeable through the API, but unfortunately its a readonly property.

I had a bit of a play with my unit settings (Settings > Project Units) to clarify how this property behaves, and confirmed that if I make Area and Volume imperial but leave Length metric, then we still have a metric '0' setting. This is what I was expecting, but I had to make sure!

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!