用Vlisp试一试:- (if (setq ssa (ssget ))
- (if (setq pt0 (getpoint "\n基准点:"))
- (progn
- (setq ssaobj (vla-get-ActiveSelectionSet (vla-get-ActiveDocument (vlax-get-acad-object))))
- (setq p0 (vlax-3d-point pt0))
- (setq p1 (vlax-3d-point (mapcar '+ pt0 '(10 0 0))))
- (setq ang (* 0.5 pi)
- (vlax-for obj ssaobj
- (vla-rotate3d obj p0 p1 ang)
- )
- )
- )
- )
|