This method no longer works. The string-ElementType.ByName gives the same result.
And, using Element.SetParameterByName to set another Material.ByName to parameter “Structural Material” I can change the material, in Revit it is reflecting the new material, but if I check in Dynamo with Element.GetMaterials I find now there are 2 materials attached to the elements changed instead of 1. So how can I do to complete replace the old one? Thanks
This is very unique, but appears to be something wrong with that particular family. When I create a new Column family from the family template, it does not recreate the issue, but even when delete and make a new extrusion in the RAC column it does the same. My guess it something embedded in the family, but nothing wrong with your graph.