- (defun c:chamfer1 ( / obj01 obj02 pt1 pt2 obj1 obj2)
- (vl-load-com)
- (setq obj01 (entsel "\n 1111111111111"))
- (setq pt1 (cadr obj01))
- (setq obj1 (vla-copy (vlax-ename->vla-object(car obj01 ))))
- (vlax-put-property obj1 "elevation" 0)
- (setq obj02 (entsel "\n 2222222222"))
- (setq pt2 (cadr obj02))
- (setq obj2 (vla-copy (vlax-ename->vla-object(car obj02 ))))
- (vlax-put-property obj2 "elevation" 0)
- (command "._chamfer" pt1 pt2 )
- (princ)
- )
|