# How to use the "create legend component" node in the Genius Loci package"

**URL:** <https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629>\
**Category:** Uncategorized\
**Created:** [February 1, 2023, 11:57am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629 "2023-02-01T11:57:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 1, 2023, 11:57am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/1 "2023-02-01T11:57:24Z")

</div>

hello,

How to use the “create legend component” node in the Genius Loci package for Dynamo in Revit to create an automatic legend by category (high current / low current)? I have already looked at a forum question about this node, “How to use ‘Create Legend Component’ in GeniusLoci package?”, but it didn’t help me understand how to use the “view”, “family type”, and “location” inputs. I am looking for a clear explanation on how to correctly use these inputs to create an automatic legend for my desired categories.

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

In family type, I think I have to put the categories I want, but I won’t write each family in Block code as that would be long, I’ll use the detail element or the inserted family from revit.

In view I don’t understand why it’s docuement.current?

And the location I don’t know what to put,

In no place is it marked where I want my legend to be created

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 1, 2023, 12:11pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/2 "2023-02-01T12:11:53Z")

</div>

Hi @BAPTISTE.DAMEMME …you will need an existing legend view with one legend component, then we can duplicate that view…and delete the temp component after

 ![Capture.PNG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8c4bd3323dece95bb3091136e819d7ad47cdd74c.jpeg)

---

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 1, 2023, 12:24pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/3 "2023-02-01T12:24:22Z")

</div>

> [@sovitek](#):
>
> Hi @BAPTISTE.DAMEMME …you will need an existing legend view with one legend component, then we can duplicate that view…and delete the temp component after

like that ?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 1, 2023, 12:35pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/4 "2023-02-01T12:35:08Z")

</div>

Yeah thats the way i do it, just have legend with one legend component in my template…something here…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/1201b42a40a7423fcb0b4bdfca0f4119214be0e5.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 1, 2023, 12:50pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/5 "2023-02-01T12:50:35Z")

</div>

PS be sure your are in 2022 or forward…im not sure it works in older version, cant remember 😉 @Alban_de_Chasteigner should know 😉

---

<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:** [February 1, 2023, 3:39pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/6 "2023-02-01T15:39:51Z")

</div>

Hi,

It is working with all Revit versions.

---

<div class="post-metadata">

**Author:** ![b.damemme](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@b.damemme](https://forum.dynamobim.com/u/b.damemme)\
**Post date:** [February 2, 2023, 6:23am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/7 "2023-02-02T06:23:08Z")

</div>

@sovitek  
Hello, I am using another account but it’s still me. To summarize, you create a code block with a value of 1000, which corresponds to the maximum number of lines you can have in the legend. Then, you insert a list in “list.count” to represent the objects you want to have in the legend. In the code block, you write “0…(n-1)\*a…a” to create an array that decrements by 1 for each new legend object. Finally, you place this array on the “y” axis to position the legend according to your wishes. The “view” part remains unclear to me and I find it unfortunate that it cannot be done automatically.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 2, 2023, 6:33am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/8 "2023-02-02T06:33:25Z")

</div>

Do you do what i show…Does it work ? iif not then share an image with all your nodes expended and i take a look …thanks…you can do it that way here as well…the 1000 is the distance betveen components i just give it 😉 it cant be done 100 % that why i have a legend in my template with only one temp component i copy…so i kind off full automatic and it works 😉

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

---

<div class="post-metadata">

**Author:** ![John](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john/32/146742_2.png) [@John](https://forum.dynamobim.com/u/John)\
**Post date:** [February 2, 2023, 8:08am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/9 "2023-02-02T08:08:45Z")

</div>

[A example of how I use the node](https://youtu.be/NT70Ii2eXLk)

---

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 2, 2023, 10:27am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/10 "2023-02-02T10:27:02Z")

</div>

I have tried my best but I can’t find the node “all Family Types Of Category” I guess it is “all Elements of Family Type”.

I can’t find in list.count the list of my “safety devices” element that I inserted in my revit file.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/9/69c5ef61076ad863fd9af93738fd49580c6948a3.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 2, 2023, 10:30am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/11 "2023-02-02T10:30:38Z")

</div>

This one is from clockwork and take all family type in model and not only these there are placed…

---

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 2, 2023, 10:33am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/12 "2023-02-02T10:33:07Z")

</div>

It’s a package ??, because I can’t find all the family types in my library.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 2, 2023, 10:34am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/13 "2023-02-02T10:34:12Z")

</div>

Yes clockwork is a package if you dont have it then just install the latest clockwork from package manager

---

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 2, 2023, 10:49am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/14 "2023-02-02T10:49:31Z")

</div>

it’s good thx, for the next few times, how do I know which package is being used?

i have that now

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

---

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 2, 2023, 11:06am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/15 "2023-02-02T11:06:34Z")

</div>

With more information

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 2, 2023, 11:14am UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/16 "2023-02-02T11:14:37Z")

</div>

Looks like its a sheet you feed in it should be a legend…I use this one here from archilab as it has the option to set a name…btw think it will work if you feed in a legend in the ootb node you use as well

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a60e846feb1f36dd2ad02719d61c548940d3f272.png)

---

<div class="post-metadata">

**Author:** ![BAPTISTE.DAMEMME](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BAPTISTE.DAMEMME](https://forum.dynamobim.com/u/BAPTISTE.DAMEMME)\
**Post date:** [February 2, 2023, 12:00pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/17 "2023-02-02T12:00:11Z")

</div>

I’m sorry, I don’t quite understand,

I can’t find the Views.Duplicate node

I guess it’s a new package?

the Archilab package?

Where is the OOTB node?

I’m sorry I’m a beginner, it’s complicated to follow, I didn’t think that the use of a block would be so complicated ^^

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 2, 2023, 12:04pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/18 "2023-02-02T12:04:10Z")

</div>

does it work if you feed in a legend ? yes archilab is a package as , if you will install that then be sure you install the right version as these package is version specific…you could take a search here many post about that…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d1c82f1ea64e38bf15fc750dd1c84474e3d66915.png)

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [February 2, 2023, 12:05pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/19 "2023-02-02T12:05:22Z")

</div>

Hello, you have an error on the output (legend) of your view collector

cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 2, 2023, 12:06pm UTC](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629/20 "2023-02-02T12:06:55Z")

</div>

yes think so it will help feed in the legend 😉 and hopefully disappear 😉

[Next page](https://forum.dynamobim.com/t/how-to-use-the-create-legend-component-node-in-the-genius-loci-package/85629.md?page=2)
