This week, we complete the final step before reviewing a few things in the user interface. In addition to modeling curtain walls with randomized panel sizes and panel types, users may want to model panelized rain screen systems. Our ‘randomizer’ makes it easier to model both systems. One key difference is that the curtain wall system will have mullions but a panelized rain screen system, will not need mullions. Therefore, we will want to allow for the option to delete the mullions.
In order to delete the mullions on the curtain wall, we will create a new method that does not return anything. The parameters we need are our Document, UIDocument, and the curtain wall we are operating on. First we get all the mullions’ Ids and add this to a list. Then we iterate on each mullion. Before we can make any changes, we need to unpin the mullion and then we can simply delete it.
And those few steps allow us to delete the mullions. Next week, we’ll take a look at input validation for data entered through a WPF user interface.