MiGo Posted April 19, 2011 Share Posted April 19, 2011 I have a script and at a certain point it explodes the selected blocks. I am getting an alert dialog box asking if I want to ignore draw order for this. Does anyone know how to suppress this box or to automatically say yes to it. The section of the script is as follows" (setq whilewait 0) (while (= whilewait 0) (setq ss (ssget "x" '((0 . "AEC*")))) (if (/= ss nil) (progn (setvar "qaflags" 1) (command "._explode" ss "") (setvar "qaflags" qa) ) (setq whilewait 1) ) ) I am simply removing all AEC type block objects from the drawing. I did not get this box when using AutoCAD 2008 and now with 2010 it shows up. Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted April 19, 2011 Share Posted April 19, 2011 You might try setting the system variable EXPERT to 5. Unfortunately, many newer alerts like this do not honor EXPERT, so that is just a best guess.... Quote Link to comment Share on other sites More sharing options...
MiGo Posted April 19, 2011 Author Share Posted April 19, 2011 Yea I tried that one based on another thread and it was a no go. Quote Link to comment Share on other sites More sharing options...
MiGo Posted April 19, 2011 Author Share Posted April 19, 2011 I think I have fixed the issue. A system variable called draworderctl. Default setting is 3. I change to 1 before the explode command and back to 3 afterwords. Controls draw order and how it functions during changing of obects during certain commands such as explode... new code section is as follows: (setq whilewait 0) (while (= whilewait 0) (setq ss (ssget "x" '((0 . "AEC*")))) (if (/= ss nil) (progn (setvar "qaflags" 1) (setvar "draworderctl" 1) (command "._explode" ss "") (setvar "draworderctl" 3) (setvar "qaflags" qa) ) (setq whilewait 1) ) ) I ran my script on the same file a few times and the box did not come up after adding. Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 19, 2011 Share Posted April 19, 2011 (setq ss (ssget "x" '((0 . "AEC*")))That just makes me cringe. Quote Link to comment Share on other sites More sharing options...
tzframpton Posted April 19, 2011 Share Posted April 19, 2011 Why? (if you don't mind me asking ) Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 19, 2011 Share Posted April 19, 2011 Exploding Aecc* objects means they are no longer dynamic. I have slapped a many hands because people exploded a profile/cross section/etc. because "it's just easier to edit it that way". Quote Link to comment Share on other sites More sharing options...
tzframpton Posted April 19, 2011 Share Posted April 19, 2011 ah, now I see. And.... 100% agree. (I didn't realize what the code was telling me) Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 19, 2011 Share Posted April 19, 2011 ah, now I see. And.... 100% agree. (I didn't realize what the code was telling me) I actually threatened to take explode away from everyone in the office. I was pissed that day; someone had opened a survey to query some trees (point with style) and they decided to explode them and now some of the damn trees can't be added to a table for credits/debits, won't display correctly, etc. Quote Link to comment Share on other sites More sharing options...
tzframpton Posted April 19, 2011 Share Posted April 19, 2011 I actually threatened to take explode away from everyone in the office. Even though this is as nerdy as a threat can get, this made me SERIOUSLY laugh out loud. hahaha.... good stuff right there. Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 19, 2011 Share Posted April 19, 2011 Even though this is as nerdy as a threat can get, this made me SERIOUSLY laugh out loud. hahaha.... good stuff right there. Takes one to know one. :wink: Quote Link to comment Share on other sites More sharing options...
tzframpton Posted April 19, 2011 Share Posted April 19, 2011 Derr!! 4,200+ posts on this board proves my nerdiness. Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 19, 2011 Share Posted April 19, 2011 Derr!! 4,200+ posts on this board proves my nerdiness. And this discussion concretes it for both of us. Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted April 19, 2011 Share Posted April 19, 2011 Exploding Aecc* objects means they are no longer dynamic. I have slapped a many hands because people exploded a profile/cross section/etc. because "it's just easier to edit it that way". It's possible this is for working on a copy of the original, when you need a stripped down drawing... (client, partner requirements...?) Quote Link to comment Share on other sites More sharing options...
MiGo Posted April 19, 2011 Author Share Posted April 19, 2011 The only reason I do that is we have a client that runs like AutoCAD 2000 and they want 100% of their drawings in MODEL SPACE ONLY!!! So because AutoCAD's ExportLayout doesn't work right and crashes a ton I made a script that does it and I have to explode the AEC objects as part of their requirements. Quote Link to comment Share on other sites More sharing options...
tzframpton Posted April 19, 2011 Share Posted April 19, 2011 Have you tried CHSPACE? Quote Link to comment Share on other sites More sharing options...
MiGo Posted April 19, 2011 Author Share Posted April 19, 2011 Ohhh how I wish it was that easy. Our building plans, equipment plans...etc are for the entire facility and each drawing needs to have the layout sheet to the viewing scale in model space. So all the references need to be bound exploded and trimmed to the viewport limits then I process the AEC objects, convert that viewport to a block and chspace. I repeat for each viewport in the drawing then take the layout tab contents and throw it into model. Quote Link to comment Share on other sites More sharing options...
tzframpton Posted April 19, 2011 Share Posted April 19, 2011 Ah, gotcha. Man.... the difficulties of clients. I feel your pain brutha. Quote Link to comment Share on other sites More sharing options...
Organic Posted April 20, 2011 Share Posted April 20, 2011 I actually threatened to take explode away from everyone in the office. I was pissed that day; someone had opened a survey to query some trees (point with style) and they decided to explode them and now some of the damn trees can't be added to a table for credits/debits, won't display correctly, etc. I absolutely agree with you there. On a technical note, is it actually possible (using a lisp loading on startup I assume) to take away/stop/block a command (i.e. explode in this case) and not just change the alias for it? Quote Link to comment Share on other sites More sharing options...
alanjt Posted April 20, 2011 Share Posted April 20, 2011 I absolutely agree with you there. On a technical note, is it actually possible (using a lisp loading on startup I assume) to take away/stop/block a command (i.e. explode in this case) and not just change the alias for it? You can undefine the command and/or use command reactors to screw things up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.