The LIMMAX system variable stores the upper-right corner of the grid limits for model space or current space (current layout).
For example, to get the value:
For example, to set the value:
File: SysVarDefs.h
Module: API Reference