 - (defun c:ftc ( tcont pt / n ent enttype)
- (setq pt (ssget)
- n 0
- ent (ssname pt n)
- enttype (cdr (assoc 0 (entget ent)))
- )
- (while (/= enttype "TEXT")
- (setq n (1+ n))
- (setq ent (ssname pt n)
- enttype (cdr (assoc 0 (entget ent)))
- )
- ;(princ n)
- ;(princ ent)
- ;(princ enttype)
- ;(princ "\n")
- )
- (setq tcont (cdr (assoc 1 (entget ent))))
- (command "wblock" pt (strcat "C:\Users\Onca\Desktop" tcont ".dwg")
- )
我取到了需要独立成图形文件(pt), 以及命名该文件的用的文件名就是框选内容中的问题内容(tcont),
我该怎么把这两个参数给到"wblock"就是上面代码最后一句. |