home *** CD-ROM | disk | FTP | other *** search
- ;Add block name by picking block
- ;
- ; ********Patrick J. McKee, author********
- ; ****Copyright 1992, Power Key tm****
- ;
- ;
- (defun C:bn()
- (setq pt(cadr(entsel"\nSelect Block:")))
- (setq e1(ssget pt))
- (setq e2 (entget (ssname e1 0)))
- (setq blname (cdr(assoc 2 e2)))
- (setq pt1 (getpoint"\nSelect point for block title:"))
- (command "text" "c" pt1 "" blname))