How to set "grid snap spacing" by api?

Frequently,I will set “grid snap spacing” to value 100 by hand.Is there some apis to do this?Thank you!

The following macro should do it:

! _NoEcho _-DocumentProperties _Grid _SnapSpacing=100 _EnterEnd

Thank you!I also find ConstructionPlane can do this.