Change Display precision

How can I change that value using code?

You can use RhinoDoc.DistanceDisplayPrecision

see

http://developer.rhino3d.com/api/RhinoCommonWin/html/P_Rhino_RhinoDoc_DistanceDisplayPrecision.htm

thx @menno

@menno RhinoDoc.DistanceDisplayPrecision is a readonly propierty…

i cant try it now… but try to set ModelDistanceDisplayPrecision since decompiling rhinocommon show this:

   public int ModelDistanceDisplayPrecision
    {
      get
      {
        return UnsafeNativeMethods.CRhinoDocProperties_DistanceDisplayPrecision(this.m_docId, true, 0, false);
      }
      set
      {
        UnsafeNativeMethods.CRhinoDocProperties_DistanceDisplayPrecision(this.m_docId, true, value, true);
      }
    }

  public int DistanceDisplayPrecision
    {
      get
      {
        return this.ModelDistanceDisplayPrecision;
      }
    }

so it should be the same thing…

1 Like

Weird, but that should work yeah.

By the way, there’s no need to decompile, the source is on Github:

I agree. by the way, I forgot about github… I just double click on the assembly property with jet brains :smiley: ty for remembering it :wink:

I think you want to use RhinoDoc.ModelDistanceDisplayPrecision which is a getter/setter.

– Dale