Python rhinoscriptsyntax implementation requests

These are not mission critical, just nice for display and formatting:

UnitSystemName
UnitDistanceDisplayPrecision

I guess these are not in there because they haven’t been added to RhinoCommon yet either…

Thx,
–Mitch

Of course, you could write your own version using RhinoCommon, correct?

Hi Dale,
I didn’t find the methods for either of these in RhinoCommon, but maybe I missed them. Something for UnitSystemName can put together from UnitSystemEnumeration I guess…

–Mitch

Hi Mitch, i´m not shure if this is the correct way but maybe it helps for unit system name:

sc.doc.GetUnitSystemName(modelUnits, capitalize, singular, abbreviate)

and for unit distance display precision:

sc.doc.DistanceDisplayPrecision

greetings,
c.

Hey Clement,

Thanks! I should have looked there, I searched the RhinoCommon help under RhinoDoc, and I didn’t find it in there the first time I looked - now I found it - I was looking for the wrong name… :frowning: I wish there was a listing of the scriptcontext methods in the Help and/or the tree view in the editor…

Cheers,
–Mitch

+1 and more examples, completer chm help and deeper intellisense ! btw. i stumbled across above two by accident while searching for something else. :wink:

c.

I added these functions to rhinoscriptsyntax for SR8

thank you.

c.