Message 1 of 4
Dinesh Palatty/Trim a block using following LISP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to trim a block using following LISP
(defun c:TrimRef ()
(if (ssget "_I" '((0 . "INSERT")))
(command "_.-REFEDIT" "_Ok" "_All" "_No")
(command "_.-REFEDIT" pause "_Ok" "_All" "_No"))
(initcommandversion)
(command-s "_.TRIM")
(command "_.REFCLOSE" "_Save")
(princ)
)
But LISP isnt working can anybody fix the error?
@d_palatty - moderation team has adjusted title for better clarity.