How can I change that value using code?
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
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…
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 ty for remembering it
I think you want to use RhinoDoc.ModelDistanceDisplayPrecision
which is a getter/setter.
– Dale