Selection set of exploded entitys?

Selection set of exploded entitys?

Anonymous
Not applicable
1,653 Views
2 Replies
Message 1 of 3

Selection set of exploded entitys?

Anonymous
Not applicable
Hello Forum,
In my dwg. With blocks with attributes, hatches, pline etc. I want to write lisp to explode some of entities change their properties like layer, color etc. and make a single block of those entities
I wrote some lines in lisp to explde these entities but I don't understand how to make selection set of those exploded entities to process further.
Can you please Help me.

Thanks in advance.
0 Likes
Accepted solutions (1)
1,654 Views
2 Replies
Replies (2)
Message 2 of 3

marko_ribar
Advisor
Advisor
Accepted solution

For exploding multiple entities through sel. set, you must temporarily set variable QAFLAGS to 1... After that you should return it back to 0 to avoid undesired behaving of CAD... To acquire entities after parent entities have been exploded (answer to your question), you can simply use (setq ss (ssget "_P")) - Previous selection set... Note that when entities are bounded to their parent (before EXPLODEing) they have different ENAMES from those after EXPLODEing - CAD automatically names newly created and appended ENAMES in database with new ENAME description - this is also for HANDLES, but with HANDLES CAD remember them throughout every session if they are saved in DWG in opposition to ENAMES that are renamed with each new opened DWG...

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 3 of 3

Anonymous
Not applicable
Thanks Marko,
After setting QAFLAGS to 1 it works as want it to work.
0 Likes