How to find a block command

How to find a block command

mttlp
Contributor Contributor
2,583 Views
10 Replies
Message 1 of 11

How to find a block command

mttlp
Contributor
Contributor

How to find the exploded blocks

0 Likes
2,584 Views
10 Replies
Replies (10)
Message 2 of 11

Vinayv4v
Advisor
Advisor

Hello,

 

Command BE will give you the details of the Blocks which are currently present in the drawing. 

Then you could select 1 block which you need > right click > select similar

So all the similar blocks would be selected.

Highlighting the selection you can check which similar blocks have been exploded which has not been included in the selection.

 

Or please post your drawing and your requirements.

Cheers,

Vinay Vijayakumaran

Message 3 of 11

imadHabash
Mentor
Mentor

Hi, 

 

>> How to find the exploded blocks <<

exploded blocks will convert to normal CAD elements that can not be recognize from autocad as a one unit block. so the answer for your need is there is no direct way to find exploded blocks . 

 

Regards,

 

Imad Habash

EESignature

Message 4 of 11

mttlp
Contributor
Contributor

thank you
What can I do to find blocks exploded with AutoLisp

0 Likes
Message 5 of 11

chriscowgill7373
Advisor
Advisor

even with autolisp there is no way to do what you want.  after the block is exploded all that is lefft are Autocad entities, the software has no recelection that those entities were ever part of a block.  Now you could possibly do soething with lisp and ldata or xdata and add someting to all the subentities of a block so tht later on when it is expoded you could use a lisp to determine what it was. but if you are working with native built blocks or exsting, or something from someone else, it wouldnt do you any good.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 6 of 11

mttlp
Contributor
Contributor

thank you

0 Likes
Message 7 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> What can I do to find blocks exploded with AutoLisp

As long as the block definition is stored in the drawing you can now scan through the complete modelspace and paperspace entities to find geometry objects that are exactly equal as the ones in the block definition. But that's a huge effort (just guess about dynamic blocks with parameters and visibility states).

 

As already presented in this thread ... when a block-insertion was exploded these new entities do not know that they were part of a block-insertion. Only command _UNDO get this destructive command back.

 

If you want to write an application which does the exploding of blocks and store on that new objects the source block-definition, then ok, that can be done.

But if objects are exploded and you only have lines and arcs it's close to impossible to know which block-insertion they belonged to.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 8 of 11

mttlp
Contributor
Contributor

thank you

0 Likes
Message 9 of 11

mttlp
Contributor
Contributor

I want to find the same shapes in my drawing

0 Likes
Message 10 of 11

chriscowgill7373
Advisor
Advisor

@Vinayv4v's suggestion about using select similar will get you as close as possible without writing some complex program.  I did a brief search online, and I'm not seeing anything like this that even exists out there.  I believe that it would be overly complicated to write something.  You could use the select similar to find lines, that are similar, but it doesnt pay attention to length or anything else.  I pretty much think you are out of luck, unless another user that already has something similar to what you are asking in their lisp library.  To write something new that would be able to do this, I'm guessing it would take several hours of coding.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 11 of 11

BeKirra
Advisor
Advisor

@mttlp wrote:

I want to find the same shapes in my drawing


As others have said, there is not much you can do. And AutoLISP is not always a magic wand. Smiley Happy

 

It most likely the drawing has been purged or just this block has been deleted from the drawing for some reasons, if you don't find it by following Vinay's comment.

There are two things you may want to try:

1) find the drawing backup file with ".bak" extension in the same folder. Then change it to ".dwg".

    Now you may be able to find the block, but may be not.

2) Simply to block the "exploded block" and give it a name in your way.

 

HTH

Please mark "Accept as Solution" and "Like" if my reply resolves the issue and it will help when others need helps.
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
0 Likes