# Set a parameter value inside a family document, for all types!

**URL:** <https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775>\
**Category:** Developers\
**Tags:** revit, python, dynamo\
**Created:** [October 3, 2018, 9:03am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775 "2018-10-03T09:03:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![julieng129](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/julieng129/32/57367_2.png) [@julieng129](https://forum.dynamobim.com/u/julieng129)\
**Post date:** [October 3, 2018, 9:03am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/1 "2018-10-03T09:03:12Z")

</div>

Hello there. I have some trouble using Python in Dynamo **in a family document**.

I am currently working on a family issue : I’m trying to build a Python script that will execute two tasks : first one is to create parameters (from a shared parameter file) in the family properties. I took care of that by using a dynamo block I found somewhere in a package - It works well. I use the “Dyn\_SharedParamTesting” package.

Second task is to set a value for a type parameter, inside of my family document. It can work using this python command:

**DocumentManager.Instance.CurrentDBDocument.FamilyManager.Set(par1,param\_value)**

with **par1** in the list **DocumentManager.Instance.CurrentDBDocument.FamilyManager.GetParameters()**  
and **param\_value** the value I want.

My very issue is there : the parameter value is only set for one type of the family (which makes completely sense). I’m also trying to change the actual type of the family within the open document in the python code. I can not find the right command to do so. My actual python code is the following :

 ![forum%20image%202](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/8/189a25d8417634ec40e4e027a74d2e106bb27318.png)

Inside the current document (which is a family), i’m trying to change the type of the family. Can you help me?

I’m also open to any idea to achieve some family parameter creation and setting…

Thank you for your time.

Julien

---

<div class="post-metadata">

**Author:** ![jwroelofs](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jwroelofs/32/55712_2.png) [@jwroelofs](https://forum.dynamobim.com/u/jwroelofs)\
**Post date:** [October 4, 2018, 6:53am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/2 "2018-10-04T06:53:19Z")

</div>

Search for set formula I hope then that you find where your looking for.

Jan-Willem

---

<div class="post-metadata">

**Author:** ![danielU3R39](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danielu3r39/32/97504_2.png) [@danielU3R39](https://forum.dynamobim.com/u/danielU3R39)\
**Post date:** [October 4, 2018, 8:15am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/3 "2018-10-04T08:15:04Z")

</div>

I suggest having a look at the Orchid Package @erfajo, as this package as lots of the functionality you are asking about.

---

<div class="post-metadata">

**Author:** ![julieng129](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/julieng129/32/57367_2.png) [@julieng129](https://forum.dynamobim.com/u/julieng129)\
**Post date:** [October 4, 2018, 2:32pm UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/4 "2018-10-04T14:32:00Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![ovidiu.suteu](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@ovidiu.suteu](https://forum.dynamobim.com/u/ovidiu.suteu)\
**Post date:** [February 12, 2020, 12:21pm UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/5 "2020-02-12T12:21:26Z")

</div>

Hi,  
I would like to know if Dyn\_SharedParamTesting is still available somewhere. Personnaly, I couldn’t find it. Could you please post a link? Thank you.

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [October 9, 2023, 8:25am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/6 "2023-10-09T08:25:30Z")

</div>

> [@julieng129](#):
>
> I’m also open to any idea to achieve some family parameter creation and setting…

did you find a solution to this with python? thanks

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 9, 2023, 9:32am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/7 "2023-10-09T09:32:19Z")

</div>

Closing this one out as it’s been solved and is \> 4 years old the latest response is in reply to something that should have been a new topic. Feel free to start a new topic and link back to this post @RubenVivancos.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 9, 2023, 9:32am UTC](https://forum.dynamobim.com/t/set-a-parameter-value-inside-a-family-document-for-all-types/26775/8 "2023-10-09T09:32:23Z")

</div>


