{"id":2137,"date":"2020-03-03T08:00:00","date_gmt":"2020-03-03T07:00:00","guid":{"rendered":"https:\/\/camilion.dms3labs.cat\/2020\/03\/03\/using-revit-filters-to-create-legend-plans\/"},"modified":"2024-02-14T17:02:00","modified_gmt":"2024-02-14T16:02:00","slug":"using-revit-filters-to-create-legend-plans","status":"publish","type":"post","link":"https:\/\/camilion.eu\/es\/2020\/03\/03\/using-revit-filters-to-create-legend-plans\/","title":{"rendered":"Using Revit Filters to create legend plans"},"content":{"rendered":"<p>Remember the last time you selected a bunch of elements, right-clicked and chose <code>Override Graphics in View<\/code> &gt; <code>By Element<\/code>?<br \/>\nWell&hellip; except for very specific exceptions, that kind of override should be your last resource (shame on you).<\/p>\n<p>It&rsquo;s much better to use filters to create graphical overrides on views for the power and flexibility they allow you to leverage. So, what exactly are filters and how can you apply them to work better and go home earlier? Read on&hellip;<\/p>\n<div class=\"toc\">\n<ul>\n<li><a href=\"#what-are-filters\">What are Filters<\/a>\n<ul>\n<li><a href=\"#practical-use-cases\">Practical use cases<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#using-filters\">Using filters<\/a>\n<ul>\n<li><a href=\"#creating-the-filter\">Creating the filter<\/a><\/li>\n<li><a href=\"#intermezzo-setting-up-the-parameters\">Intermezzo: setting-up the parameters<\/a><\/li>\n<li><a href=\"#applying-the-filter\">Applying the filter<\/a><\/li>\n<li><a href=\"#creating-legends-automatically\">Creating legends automatically<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/div>\n<h2 id=\"what-are-filters\">What are Filters<\/h2>\n<p>Filters are <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit&rsquo;s<\/a> way to create intelligent selections of objects in order to control their visibility and overrides easily. When you create a filter, you define a series of rules or criteria, and only the objects that meet those criteria will be affected by the filter.<\/p>\n<p>The <em>Newbie<\/em> way to create visual overrides:<br \/>\n<img decoding=\"async\" alt=\"en_revitFilters_01.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitFilters_01.png\" title=\"\"><\/p>\n<h3 id=\"practical-use-cases\">Practical use cases<\/h3>\n<p>Filters are very useful when there is a clear criteria that elements can be grouped by.<\/p>\n<p>A classical example is colouring the walls in a plan view according to their fire rating category.<br \/>\nAnother example may be hiding all steel frames that have an IPE section (or the opposite, showing only those with an IPE section).<\/p>\n<p>There are practically endless possibilities to create efficient filters using this tool. Now, we&rsquo;re going to see how we can create and apply a filter to our views.<\/p>\n<h2 id=\"using-filters\">Using filters<\/h2>\n<p>This process is divided into two steps: first we <em>create<\/em> the filter, then we <em>apply<\/em> the filter to the views.<\/p>\n<h3 id=\"creating-the-filter\">Creating the filter<\/h3>\n<p>In this example, will be creating a filter based on the fire rating of our walls.<\/p>\n<p>To create a filter, go to <code>View<\/code> &gt; <code>Graphics<\/code> &gt; <code>Filters<\/code>. This will open the Filters dialog, where we will create and manage all of our filters.<br \/>\nFor the purpose of this blog post, we will be creating a <code>Rule-based<\/code> Filter, which is the most used type of filter. The steps to create the filter are:<\/p>\n<ol>\n<li>Click on the <code>new<\/code> icon, in the lower left corner of the dialog and give your new filter a name (ours is <em>f60<\/em>).<\/li>\n<li>Select all categories that you want the filter to affect. In our case we will select only <code>Walls<\/code>.<\/li>\n<li>Set up as many rules as you like. For this example, we want the filter to select all the walls that have the text <em>RE60<\/em> in the Fire Rating parameter (this is a <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit<\/a> built-in type parameter).<\/li>\n<li>Click <code>OK<\/code> to exit the dialog.<\/li>\n<\/ol>\n<p><img decoding=\"async\" alt=\"en_revitFilters_02.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitFilters_02.png\" title=\"\"><\/p>\n<p><img decoding=\"async\" alt=\"en_revitFilters_03.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitFilters_03.png\" title=\"\"><\/p>\n<blockquote>\n<p>Please note that it&rsquo;s possible to set multiple conditions by clicking on the <code>Add Rule<\/code> button in the upper right corner. If there are multiple rules, the user can choose if all of them must be true (using the <code>AND<\/code> conditional) or if at least one must be true (using the <code>OR<\/code> conditional).<\/p>\n<\/blockquote>\n<h3 id=\"intermezzo-setting-up-the-parameters\">Intermezzo: setting-up the parameters<\/h3>\n<p>To ensure that we can override our views, our elements must have their parameters correctly assigned. For our example, we have to assign a fire rating to our walls, so we:<\/p>\n<ol>\n<li>Select one of our walls.<\/li>\n<li>Click on the <code>Edit Type<\/code> button.<\/li>\n<li>Scroll down to the <code>Fire Rating<\/code> parameter, and assign it a <em>RE60<\/em> value (remember that this change will affect all the instances that belong to that wall type, because we&rsquo;re editing a type property, so you&rsquo;ll only need to do this <em>once<\/em> per type).<\/li>\n<li>Click on <code>OK<\/code> to apply the changes.<\/li>\n<\/ol>\n<p><img decoding=\"async\" alt=\"en_revitFilters_05.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitFilters_05.png\" title=\"\"><\/p>\n<h3 id=\"applying-the-filter\">Applying the filter<\/h3>\n<p>Now that our filter has been created and our elements have their parameters assigned, it&rsquo;s time to apply the filter to all the views we need to override.<\/p>\n<ol>\n<li>Go to the view you wish to override and access it&rsquo;s Visibility\/Graphic Overrides dialog by pressing the shortcut <code>VG<\/code> (or by navigating to <code>View<\/code> &gt; <code>Graphics<\/code> &gt; <code>Visibility\/Graphics<\/code>).<\/li>\n<li>Click on the <code>Filters<\/code> tab.<\/li>\n<li>Click on the <code>Add<\/code> button.<\/li>\n<li>Select our previously created filter and click <code>OK<\/code>.<\/li>\n<li>The filter now appears in the list and you can override any of its colours or turn off its visibility.<\/li>\n<\/ol>\n<p><img decoding=\"async\" alt=\"en_revitFilters_04.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitFilters_04.png\" title=\"\"><\/p>\n<p>In this example, we added 2 more filters for walls with a <em>RE90<\/em> and <em>RE120<\/em> fire rating. We then changed the colour of the cut patterns and <em>voil\u00e0<\/em>! Our walls are automatically being coloured based on the conditions we defined previously.<\/p>\n<p><img decoding=\"async\" alt=\"en_revitFilters_06.png\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_revitFilters_06.png\" title=\"\"><\/p>\n<p>The fun thing now, is that you can tweak the filters in any way to adapt to new project requirements and you may even use them in view templates to consistently override view elements according to your needs in a very precise  and efficient manner.<\/p>\n<h3 id=\"creating-legends-automatically\">Creating legends automatically<\/h3>\n<p>Now that all your graphic overrides are nicely controlled by view filters, wouldn&rsquo;t it be nice to be able to create automatic legend views to visualize all this data consistently? At Camilion we have developed a plugin that does just that: <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">LeGen<\/a>.<\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>Creating and applying filters is a very efficient way to manage visual overrides in <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit<\/a> projects. Filters can be used to optimize the production of project documentation or help drafters with visualization issues.<br \/>\nThis is a must-know workflow no matter the size of your project and it will bring enormous benefits to your company&rsquo;s workflows.<\/p>\n<p>To further automate your workflow, check out our <a href=\"https:\/\/camilion.eu\/en\/apps\/LeGen\/\">Legend Generator<\/a> plugin to create automatic legend views from the data in your view filters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remember the last time you selected a bunch of elements, right-clicked and chose <code>Override Graphics in View<\/code> &gt; <code>By Element<\/code>?<br \/>\nWell&hellip; except for very specific exceptions, that kind of override should be your last resource (shame on you).<\/p>\n<p>It&rsquo;s much better to use filters to create graphical overrides on views for the power and flexibility they allow you to leverage. So, what exactly are filters and how can you apply them to work better and go home earlier? Read on&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1431,"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-2137","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\/2137","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=2137"}],"version-history":[{"count":3,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2137\/revisions"}],"predecessor-version":[{"id":2199,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2137\/revisions\/2199"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/media\/1431"}],"wp:attachment":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/media?parent=2137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/categories?post=2137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/tags?post=2137"},{"taxonomy":"dipi_cpt_category","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/dipi_cpt_category?post=2137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}