您需要一个自定义的lisp,它的基础是移动命令和编辑块,例如
- (defun c:Mblk ()
- (setq ent (entsel))
- (setq pt1 ("\nPick pt1 "))
- (setq pt2 ("\npick pt2"))
- (command "move" ent "" pt1 pt2)
- (vlax-put-color(vlax-ename->vla-object (car ent)) 140) ; this is not quite right but gives an idea need to play more with this line
- )
|