 - (defun c:tt ( / n wid ht ss e )
- (setq n -1)
- (if (and
- (setq wid (getreal "\n输入窗宽度:")
- ht (getreal "\n输入窗高度:")
- )
- (setq ss (ssget '((0 . "tch_opening"))))
- )
- (progn
- (repeat (sslength ss)
- (setq e (vlax-ename->vla-object (ssname ss (setq n (1+ n)))))
- (vlax-put-property e 'width wid)
- (vlax-put-property e 'height ht)
- )
- )
- ) ;if
- )
试一下这个,其实意义不啊,天正自带的门窗整理已经足够好用了 |