Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have a Little Problem with the following code:
(defun c:<WipeoutNeu (/ *error* lay cmd ent) (defun *error* (errmsg) (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break")) (princ (strcat "\nError: " errmsg))) (setvar 'CLAYER lay) (setvar 'CMDECHO cmd) (command-s "_.undo" "_end") (command-s "_.u") (princ "\nAlles rückgängig gemacht! ") (princ)) (command "_.undo" "_begin") (setq lay (getvar 'CLAYER) cmd (getvar 'CMDECHO)) (setvar 'CMDECHO 0) (command "_.-LAYER" "_m" "-I-Wipeout" "_co" "255" "-I-Wipeout" "") (if (setq ent (car (entsel "\nGeschlossene Polylinie wählen oder <Neue zeichnen>: "))) (progn (command "_.wipeout" "_p" ent "_y") (princ "\nWipeout erstellt! ")) (progn (command "_pline" (while (> (getvar "cmdactive") 0) (command pause))) (command "_.wipeout" "_p" "_last" "_y") (princ "\nWipeout erstellt! "))) (command "_.undo" "_end") (setvar 'CLAYER lay) (setvar 'CMDECHO cmd) (prin1) ) ; end of defun
If you select a unclosed polyline (I know you should select a closed one 😉 ), then the Routine Ends normally with the princ "Wipeout erstellt!".
How can i fix this?
Regards
Solved! Go to Solution.