@Anonymous wrote:
The only other functionality I really require is to select a start point and see visually these boxes as I drag my mouse away from the corner filling up that space with 1090x1090mm boxes spaced at 1200mm.
This functionality is completely different from what you've in Lee's script for dynamic grid.
Description of Lee's script is:
This program will prompt the user for a number of rows and columns then proceed to construct a grid composed of Line Entities between two corner poins.
If called with 'DGrid' (Draw Grid) at the AutoCAD command-line, the program will operate in standard mode, with all standard AutoCAD functionality (such as Object Snap / Tracking / Orthomode etc.) available to the user.
If called with 'DGridD' (Draw Grid Dynamic) at the AutoCAD command-line, the program will display a real-time preview of the grid constructed between the two corner points; however, Object Snap is imitated during the preview, and most other AutoCAD functionality (such as Tracking / Orthomode etc.) is unavailable in this mode.
The program will remember the last used number of rows and columns during the active drawing session, and these values will be available as defaults for the next use.
So you have to enter number of rows and cols and then you can fit this grid inside rectangle area. For your request, one would have to track position of cursor and add or remove rectangles if they fit inside dynamic selection rectangle created using grxxx functions. This is not an easy task to accomplish (haven't seen anything similar) .
That's why I proposed a simple solution with storing a grid inside a variable so it can be easily moved around or aligned to let say wall edge.
I'll try to write something that would work as you asking for, but this is really not an easy stuff to be written in short time.
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.