Jump to content

Recommended Posts

Posted

Hello,

Lots of points in a drawing, I want to insert a block in every point. Does anybody has a lisp? Thanks!

Posted

Post the code that you have written; I'm sure someone will help you with it.

 

Never mind... I see someone did it for you in a different forum.

Posted

Quicker version:

 

(defun c:ins (/ bNme i ss ent)

 (setq bNme "test" ) ;; << Block Name

 (and (setq i -1 ss (ssget "_X" '((0 . "POINT"))))
      (while (setq ent (ssname ss (setq i (1+ i))))
        (entmake (list (cons 0 "INSERT")
                       (cons 100 "AcDbEntity")
                       (cons 100 "AcDbBlockReference")
                       (cons 2 bNme)
                       (assoc 10 (entget ent))))))

 (princ))

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...