# Is it possible to connect a Revit family to Dynamo?

**URL:** <https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990>\
**Category:** Packages\
**Created:** [January 21, 2016, 6:55am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990 "2016-01-21T06:55:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maria\_Vicidomini](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Maria\_Vicidomini](https://forum.dynamobim.com/u/Maria_Vicidomini)\
**Post date:** [January 21, 2016, 6:55am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/1 "2016-01-21T06:55:32Z")

</div>

I created a Revit family , where everything is connected to a single parameter. Can I connect the family to dynamo for change only this parameter? If this is possible, how can I do it?

Thank you

Maria

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [January 21, 2016, 8:51am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/2 "2016-01-21T08:51:39Z")

</div>

Yes.

Try the _Element.SetParameterByName_ node and other associated nodes

---

<div class="post-metadata">

**Author:** ![Adrian\_Crisan](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Adrian\_Crisan](https://forum.dynamobim.com/u/Adrian_Crisan)\
**Post date:** [January 21, 2016, 8:53am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/3 "2016-01-21T08:53:18Z")

</div>

Just use Element.GetParameterValueByName to select the parameter of the specific family, then re-feed back

 ![CLEARANCE](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/7947bd0614691c8ece3028904b8b5a1375d7b13f.jpg)the new value of parameter via Element.SetParameterByName.

---

<div class="post-metadata">

**Author:** ![Maria\_Vicidomini](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Maria\_Vicidomini](https://forum.dynamobim.com/u/Maria_Vicidomini)\
**Post date:** [January 21, 2016, 10:53am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/4 "2016-01-21T10:53:06Z")

</div>

I use Dynamo for the first time, excuse me for stupid questions:

1. is “clearance” the name of your parameter?

2. I should select elements in my metric model family?

I’m putting parameter name in code block and select my model, but it doesn’t work.

thanks to all

---

<div class="post-metadata">

**Author:** ![Organon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/organon/32/161404_2.png) [@Organon](https://forum.dynamobim.com/u/Organon)\
**Post date:** [January 21, 2016, 11:09am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/5 "2016-01-21T11:09:32Z")

</div>

Select the family in the Project environment and use the paramater name in that family.

---

<div class="post-metadata">

**Author:** ![Adrian\_Crisan](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Adrian\_Crisan](https://forum.dynamobim.com/u/Adrian_Crisan)\
**Post date:** [January 21, 2016, 2:01pm UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/6 "2016-01-21T14:01:56Z")

</div>

1. is “clearance” the name of your parameter? - the example above was a shared parameter named “CLEARANCE”. In you family you need to create/add the shared parameter.

2. second option is to create an instance type parameter in the family - see attached screen capture (the family name is CLEARANCE as well but the clearance height shared param. is the one you were asking. The other instance parameter in this example is named “W”.

---

<div class="post-metadata">

**Author:** ![Maria\_Vicidomini](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Maria\_Vicidomini](https://forum.dynamobim.com/u/Maria_Vicidomini)\
**Post date:** [January 21, 2016, 3:00pm UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/7 "2016-01-21T15:00:00Z")

</div>

Thank you. I’m trying to do it, in two ways how you has showed me, but dynamo doesn’t find my parameter. It’s an istance and if I alter it in Revit, my family change.

---

<div class="post-metadata">

**Author:** ![Adrian\_Crisan](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Adrian\_Crisan](https://forum.dynamobim.com/u/Adrian_Crisan)\
**Post date:** [January 22, 2016, 9:31am UTC](https://forum.dynamobim.com/t/is-it-possible-to-connect-a-revit-family-to-dynamo/2990/8 "2016-01-22T09:31:19Z")

</div>

1. create a generic family
2. in the floor plan, add two Reference Planes
3. add a dimension line, that connect the two reference plane  
with the center Reference Plane  
of the family itself.
4. use Equal to make sure they are symmetrical.
5. create an extrusion and snap the two sides to the Reference Planes you created.  
Lock the sides of the extrusion to the  
Reference Planes.
6. add an instance parameter - I named that “WIDTH”
7. create a dimension that connect the two Ref. Planes - label that “WIDTH”
8. load the family into a project
9. while in Dynamo script, pull down the “Family Types” menu and select the family you just loaded.
10. everything should work - “Houston, we have lift off”. ![PARAM_1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/a/afdf95cc24ca8807704828e293679682c5d52ea4.jpg)

&nbsp;

 ![PARAM_2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/5/50de1110a141c860651e7f8fec220cab464caf17.jpg) ![PARAM_3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/3/3d9d815a5f2b1cfb49e9d97d03e5fba6eabea268.jpg) ![PARAM_4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b2aefe951eb9e0186de75662ebec65533de8b127.jpg) CLEARANCE\_2 REVIT\_DYNAMO\_PARAMETER\_1
