- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to edit a line of code I got from this post by Mike O'Flaherty to create a macro for WBlock.
I would like it to prompt for user input on the insertion point for the new dwg and after that select all visible objects and close without saving or after restoring the deleted objects by the wblock command.
But for some reason the macro stops right after writing the new block dwg file.
What might be wrong in this code?
^C^Cqsave;qsave;(setq or_tm (getvar"tilemode"))(princ);(setvar"tilemode" 1)(princ);(command".ucs" "W" "zoom" "e")(princ);(command "wblock" (strcat(getvar"dwgprefix")(getvar"dwgname")) "Y" "" "non" pause "all" "" "")(princ);;(command"oops");(command"zoom" "E");(command"delay" 1000);(setvar"tilemode"or_tm)(princ);(command "close" "yes")
Thank you for your help.
J
Manchester, UK
Solved! Go to Solution.