'FamilyInstance' object has no attribute 'SetParameterByName'

File “>string>”,line 46, in
AttributeError: ‘FamilyInstance’ object has no attribute ‘SetParameterByName’

How can i fix it ?

That’s because the Revit API does not have such a method - it’s just the name of a Dynamo node.
This is what you’ll need:
If you look at some of the Revit-related nodes of some of the major Dynamo packages you’ll find many implementations of this method.

1 Like

Thank you so much Andreas.