Add parameter value to stacked wall members

That’s unfortunately a Revit limitation. Once elements are combined into a stacked wall, its parameters become read-only. There’s no good solution to this, as stacked walls can only be manually broken up (although, as noted in one of your much older threads, you can copy the stacked wall’s constituent elements in place and then delete the stacked wall). Although this may solve your read-only parameter issue, maintaining the element hosts is a much more difficult problem.

As you can’t change an element’s host through the Revit API after it has been created, the process becomes a lot more complicated. Here is a rough outline of what I would attempt to do:

for each family instance in family instances:
    get host of each family instance

for each stacked wall in stacked walls:
    copy all stacked wall members
    determine if stacked wall is a host for one of the family instances
    if the stacked wall is a host: 
        create a new instance of the family using one of the stacked wall members as its host
        take all parameter values from the original family instance and set them to the new instance
        delete the original family instance
    delete the original stacked wall
1 Like