Message 1 of 4
overwrite Shared Parameter of a Nested Family
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to overwrite in a project a Shared Parameter that is binded to a nested (shared) family.
I'm able to select the nested family in the Revit project, get the value of the Shared Parameter, but I cannot overwrite that parameter in the project.
Shared Parameter is a String StorageType.
I select all families using a filtered elem. collector
NESTED_FAMILIES = FilteredElementCollector(doc).... etc
then, when I try to write that parameter:
t1 = Transaction(doc, 'Set New Values')
t1.Start()
WRITE_TEST = [i.get_Parameter(Guid(MY_SHARED_PARAMETER)).Set('TEST') for i in NESTED_FAMILIES]
doc.Regenerate()
t1.Commit()
I get:
Exception: The parameter is read-only
Thanks for your help.