# Create Type Parameters in Dynamo

**URL:** <https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200>\
**Category:** Packages\
**Created:** [February 17, 2016, 9:05am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200 "2016-02-17T09:05:21Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliveira](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/oliveira/32/5643_2.png) [@Oliveira](https://forum.dynamobim.com/u/Oliveira)\
**Post date:** [February 17, 2016, 9:05am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/1 "2016-02-17T09:05:21Z")

</div>

Hi everyone,

I have searched for this topic and a did not find any practical response to this question. So to the dynamo experts, there is any way to create type parameters in dynamo to be editable in Revit? If yes, how?

&nbsp;

Best regards

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [February 17, 2016, 9:39pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/2 "2016-02-17T21:39:08Z")

</div>

Hello,

Check out the “ElementType.Duplicate” node from Clockwork. Once you generate the new types, you can set their specific type parameters with the “Element.SetParameterByName” node.

 ![2016-02-18_11-08-58](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/3/325a2556e1c30ea2052c59cd4eb1d0b107043d8b.png)

---

<div class="post-metadata">

**Author:** ![Oliveira](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/oliveira/32/5643_2.png) [@Oliveira](https://forum.dynamobim.com/u/Oliveira)\
**Post date:** [February 18, 2016, 4:12am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/3 "2016-02-18T04:12:03Z")

</div>

Hi Dimitar, thanks for the reply. It’s not quite that what I want to do. That node creates new family types… I already have the family types that I want in Revit. My goal now is to create for each family type new **type parameters** (not project parameters) that doesn’t exist.

---

<div class="post-metadata">

**Author:** ![Alisder\_Brown](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alisder_brown/32/14995_2.png) [@Alisder\_Brown](https://forum.dynamobim.com/u/Alisder_Brown)\
**Post date:** [February 18, 2016, 4:37am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/4 "2016-02-18T04:37:49Z")

</div>

Oliveira

Have a look at this recent thread: [http://dynamobim.org/forums/topic/add-parameters-to-family-instance/](http://dynamobim.org/forums/topic/add-parameters-to-family-instance/)

Hopefully it does what you are looking for. You will need to be inside the Family Editor to do this, not sure if there is a way to add Type parameters that are not project/shared from the Project environment.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [February 18, 2016, 5:35am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/5 "2016-02-18T05:35:52Z")

</div>

Sorry, I misunderstood your question. As long as you’re already inside the family document, you could try the following quick example:

 ![2016-02-18_18-51-33](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b6a4f49388435490f0ef5ee54ab4a1b2d66b85e3.png)

If you’re trying to do this from a project file, continue searching the forum (the solution is there already) or ask on StackOverflow 😉

---

<div class="post-metadata">

**Author:** ![Oliveira](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/oliveira/32/5643_2.png) [@Oliveira](https://forum.dynamobim.com/u/Oliveira)\
**Post date:** [February 18, 2016, 10:51am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/6 "2016-02-18T10:51:07Z")

</div>

Dimitar, I did what you posted but probably I did some dummy mistake. I’m new at this…

I have a family document open in Revit.

 ![dynamo_issue](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b95cec2ef51952f8c25eb75e005365b7f1314474.png)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [February 18, 2016, 9:28pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/7 "2016-02-18T21:28:49Z")

</div>

Looks like you opened the family file after launching Dynamo in a project file.

---

<div class="post-metadata">

**Author:** ![Alisder\_Brown](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alisder_brown/32/14995_2.png) [@Alisder\_Brown](https://forum.dynamobim.com/u/Alisder_Brown)\
**Post date:** [February 19, 2016, 4:54am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/8 "2016-02-19T04:54:24Z")

</div>

Dimitar

Thanks for this 🙂 Works perfectly!

Quick question, is it possible to feed in a list of parameter names to this node to create multiple parameters at once. Also to specify the Group and type of each parameter being fed in?

Ive used the definition from the post i posted about int his thread to add in shared parameters etc, but im not sure if similar code can be used inside the Family editor?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Bo\_Steadman](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@Bo\_Steadman](https://forum.dynamobim.com/u/Bo_Steadman)\
**Post date:** [February 19, 2016, 2:10pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/9 "2016-02-19T14:10:00Z")

</div>

Hey Dimitar, per your request, I’ve created a post on Stack Overflow to tackle editing a Family Document within a Project Document. See this link: [http://stackoverflow.com/questions/35513566/revit-api-dynamo-creating-a-family-parameter-from-project-document](http://stackoverflow.com/questions/35513566/revit-api-dynamo-creating-a-family-parameter-from-project-document)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [February 21, 2016, 2:12am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/10 "2016-02-21T02:12:20Z")

</div>

Alisder,

It’s possible but both I and others have already shown that many times in the forum. You could either search in the forum or check the great python examples inside node from Clockwork or Archi-lab. I always try to keep the code that I post to a minimum - this site makes any code sniplets unusable and the only other alternative, images, is hard to replicate.

On your second question, Konrad’s node uses the shared parameter file to get the internal definitions for the parameter group and type. That might be hard to do for family parameters because you’ll need a shared parameters file that has every possible group and type. What you could do is check out his nice drop-down nodes for the correct parameter group and type names and convert the string to the corresponding internal element like so:

 ![Revit_2016-02-21_15-22-46](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/7747cc6043533821cb98dc3c0d57ef16ec278773.png)

---

<div class="post-metadata">

**Author:** ![Tom\_Kunsman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_kunsman/32/133796_2.png) [@Tom\_Kunsman](https://forum.dynamobim.com/u/Tom_Kunsman)\
**Post date:** [March 13, 2016, 4:08pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/11 "2016-03-13T16:08:38Z")

</div>

I am trying to replicate this, and saw the post from the Stackoverflow but the Python gives me an error. Suggestions? Thank you.

 ![error](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/5/5c062060e704aee93d89b3787fad0c8d6bd959b0.jpg)

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [July 12, 2016, 12:23pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/12 "2016-07-12T12:23:30Z")

</div>

@Dimitar_Venkov,  
Hi,  
Am also trying for multiple parameters at once and according your advice i searched a lot in forums as well python nodes for writing new parameters to family/s but maximum deals with the existing parameters and their values to write to the project doc or to the shared parameter file. Your quick python for adding only one parameter to a family is great, i loved it…but please give me a link for multiples to family/s as am unable to find out such. Also, if you develop code snipplets for new multiples that is big enough to post on dynamo forum, could you please email to [vabuk2013@gmal.com](mailto:vabuk2013@gmal.com) or upload in txt format to a box site for everyone s use ?

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [July 13, 2016, 9:37am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/13 "2016-07-13T09:37:36Z")

</div>

@Dimitar_Venkov  
Again Hi Dimitar,  
Is it possible to incorporate Loop While or For Loop method in your quick python example for the single parameter to turn it into a node for multiple parameters so that it will write a list of parameters until the loop is finished?  
Am very poor in coding…so please somehow make it possible for multiples.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [July 13, 2016, 10:25am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/14 "2016-07-13T10:25:26Z")

</div>

Hi,

Whenever you want to reply to someone only name is not enough. You need to type “@” sign in front.  
For example: @Dimitar_Venkov

---

<div class="post-metadata">

**Author:** ![Geom\_On\_Axis](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Geom\_On\_Axis](https://forum.dynamobim.com/u/Geom_On_Axis)\
**Post date:** [July 19, 2016, 6:48am UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/15 "2016-07-19T06:48:14Z")

</div>

Hi,  
Thanks…i forgot to add.

---

<div class="post-metadata">

**Author:** ![hillversum](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@hillversum](https://forum.dynamobim.com/u/hillversum)\
**Post date:** [September 22, 2016, 12:39pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/16 "2016-09-22T12:39:22Z")

</div>

@Dimitar_Venkov

Hello Dimitar,

I red your post:Revit API & Dynamo, Creating a Family Parameter from Project Document in this theme, and I followed this code, and it works, thanks! But I have a lot of model in place familes, and I’d like to add new type parameter to them, and this code don’t able to add since this family is in-placed and is not supported for editing. Could you tell me how sholud I amend the python code to can add param to the model in place family?  
I got this warning:  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/d/dccb056f20842ef9964d0a9cf038cca959ca686a.jpg)

thanks. Tom

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [September 22, 2016, 12:41pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/17 "2016-09-22T12:41:51Z")

</div>

Hi @hillversum,

I just saw your email. Sorry to be the bearer of bad news, but last time I checked, in-place families are not exposed through the api and can only be changed through the Revit UI.

---

<div class="post-metadata">

**Author:** ![hillversum](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@hillversum](https://forum.dynamobim.com/u/hillversum)\
**Post date:** [September 22, 2016, 1:04pm UTC](https://forum.dynamobim.com/t/create-type-parameters-in-dynamo/3200/18 "2016-09-22T13:04:56Z")

</div>

Hello,

thanks for reply! It would have been very usefull. 🙂
