tyeelaw13
2005-10-11, 11:14 PM
Here's a lisp routine that will prompt to select a block, and then it will jump to the text command and enter the name of the block into the drawing. I've found this is very helpful when trying to set up design standard books that have the blocks but no block names.
Once you select the block, you will need to select the point where the text will begin (text not mtext fyi), and go from there! IF you get a "/" under the previous block name- you're not selecting the text placement correctly.
ENJOY
(defun c:blkname ()
(setq obj (car (entsel "\nPick Block...")))
(setq bname (cdr (assoc 2 (entget obj))))
(command "text" pause pause bname enter)
)
Once you select the block, you will need to select the point where the text will begin (text not mtext fyi), and go from there! IF you get a "/" under the previous block name- you're not selecting the text placement correctly.
ENJOY
(defun c:blkname ()
(setq obj (car (entsel "\nPick Block...")))
(setq bname (cdr (assoc 2 (entget obj))))
(command "text" pause pause bname enter)
)