I am trying to determine the phases for a mass surface type (glazing in this instance). I am using to “Element.GetParameterValueByName” to find the “Phase Created” & “Phase Demolished” parameters for each “Mass Glazing” surface. If the elements are not to be demolished at any point (i.e. they form part of the proposed building) then the “Phase Demolished” parameter value will be “None” or null.
In my particular example, if the 1st element has “None” for it’s “Phase Demolished” parameter then I cannot retrieve any phase parameters for the rest of the list. However, if the 1st element does have a parameter value for “Phase Demolished” then the entire list of phase name populates, despite some of the other parameters containing the “None” value. To summarise, if the 1st value in the list is “None”, the entire output fails but if the value is anything else, the entire output works.