Autocad .net check sub-entity visibility

Autocad .net check sub-entity visibility

hugh.powell
Explorer Explorer
365 Views
1 Reply
Message 1 of 2

Autocad .net check sub-entity visibility

hugh.powell
Explorer
Explorer

We are working on some .Net c# scripts for drawing validation & checking, some of these scripts end up intentionally selecting sub-blocks of various blocks.

 

The parent blocks contain visibility states that are use to control the visibility of these subblocks.

 

From my script is there any way I can determine if the subblocks are visible or not.

0 Likes
Accepted solutions (1)
366 Views
1 Reply
Reply (1)
Message 2 of 2

hugh.powell
Explorer
Explorer
Accepted solution

As per standard, I looked for an hour or two couldn't find anything and then figured it out shortly after asking.

 

For anyone else with this problem, for the parent block you have to check if AnonymousBlockTableRecord is not null, if its not null use it instead of the standard BlockTableRecord when looping over sub-entities, this allows you to then the check the .Visible property on the sub-entities.

0 Likes