
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have written a LISP script which, among other things, selects all objects and repeatedly bursts them until all entities are irreducible. This needs to happen in a while loop, so that after this task has been accomplished the script can move on to the next task automatically. Here is the portion of the script which wants to accomplish this:
This code runs an 'if' loop conditional on whether or not it finds an entity in the selection set "blocks" whose 0 attribute = INSERT, which as far as I can find seems to be the only way to determine whether or not an entity is a block. The issue I am running into is that in some drawings the 'if' loop seems still somehow to identify entities in the selection set as having a 0 attribute = INSERT, even though ALL of the blocks have already been burst. This interrupts the script since as soon as it tries to run the C:Burst command on the selection set with no blocks in it, the user is prompted to select burstable objects, of which there are none.
Is there some other more fool proof way to identify entities in a selection set as blocks? This error is telling me that an entity can have a 0 attribute = INSERT even if the entity is in fact not a block, or at any rate not burstable.
Thanks in advance!
Solved! Go to Solution.