I have a dynamic block with visibility states.
When I use the method BlockReference.Explode(entities) I get in 'entities' all entities including all those who are part of the visibility states not selected. But I want only the entities in the selected visibility state.
What surprises me more, is that entities from other states of visibility, although they were added to the current space, do not appear.
How to retrieve only entities associated with the selected visibility state?
Or how can I identify entities that are not part of the state of visibility?
var entities = new DBObjectCollection();
selectedBr.UpgradeOpen();
selectedBr.Explode(entities);
foreach (Entity entity in entities)
{
currentSpace.AppendEntity(entity);
tr.AddNewlyCreatedDBObject(entity, true);
}
selectedBr.Erase();
Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr