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.
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
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
@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.
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
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
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…