本帖最后由 yjwht 于 2025-2-21 15:54 编辑
改成这样就好了
 - (defun c:tt (/ ss)
- (setq ss (ssget '((0 . "*LINE,ARC"))))
- (command "_.PEDIT" "m" ss "" "y" "j" "0.00" ^C)
- (princ)
- )
或者这样也行
 - (defun c:tt (/ ss)
- (setq ss (ssget '((0 . "*LINE,ARC"))))
- (command "_.PEDIT" "m" ss "" "y" "j" "0.00"
- (vla-eval (vlax-get-acad-object) "Sendkeys "{ESC}""))
- (princ)
- )
|