Python rhinoscriptsyntax implementation requests


#1

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


(Dale Fugier) #2

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


#3

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


#4

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.


#5

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


#6

+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.


(Steve Baer) #7

I added these functions to rhinoscriptsyntax for SR8


#8

thank you.

c.