Message 1 of 2
Walltype delete Layers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created a new wall type(first position - core and other layers are finish1, total count layers 7.
Why I can't delete all this layers?
I can delete only two the layers, but third time make it error and shot down without some error message.
Also if I debug code it freeze it and also Revit.
this is code
using (Transaction trans = new Transaction(_doc, "delete Layer"))
{
trans.Start();
structura.DeleteLayer(1);
structura.DeleteLayer(1);
structura.DeleteLayer(1);
structura.DeleteLayer(1);
newWall.SetCompoundStructure(structura);
trans.Commit();
}