Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Would somebody be kind enough to help me, i'm having trouble with a LISP file.
I am trying to insert the same block to multiple points, all at once.
i have got my hands on the following;
(defun C:PT2BLK ( / ss blk n) (setq ss (ssget "x" '((0 . "POINT"))) blk (getstring "\nName of Block: ") )::setq (if (and ss (tblsearch "block" blk)) (progn (setq n (1- (sslength ss))) (while (>= n 0) (setq pt (cdr (assoc 10 (entget (ssname ss n)))) n (1- n) );; setq (command "_.-insert" blk pt "" "" "") );;while );;progn );; if (princ) )
However, when i load this file into CAD it flags up an error message.
; error: malformed list on input
Thanks you.
Solved! Go to Solution.