PDA

View Full Version : Adding a command to a Tool Pallette



sam.121498
2010-01-15, 10:38 PM
Is it possible to add a command when pulling in blocks from a Tool Pallette? I would like AutoCAD to turn off all snaps except one everytime I pull in a block. Then when the block is inserted, the original snaps get turned back on.

rkmcswain
2010-01-16, 02:37 AM
I don't believe the tool palette interface supports this.

You could do it with lisp though.




(setq osmode (getvar "osmode"))
(setvar "osmode" 1) ;;or whatever value you want

;;; insert the block here

(setvar "osmode" osmode)