{"id":2135,"date":"2020-03-23T08:00:00","date_gmt":"2020-03-23T07:00:00","guid":{"rendered":"https:\/\/camilion.dms3labs.cat\/2020\/03\/23\/revit-creating-legends-automatically-with-legen\/"},"modified":"2024-02-14T17:01:59","modified_gmt":"2024-02-14T16:01:59","slug":"revit-creating-legends-automatically-with-legen","status":"publish","type":"post","link":"https:\/\/camilion.eu\/es\/2020\/03\/23\/revit-creating-legends-automatically-with-legen\/","title":{"rendered":"Revit: Creating legends automatically with LeGen"},"content":{"rendered":"<p>So you have your <a href=\"https:\/\/autodesk.com\" target=\"_blank\" rel=\"noopener\">Autodesk\u00ae<\/a> <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit\u00ae<\/a> file ready to start the documentation phase and you&rsquo;ve (hopefully) created your visual overrides by setting up your view filters in your views to nicely override whatever elements you need to override.<\/p>\n<p>At this point, after creating your sheets and dragging your views inside, you probably need some type of legend to explain what all those colours and patterns represent&hellip;<br \/>\nenter: <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a>.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_01.gif\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_01.gif\" title=\"\"><\/p>\n<div class=\"toc\">\n<ul>\n<li><a href=\"#life-before-legen\">Life Before LeGen<\/a><\/li>\n<li><a href=\"#how-legen-works\">How LeGen works<\/a>\n<ul>\n<li><a href=\"#creating-an-automatic-legend\">Creating an automatic legend<\/a><\/li>\n<li><a href=\"#updating-the-legend\">Updating the legend<\/a><\/li>\n<li><a href=\"#additional-info\">Additional info<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<h2 id=\"life-before-legen\">Life Before <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a><\/h2>\n<p>Traditionally, creating your legend views has always been <strong>a pain and a waste of time<\/strong>.<br \/>\nThe typical workflow required you to create a legend view manually and inside this legend view you would need to create as many <strong>filled regions<\/strong> as the amount of elements you wanted to represent in your legend.<br \/>\nThen, you needed to <strong>write down the text<\/strong> of each legend entry <strong>by hand<\/strong>, weather the text be the filter&rsquo;s name or some parameter stored in the element. When finally this task was finished, you would have to be very careful of any changes made in your model as the information displayed in your legend now has <strong>no link<\/strong> whatsoever with the model, and any change must be tracked and reflected <strong>manually<\/strong> in the legend view.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_01.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_01.png\" title=\"\"><\/p>\n<p>As you can see, this workflow is very prone to error and definitely not a <em>BIMish<\/em> approach&hellip; This is why, at Camilion we developed <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a>: a Legend Generator that will allow you to effortlessly create and maintain all your legend views automatically with a couple of clicks.<\/p>\n<h2 id=\"how-legen-works\">How <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a> works<\/h2>\n<h3 id=\"creating-an-automatic-legend\">Creating an automatic legend<\/h3>\n<p><a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a> is a Legend Generator that automatically creates a legend view using the filter overrides you have applied on a view.<br \/>\nTo start, make sure you have your filters set up in your view:<br \/>\nIn our example, we have 4 filters applied<code>(a)<\/code>, with colour overrides in the <code>Cut Patterns<\/code> column<code>(b)<\/code>. As you can see in filter <em>REI-60<\/em><code>(c)<\/code>, this filter affects all walls<code>(d)<\/code> where the <em>Fire Rating<\/em>  parameter equals the text <em>&ldquo;RE60&rdquo;<\/em><code>(e)<\/code>. The same logic applies to the other filters being used.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_02.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_02.png\" title=\"\"><\/p>\n<blockquote>\n<p>For a detailed tutorial in using filters to control graphic overrides, check out <a href=\"https:\/\/camilion.eu\/en\/blog\/2020-revit-using-filters\">our other blog post<\/a>.<\/p>\n<\/blockquote>\n<p>Once your filters are set up, while in that view navigate to the Camilion tab          <code>(a)<\/code> and click on the <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a> button<code>(b)<\/code>.<br \/>\nIn our example, we&rsquo;re going to create a legend to show the fire resistance of different the wall types and we want to display the value in the Description parameter as well.<\/p>\n<blockquote>\n<p>For the command to work, the only requisite is that your view has <em>at least<\/em> one filter set up, since this is where <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a> gets the data to populate the legend.<\/p>\n<\/blockquote>\n<p><strong>LeGen has improved much since it&rsquo;s initial release! Here are <a href=\"https:\/\/camilion.eu\/en\/blog\/2021-revit-legen-upgrades\/\">the main upgrades<\/a>.<\/strong><\/p>\n<p>In the dialog box that appears, you can choose what text to display in the entries of the legend that will be created: the filters name and\/or the value of a parameter of your choice. In this example we are going to generate a legend with both fields<code>(c)<\/code> and the value in the <em>Description<\/em> parameter<code>(d)<\/code>.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_03.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_03.png\" title=\"\"><\/p>\n<p>Once your preferences are set up, click on the <code>OK<\/code> button and <em>voil\u00e0<\/em>!<br \/>\nA new legend view will be created<code>(a)<\/code> and <em>automagically<\/em> populated with the colours in the Filters<code>(b)<\/code> and the information of your choice<code>(c)<\/code>!<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_04.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_04.png\" title=\"\"><\/p>\n<h3 id=\"updating-the-legend\">Updating the legend<\/h3>\n<p>The automatic legend can be updated at any time by simply clicking on the <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a> button again either from the generating view or from the automatically created legend view.<br \/>\nFor the automatic update to work, both the names of the generating view and the legend view should <em>not<\/em> be changed.<br \/>\nFor our example, we will update the legend to reflect only the text written in the <em>Fire Rating<\/em> parameter<code>(a)<\/code>.<br \/>\nIf any manual modification has been done to the legend, a <em>Warning Dialog<\/em> will be displayed<code>(b)<\/code> <em>before<\/em> committing the command. You can choose to cancel<code>(c)<\/code> the command execution if you wish so.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_05.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_05.png\" title=\"\"><\/p>\n<p>You can update the legend at any time by changing the values of the fields displayed in any parameter of your choosing.<\/p>\n<p><strong>Version 1.7 of LeGen is much improved, <a href=\"https:\/\/camilion.eu\/en\/blog\/2021-revit-legen-upgrades\/\">see the upgrades here<\/a>.<\/strong><\/p>\n<h3 id=\"additional-info\">Additional info<\/h3>\n<p>The generated legend&rsquo;s view name will have the following format: <strong>Fixed prefix + Generating view name<\/strong>.<\/p>\n<p>It is recommended that you <em>don\u00b4t<\/em> change this name or the generating view name, in order to maintain a live relationship between the legend and the view so that you can automatically update the legend if required.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_06.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitLeGen_06.png\" title=\"\"><\/p>\n<p>All the elements in the legend are <em>pinned<\/em>. It is recommended that you don&rsquo;t do any manual modification in this view, since updating the legend automatically will cause the loss of these changes. In any case, a <em>Warning Dialog<\/em> will display before updating the legend if <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a> finds that any element has been <em>unpinned<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you have your <a href=\"https:\/\/autodesk.com\">Autodesk\u00ae<\/a> <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\">Revit\u00ae<\/a> file ready to start the documentation phase and you&rsquo;ve (hopefully) created your visual overrides by setting up your view filters in your views to nicely override whatever elements you need to override.<\/p>\n<p>At this point, after creating your sheets and dragging your views inside, you probably need some type of legend to explain what all those colours and patterns represent&hellip;<br \/>\nenter: <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a>.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitLeGen_01.gif\" src=\"https:\/\/camilion.eu\/en\/blog\/2020-revit-creating-legends-automagically\/en_revitLeGen_01.gif\" \/><\/p>\n","protected":false},"author":1,"featured_media":1415,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[192,171,153],"tags":[],"dipi_cpt_category":[],"class_list":["post-2135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howto-es","category-legen-es","category-revit-es"],"acf":[],"_links":{"self":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/comments?post=2135"}],"version-history":[{"count":3,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2135\/revisions"}],"predecessor-version":[{"id":2197,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2135\/revisions\/2197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/media\/1415"}],"wp:attachment":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/media?parent=2135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/categories?post=2135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/tags?post=2135"},{"taxonomy":"dipi_cpt_category","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/dipi_cpt_category?post=2135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}