# How to Set Formula Various families at once

**URL:** <https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 26, 2022, 12:49am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945 "2022-05-26T00:49:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kitamura](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kitamura](https://forum.dynamobim.com/u/Kitamura)\
**Post date:** [May 26, 2022, 12:49am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/1 "2022-05-26T00:49:03Z")

</div>

Hi all.

I am a student who wants to learn Dynamo. And I’m learning to set up a formula

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e10b09b92467ed2c0ca1aa920442b784a3911dc4.png)

So i tried to use node, and it worked

However, there was a problem. I want to set up a lot of families at once.  
There are more than 100 things I want to do next.

So my main question is

1. How can i set Formula Various families at once

2. What is difference “Autodesk.Revit.DB.Document” and “Revit.Application.Document”

oh… I can upload only one capture…

Sorry for my poor English and “Thanks”,  
Kitamura

---

<div class="post-metadata">

**Author:** ![Kitamura](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kitamura](https://forum.dynamobim.com/u/Kitamura)\
**Post date:** [May 26, 2022, 12:53am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/2 "2022-05-26T00:53:57Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/7/97cbc88c6b441476151fd7b947c9acdf24b212af.png)  
I just use this nodes

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [May 26, 2022, 7:11am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/3 "2022-05-26T07:11:47Z")

</div>

Hi @Kitamura and welcome, check this post to help you in your task, get the families from a directory or by category, edit them or background open them, check which one works for you, set the formula then save the families:

> [@Split family types](https://forum.dynamobim.com/t/split-family-types/70547/3):
>
> Maybe something likes this? Packages used Clockwork and Orchid, it was done for only one family, for multiple families maybe a better lists structure is required.

---

<div class="post-metadata">

**Author:** ![Kitamura](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kitamura](https://forum.dynamobim.com/u/Kitamura)\
**Post date:** [May 26, 2022, 8:08am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/4 "2022-05-26T08:08:40Z")

</div>

Thank you for your help. I think I can refer to it somewhere else

But I want to set formula all Families at once, not split file…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e47ffba6716828422703272c28d9cb84526659f0.png)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 30, 2022, 12:38am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/5 "2022-05-30T00:38:29Z")

</div>

Whilst some of my nodes are old so have went into an unfound state, this is my script structure I use for batch setting of family formulae typically. Maybe it helps:

 ![Set values batch_2022-05-30_10-31-28](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fd3c34ef27371bdafe3becf48dad73d408008567.png)

---

<div class="post-metadata">

**Author:** ![Kitamura](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kitamura](https://forum.dynamobim.com/u/Kitamura)\
**Post date:** [May 30, 2022, 5:02am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/6 "2022-05-30T05:02:02Z")

</div>

Thanks for your help. Maybe I can find hint from your script

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/ad1b8c6fe5f3a15b694cfd63c29a0c0d92b18348.png)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 30, 2022, 8:11am UTC](https://forum.dynamobim.com/t/how-to-set-formula-various-families-at-once/76945/7 "2022-05-30T08:11:59Z")

</div>

Hrm yeah I’d go query erfajo over on [Orchid](https://github.com/erfajo/OrchidForDynamo/issues) as he might have changed the levels of that node since I used it. Its one of the reasons I started building my own familydoc nodes in Python, just needed consistent behaviour.
