- (defun c:pp ( / *Error* peditaccept ss usercmd)
- (defun *Error* (msg)
- (if (and msg (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*QUIT*,*EXIT*,")))(princ))
- (and usercmd (setvar "CMDECHO" usercmd))
- (vla-EndUndoMark (vla-get-ActiveDocument (vlax-get-acad-object)))
- )
- (setq *DOC (vla-get-ActiveDocument (vlax-get-acad-object)))(vla-StartUndoMark *DOC)
- (setq usercmd (getvar "CMDECHO"))(setvar "CMDECHO" 0)
- (if (setq ss (ssget '((0 . "ARC,LINE,LWPOLYLINE"))))
- (progn
- (setq peditaccept (getvar 'peditaccept))
- (setvar 'peditaccept 1)
- (command "_.pedit" "_M" ss "" "_J" "" "")
- (setvar 'peditaccept peditaccept)
- )
- )
- (*error* nil)
- (princ)
- )
|