- ;;(TT "123")
- ;;NO ERROR CHECK
- ;;要先确定有这个属性图块(vl-load-com)
- (defun TT (BLKNAME / ENT N)
- (setq N 0)
- (vlax-for ENT
- (vla-item (vla-get-blocks
- (vla-get-activedocument (vlax-get-acad-object))
- )
- BLKNAME
- )
- (if (= (vla-get-objectname ENT) "AcDbAttributeDefinition")
- (setq N (1+ N))
- )
- )
- N
- )
|