Message 1 of 6
LISP to update block in drawing using "-insert blkname=" approach
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want a LISP routing to update block in drawing using the "-insert blkname=" approach. Below are LISP lines I wrote to try to accomplish this but the routine doesn't work. Help from any AutoLISP gurus will be appreciated.
-Bruce
(defun c:blkupdate (blknm)
(command-s "select" "l" "")
(setq blknm (getvar "INSNAME"))
(setq blknm (strcat blknm "="))
(command-s "insert" blknm pause "" "" "")
(command-s "erase" "l" "")
)