Get all entities inside a blockreference

Get all entities inside a blockreference

哀家爆
Enthusiast Enthusiast
359 Views
1 Reply
Message 1 of 2

Get all entities inside a blockreference

哀家爆
Enthusiast
Enthusiast

Hi,

I've had some problems trying to get all entities inside a blockreference.

As the following pic, there are 4 lines and another blockreference inside a blockreference.

1.png

var entities = new List<Entity>();
var objects = new DBObjectCollection();
block.Explode(objects);

the objects returns me only 4 lines but no blockreference.

What is amazing is that when I mirror the whole blockreference and execute the code again, I can get 4 lines and a blockreference from the mirrored blockreference.

Is there sth wrong with my code, or is there a better way to get all entities inside a blockreference, or does anyone can help me dealing with this problem.

Thanks.

0 Likes
360 Views
1 Reply
Reply (1)
Message 2 of 2

hak_vz
Advisor
Advisor

@哀家爆 

Post your request to .NET forum

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes