本帖最后由 tryhi 于 2016-6-26 22:27 编辑
绝对不要拿完全不懂当理由,你不懂也不学,帮你的话等于纵容你向别人伸手,以后你习惯了伸手,对大家都没好处,好像你刚注册不久,还有发展空间,希望自己学习- (defun c:ooo (/ allname getds i n obj ojb ss)
- (vl-load-com)(initget 2)
- (setq getds (getdist "\n输入偏移距离<可直接量取>:"))
- (while
- (setq ss(ssget ":s" '((0 . "Arc,Circle,Ellipse,*Line"))))
- (setq
- allname (try-ss2EnList ss)
- ojb (mapcar '(lambda(x)(vlax-ename->vla-object x ))allname)
- i -1
- )
- (repeat (sslength ss)
- (setq i(1+ i)
- n (vlax-ename->vla-object(ssname ss i))
- )
- (vla-Offset n getds)(vla-Offset n (- getds))
- )
- )
- )
|