本帖最后由 yshf 于 2013-4-9 22:58 编辑
也可以如下:
- (defun c:ccc()
- (setq a (getreal "\n请输入文字高度:"))
- (if (setq aa (ssget '((0 . "INSERT") (66 . 1))))
- (vlax-for obj (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object)))
- (mapcar '(lambda(x) (vla-put-Height x a) (vla-update x))
- (vlax-invoke obj "GetAttributes")
- )
- )
- )
- (princ)
- )
|