Friday 18 November 2011

Toggling the display of grips within blocks

By default, when you select a block, AutoCAD displays only one grip, at the block’s base point. However, what if you want to grip edit the block from some other point in the block. You can do so by displaying the grips of all the objects in the block. Jack Foster sent in a great AutoLISP routine that easily toggles between these modes. To use it, type the following at the end of your acad.lsp file (or create the file if it doesn’t exist and put it in your AutoCAD’s  \Support folder).
(defun c:gb()
(setvar “gripblock” (abs(1- (getvar “gripblock”))))
)
This will load automatically when you start AutoCAD. Then simply type gb to run the routine. Each time you use gb, the routine toggles the GRIPBLOCK system variable setting. Here you see the results of both settings.

Jack notes that you can use the same method to toggle other system variables that use 0 and 1 as their two values, such as tilemode.


No comments:

Post a Comment