'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:
http://www.revitapidocs.com/2017/956a1e23-cfe5-a60b-1ff9-0e8e33812774.htm
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.