Access Document Layout Scale Unit?

Hi All,

I am wondering if there is a way to access the Active Document’s Layout Scale UnitSystem (Document Properties / Units / Layout…) within Grasshopper or RhinoScript?

I understand that the Model’s UnitSystem can be accessed using:

import rhinoscriptsyntax as rs

but that only seems to yield the Model’s UnitSystem code?

Note ‘4’ is meters which is correct for the Model, but the Layout units are set to millimeters…

I’m after the Layout’s UnitSystem which are sometimes different than the main document units. Does anyone know a way for me to access that property? I can’t seem to find one myself.

thanks very much!

Hi @ed.p.may

I guess you are after the unit system used in all layout pages. It can be accessed like so:



that worked perfectly. Thank you so much @lando.schumpich