# Change legend component "component type" value

**URL:** <https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506>\
**Category:** Revit\
**Created:** [July 8, 2018, 12:27am UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506 "2018-07-08T00:27:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![321673216732167](https://avatars.discourse-cdn.com/v4/letter/3/dfb087/32.png) [@321673216732167](https://forum.dynamobim.com/u/321673216732167)\
**Post date:** [July 8, 2018, 12:27am UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/1 "2018-07-08T00:27:07Z")

</div>

Dear All,  
I have created initial legend view with 3 legend components. Afterwards I duplicated this view with detailing (including legend component). Now for each new view I need to change the “component type” parameter of each legend component placed in those views.  
The aim is to create a catalogue of project elements.  
When I do this like displayed below, dynamo gives me this error message:

 ![dyn%20problem](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/b/fba16f560d08ceca7adf97ded8146034ceec7fae.jpg)

Anyone knows the solution how it can be solved?

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [July 17, 2018, 2:49pm UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/2 "2018-07-17T14:49:15Z")

</div>

@321673216732167 sorry it took so long, but I had to do some digging.

I don’t think that this is possible. You are not the first person reporting that this part of the API doesn’t work. I am not sure who would be a good person that can really explain what is going on. I would imagine that Arnost or Jeremy would know what is the issue here. Especially Jeremy should know since he suggested exactly what you are doing in this post: [http://thebuildingcoder.typepad.com/blog/2010/05/duplicate-legend-component.html](http://thebuildingcoder.typepad.com/blog/2010/05/duplicate-legend-component.html) and there were users questioning it right there in comments. Israel never got an answer. I just seconded his comment, but I am not sure if Jeremy will get around to this.

Cheers!

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [July 17, 2018, 7:11pm UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/3 "2018-07-17T19:11:55Z")

</div>

Hm strange, unless I am completely missing something here, I am certain that I have been able to set the Component Type parameter value in duplicated Legend Views and did so in this post here:

> [@Preview Image of an Assembly in It's Type Image Parameter](https://forum.dynamobim.com/t/preview-image-of-an-assembly-in-its-type-image-parameter/19819/5):
>
> This one was a fun one slight_smile Workflow is as follows: In Revit create a Legend view with a single wall legend component. With Dynamo \> Duplicate legend view per each wall type, change component to respective wall type, export views as images, import images and set parameter value, delete legend views To avoid pasting all the Python scripts here is the .dyn file: [Wall Type Image Creator.dyn](https://forum.dynamobim.com/uploads/short-url/tZFquwAusZ7FXbCn80WAhUuwwDX.dyn) (39.4 KB) edit: ImageType.Load is …

~~Perhaps it is a Revit version? Or type of component? This was just using Wall Type legend components in Revit 2018.~~

EDIT: It appears setting the component type only works with Wall Type legend components.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [July 17, 2018, 9:42pm UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/4 "2018-07-17T21:42:19Z")

</div>

Ok, that clears things up a little bit. Thanks @awilliams

@321673216732167 it looks like you are out of luck because this has been reported to Autodesk years ago, and they haven’t fixed it so far, so I doubt it will ever get looked at. Sorry.

---

<div class="post-metadata">

**Author:** ![paulstevens90](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paulstevens90/32/100222_2.png) [@paulstevens90](https://forum.dynamobim.com/u/paulstevens90)\
**Post date:** [August 14, 2020, 11:29am UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/5 "2020-08-14T11:29:31Z")

</div>

FYI - Also works with Structural Framing 👍

---

<div class="post-metadata">

**Author:** ![cdiarchitects](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@cdiarchitects](https://forum.dynamobim.com/u/cdiarchitects)\
**Post date:** [May 1, 2021, 9:45am UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/6 "2021-05-01T09:45:53Z")

</div>

I have created a script that uses an existing legend and components within that legend to be copied to reflect the current types  
Further development would be to select types that are used in project

---

<div class="post-metadata">

**Author:** ![cdiarchitects](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@cdiarchitects](https://forum.dynamobim.com/u/cdiarchitects)\
**Post date:** [May 1, 2021, 9:48am UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/7 "2021-05-01T09:48:02Z")

</div>

Waiting for permission to upload graph

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [May 1, 2021, 11:59am UTC](https://forum.dynamobim.com/t/change-legend-component-component-type-value/23506/8 "2021-05-01T11:59:17Z")

</div>

Hi @cdiarchitects,

Welcome to the Dynamo forum.  
To place family types on a legend you can use the _Create Legend Component_ node of the _Genius Loci_ package.

> [@Generic Annotation FamilyType to create legend - NOT CREATING frowning](https://forum.dynamobim.com/t/generic-annotation-familytype-to-create-legend-not-creating/54414/3):
>
> Hi @iconicdesignent, To place family types on a legend use the Create Legend Component node. [Create legend component.dyn](https://forum.dynamobim.com/uploads/short-url/iNGpoFRNUGhu6emKdu6AiKNaR1N.dyn) (12.2 KB) P.S : As the Revit API does not integrate methods for legend components, the workaround is to insert a single component in the legend, duplicate it and change its type, which the custom node does.
