I’m just learning Dynamo and the first practical script I want to create is something that can rename and sort elements(doors, windows, walls etc) by type name.
Background: We almost always name our types by size and assign letters to types with equal size, so two 1000mm doors in a project would be D10a and D10b. During a project, as more and more disciplines add their requirements on different elements these types tend to get scrambled, a lot.
The way I want to solve this is exporting a bunch of parameters to Excel, sort them, import back to Revit and overwrite existing parameters. I’ve created two scripts for this, only trouble is, when I run the import script I get the following error: “Warning: Element.SetParameterByName operation failed.
The parameter is read-only.”. I’ve narrowed this down to the Type Name parameter. So, basically, how do I write text to that parameter?