Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this lisp running at startup across my network to import our current Mleader styles:
(setq lyr (getvar "clayer")) (setq lyr1 (tblsearch "layer" "defpoints")) (if (= lyr1 nil) (command "-layer" "make" "defpoints" "color" "9" "" "" "")) (command "-layer" "set" "defpoints" "") (command "-purge" "m" "" "n" ) (setvar "CMLEADERSTYLE" "standard") (command ".-insert" "S:\\settings\\lisp\\2016\\mleaders-jst.dwg" "0,0,0" "" "" "") (setvar "CMLEADERSTYLE" "JST Q1 Ldr") (setvar "clayer" lyr) (setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "jst-mleaders")))) (command "erase" ss1 "") (command "-purge" "blocks" "jst-mleaders" "N") (princ)
The problem is that something in here is opening the help dialog... I believe I've narrowed it down to this section:
(setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "jst-mleaders")))) (command "erase" ss1 "")
because if I comment that part out, I don't have the issues.
But I need that part to delete the block that is inserted.
Any help would be appreciated.
Maybe another way to select and delete that block? IDK.
thanks,
Chris
Thanks in advance!
-Chris
-Chris
Solved! Go to Solution.