How to with Block list.

Steven D. Papke

Usenet Archive
Joined
Jul 18, 2003
Messages
8
Reaction score
0
If I wanted to make an instance of an existing block in the drawing say, door to door_01, how does one go about accessing this information? Or moverover, how does one concatenate the _01 on the end of an existing name in the file?
 
This is where I am going with this.

(prompt "\nSelect source block: ") ; Select Source Block (setq bkpic (entsel)) (setq bkpicmod (car bkpic)) (setq bknam (cdr (assoc 2 (entget bkpicmod)))) ; Find out blockname (setq bknamins bknam) (setq bknamins (entmod bknam "_01"))

I want to make a copy of the existing block and rename it to include _01 prior to the extension.
Any insight?
 
sorry, i meant
(setq entlist (entget bkpicmod))
(entmod (subst (cons 2 (strcat bknam "_01")))(assoc 2 entlist) entlist))
 

Latest threads

Back
Top