T O P I C R E V I E W |
andrewc119 |
Posted - April 26 2005 : 08:58:46 AM Does anyone have a lisp routine that will pick everything and let you explode it from a script.
Explode Select all
Does not always work from scripts.
Thanks Andrew |
3 L A T E S T R E P L I E S (Newest First) |
n/a |
Posted - April 26 2005 : 10:42:03 AM Andrew, I am attaching some stuff I found relating to your question. I haven't tested any of them, but maybe something will help.
I'm not sure if you are trying to explode everything, or only blocks. I believe xpall.scr used with xpall.lsp will explode only blocks, but it is supposed to get nested blocks, as well.
Explodeall.scr used with explodeall.lsp I think is all you are really looking for, but I don't think it will get nested blocks. It appears an undocumented system variable (QAFLAGS) may need to be set and reset according to some of the posts I saw on another forum. I attached some of those posts for your info.
Expall.scr is an attempt to do the same thing as explodeall, but without the need for a separate LSP file. I'm not real good with scripts, so maybe Bill or Mike can look it over and modify it if they think it needs help in order to run.
Other things to look for: are all your layers on and unlocked? Are you zoomed to extents? (One of the posts I read indicated that only on-screen entities will be exploded, although that sounded surprising to me, and I haven't checked it.) If you are selecting all, it was suggested in one of the posts, that as soon as the script hits an item such as a line which cannot be exploded, it will terminate. If you are looking to explode only blocks, rather than scripting to explode all, maybe using lisp to filter for blocks only, or for blocks and mtext and dimensions, etc. may allow the script to complete without "choking" on items that can't be exploded.
None of the stuff other than Expall.scr originated with me. (I can't take credit or blame). I hope something will help.
Download Attachment: Scripts & Lisps.zip 1.55 KB
Download Attachment: Forum Posts-Explode All.zip 139.08 KB |
Miksteele |
Posted - April 26 2005 : 09:08:52 AM Should work... Maybe you could post your script? |
Admin |
Posted - April 26 2005 : 09:07:53 AM Hi Andrew,
What you are attempting to do always works for me, I would suspect that it has something to do with your drawing.
Maybe if you post a little more info, like the error you get when attempting to Explode, others might be able to help more.
Regards, Bill |
|
|