- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I use this very handy LISP routine: IBP
(defun c:ibp(/ nb sp s i sn pc lpc x)
(setq nb (getstring "\nEnter Block name: "))
(if (tblsearch "block" nb)
(progn
(setq sp (entget (car (entsel "\nSelect Base Point: ")))
s (ssget "a" (list '(0 . "point") (assoc 8 sp)))
)
(repeat (setq i (sslength s))
(setq sn (entget (ssname s (setq i (1- i))))
pc (cdr (assoc 10 sn))
lpc (cons pc lpc)
)
)
(foreach x lpc
(entmake (list '(0 . "insert")
(cons 2 nb)
(cons 10 x)
)
)
)
)
(princ "¡¡¡Block Name does Not Exist...!!! ")
)
(princ)
)
Lisp routine places blocks at points per layer:
- specify the block name.
-click on the wanted point.
The block is placed at every point per layer.
It is not ideal that attributes are polished away.
I'm looking for an even better LISP routine that can place blocks on a measured point.
See the autocad files in the attachment:
-GPS measurement file;
- As built drawing-end result;
It would be nice if the measurement file could be used as xref.
So first xref and then run the new command.
I hope I have worded it clearly
Solved! Go to Solution.