# 'FamilyInstance' object has no attribute 'SetParameterByName'

**URL:** <https://forum.dynamobim.com/t/familyinstance-object-has-no-attribute-setparameterbyname/6310>\
**Category:** Developers\
**Created:** [September 22, 2016, 6:39am UTC](https://forum.dynamobim.com/t/familyinstance-object-has-no-attribute-setparameterbyname/6310 "2016-09-22T06:39:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Memet\_Akcan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Memet\_Akcan](https://forum.dynamobim.com/u/Memet_Akcan)\
**Post date:** [September 22, 2016, 6:39am UTC](https://forum.dynamobim.com/t/familyinstance-object-has-no-attribute-setparameterbyname/6310/1 "2016-09-22T06:39:00Z")

</div>

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

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/0/0a6709cc3986bfd726c2134510f712a2148a4cdf.png)  
How can i fix it ?

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [September 22, 2016, 6:46am UTC](https://forum.dynamobim.com/t/familyinstance-object-has-no-attribute-setparameterbyname/6310/2 "2016-09-22T06:46:59Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Memet\_Akcan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Memet\_Akcan](https://forum.dynamobim.com/u/Memet_Akcan)\
**Post date:** [September 22, 2016, 7:25am UTC](https://forum.dynamobim.com/t/familyinstance-object-has-no-attribute-setparameterbyname/6310/3 "2016-09-22T07:25:56Z")

</div>

Thank you so much Andreas.
