# Get-Family Type Parameter to Set-Shared Parameter

**URL:** <https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [August 26, 2025, 8:57pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106 "2025-08-26T20:57:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [August 26, 2025, 8:57pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/1 "2025-08-26T20:57:16Z")

</div>

Hello all.

I was wondering if Dynamo can get a electrical family type parameter (Number of Poles) and set this value to shared instance parameter that is present in the project schedule.

I do have access to the shared parameter file.

I get an error: Element.setparamterbyname operation failed. No parameter found by that name.

 ![parameters](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf131df86efae842ef47dbc548acf94f42abf6b8.png)

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [August 27, 2025, 2:19am UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/2 "2025-08-27T02:19:42Z")

</div>

Hi John, welcome 👋  
What you are attempting is to update a parameter in the Same Element type and, as the warning indicated, the type will not have that parameter if it is an instance parameter.  
Get the instances from the type once you have eliminated duplicates

Note that ‘Number of Poles’ is a built in parameter which is associated with an `ElectricalSystem` Class, however it can appear as a family parameter

Edit: Please note this is an indicative graph only - it will wipe all instance comments

 ![electrical_params](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2caee538849e6ad3e9781618cc90c0704fd820be.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d9434ec3eb2850e8e1be50873e0588804ebfe52f.png)

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [August 30, 2025, 4:45pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/3 "2025-08-30T16:45:18Z")

</div>

Mike you are a life saver lol. That worked!

Now I am running into another issue.

I would like to extract a Circuit Number (7) under electrical loads and set that value to a specified shared text parameter.

I am getting some errors.

Your help would be greatly appreciated.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2c7388fb8133db02ecbe4facc70d56edfecedbde.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c5caccdd0650aa9a6a10e7abb53f6882fa0fab38.png)

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [August 31, 2025, 11:38pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/4 "2025-08-31T23:38:09Z")

</div>

It’s a bit hard without knowing what the errors are or what the inputs beforehand are - pin the outputs of the _List.UniqueItems_ node and outline what are the reported errors

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 2, 2025, 1:52pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/5 "2025-09-02T13:52:07Z")

</div>

> [@Mike.Buttery](#):
>
> Please see below. My goal is to extract anything that is an instance. Hope this helps.
> 
> ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90e6fd68bd16ab6da442322682e2b62bb6237821.png)

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

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 2, 2025, 2:44pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/6 "2025-09-02T14:44:28Z")

</div>

There are a few things going on here.

As you can see from your list of null `ElementTypes`, circuits don’t have a type. You’re essentially running into the same issue you had above either way: the Circuit Number parameter is an instance parameter so you need to retrieve it from the circuit _instance_.

There’s also some confusion around which element you want to be modifying. You’re selecting the Electrical Circuit elements in the Dynamo screenshot but showing the Electrical Equipment in the Revit screenshot. If you’re wanting to modify the panel (Electrical Equipment) then you need to work with those elements - pull the Circuit Number from the instance and then write directly back to the panel. The `FamilyInstance.ByFamilyType` node is attempting to create a new family instance (this is not what you want). You can just reuse the list of elements you’re pulling the initial value from.

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 2, 2025, 7:06pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/7 "2025-09-02T19:06:45Z")

</div>

Never mind, I got it to work using your suggestion, Nick. Thank you all for your help.

Greatly appreciated.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/317d16573ab211ab3d5853c39202dd72aab6484f.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 2, 2025, 7:30pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/8 "2025-09-02T19:30:55Z")

</div>

It sounded like you just wanted to copy one parameter value to another, within the same element. `FamilyInstance.ByFamilyType` and `List.UniqueItems` are both likely unnecessary. All they’re doing is reordering and grouping your original list of elements, which isn’t necessary since you’re dealing with instances. You should be able to get rid of this whole section:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c71fcb7c86aafa895e6aa64eb091e5c46f3572c9.png)

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 2, 2025, 9:23pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/9 "2025-09-02T21:23:39Z")

</div>

You are correct Nick.

I took out the 3 commands and it works much faster now.

Thanks for your help.

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

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 2, 2025, 10:30pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/10 "2025-09-02T22:30:08Z")

</div>

A caveat to removing the 3 commands is that it will NOT work for getting Family parameters for some reason. The script runs with no errors but nothing is filled out afterwards. I reverted to the below script as Mike suggested for Family parameters. Can someone please explain why this happens.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09b104285bec51a42ac4071d85ad36b2321d091e.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 3, 2025, 3:58pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/11 "2025-09-03T15:58:59Z")

</div>

It’s the same issue you’ve had every time now. Getting more familiar with Revit’s native structure (particularly with Families, Types, and Instances) and how Dynamo mirror’s that is going to make this much easier.

Parameters for loadable families are either associated with the `FamilyType` (Type parameters) or the `FamilyInstance` (Instance parameters). You need to work with the correct object depending on the parameter you want. “Circuit Number” is an Instance parameter so you work with the `FamilyInstance`. “Number of Poles” is a Type parameter so you have to get the `FamilyType` from the instance before accessing the parameter.

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 4, 2025, 10:41pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/12 "2025-09-04T22:41:52Z")

</div>

Thank you Nick. That makes sense.

I am now running into another issue. I am trying to only GET families if they have the word PANEL in the name of the family and then SET a parameter value to only these elements.

Thanks for your help.

 ![SET FAMILY TYPES](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c79b7bdc281e89b524c56060095d241ee232c2b7.png)

Error is shown below

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

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [September 4, 2025, 11:45pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/13 "2025-09-04T23:45:46Z")

</div>

You are feeding the _All Elements of Family Type_ node strings, you need to plug the instances into the filter using the Family Name, then get the types and finally reduce with a _List.GroupByKey_ node

 ![filter_by_family](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4fff064b784df18347682b9824cd22f75120ef42.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 5, 2025, 1:31pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/14 "2025-09-05T13:31:43Z")

</div>

I’ll also say your use of `All Elements of Family Type` (like your previous use of `FamilyInstance.ByFamilyType`) seems misunderstood and unnecessary. You already have all the instances from `All Elements of Category`. After filtering or getting the Type/Family, you don’t need to then get all instances again, which is actually getting all instances _per_ input - meaning you’re creating tons of redundancy most likely. All you have to do is revert back to the original list of instances. In Mike’s example, he filters the original list of instances because he needs the element (not the string) but also because the instance is the base object he’s dealing with. From the instance, he can get the type directly, without creating duplicates or changing the list structure.

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 9, 2025, 7:46pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/15 "2025-09-09T19:46:03Z")

</div>

Thanks for the info Nick.

Any thoughts on how to combine two parameters into one shared project parameter. If there is no value present, then the value should be blank. I am getting a weird output.

 ![combine](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/4/94e932011d977c81776fb6c41c332f5d4aa144a0.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [September 9, 2025, 8:18pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/16 "2025-09-09T20:18:19Z")

</div>

You’re not getting a weird output. You got what you ‘asked’ for.

`blank` + `-` + `blank` = `-`

The `-` isn’t gonna disappear when you join two _empty_ `Strings` (`blanks`)

You can replace / remove the single `-` (after). There are multiple ways to do that.

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 9, 2025, 9:23pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/17 "2025-09-09T21:23:38Z")

</div>

But all the output values are set to X01 2834092

I want the output to be the same value as the String.Join value.

It’s not pushing anything to the HAS\_Circuit parameter.

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [September 9, 2025, 9:31pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/18 "2025-09-09T21:31:02Z")

</div>

Ah, i see. I guess / think you need to fix your `Levels` or `Flatten` your List.

And…

> [@jdeleon](#):
>
> X01 2834092

… are not the output values, that are the `Elements`. In this case it looks like a `Family Type`. @Nick_Boyts already touched that part.

**PS**

I highly recommend you to read the Dynamo Primer.

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 23, 2025, 2:14pm UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/19 "2025-09-23T14:14:06Z")

</div>

After I flattened it by 1 it worked. Thanks

---

<div class="post-metadata">

**Author:** ![jdeleon](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jdeleon](https://forum.dynamobim.com/u/jdeleon)\
**Post date:** [September 24, 2025, 2:51am UTC](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106/20 "2025-09-24T02:51:04Z")

</div>

I have another issue. I am trying to find the LEVEL the family resides on. The level has a very long name so I want to shorten it to 1 letter and 1 number. For example, the LEVEL name is

FIS\_L2 DEPARTURES LEVEL

I want to SET the value, L2, to a different parameter HAS\_LEVEL.

What I have so far is not working. Can you please give me your advice.

 ![levels](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/68502817ed091b61ebee0fe68390b1d622a7430c.png)

[Next page](https://forum.dynamobim.com/t/get-family-type-parameter-to-set-shared-parameter/112106.md?page=2)
