How to read/modify Document Property (Grid Snap interval, Grid thin interval)

Hello.

I’d like to change Grid Snap interval, and Grid thin line interval from my plugin.
They are in Document Properties in Options.

How can I do that in Python or DotNetSDK?

Thanks.

See if this gives you any ideas:

import Rhino

def TestGridSettings():
    doc = Rhino.RhinoDoc.ActiveDoc
    views = doc.Views.GetStandardRhinoViews()
    for view in views:
        cplane = view.ActiveViewport.GetConstructionPlane()
        cplane.GridLineCount = cplane.GridLineCount * 2
        view.ActiveViewport.PushConstructionPlane(cplane)
    doc.Views.Redraw()
    
if( __name__ == "__main__" ):
    TestGridSettings()

Hi, Dale.
Thank you very much.
That is what I want to do.

I’d like to ask more related with this.

How can I change nudge steps ( There are 3 kind of nudge steps) in option dialog ?

I’d like to change these parameter values according to grid interval.

Katsu,
see [here.][1]

Best,
fishermans.

[1]: Read and Write Nudge Key Option via Python[quote=“Katsu, post:4, topic:4408, full:true”]
I’d like to ask more related with this.

How can I change nudge steps ( There are 3 kind of nudge steps) in option dialog ?

I’d like to change these parameter values according to grid interval.
[/quote]