{"id":2092,"date":"2022-08-07T08:00:00","date_gmt":"2022-08-07T07:00:00","guid":{"rendered":"https:\/\/camilion.dms3labs.cat\/2022\/08\/07\/run-a-dynamo-script-on-multiple-revit-files\/"},"modified":"2024-02-14T17:01:45","modified_gmt":"2024-02-14T16:01:45","slug":"run-a-dynamo-script-on-multiple-revit-files","status":"publish","type":"post","link":"https:\/\/camilion.eu\/es\/2022\/08\/07\/run-a-dynamo-script-on-multiple-revit-files\/","title":{"rendered":"Run a Dynamo script on multiple Revit files"},"content":{"rendered":"<p>If you&rsquo;re a <strong>Dynamo user<\/strong> and you need to execute your Dynamo routines across multiple Revit projects, families or templates look no further!<\/p>\n<p>At Camilion, we&rsquo;ve developed <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a>, a plugin for Autodesk\u00ae <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit\u00ae<\/a> that does exactly this.<\/p>\n<div class=\"toc\">\n<ul>\n<li><a href=\"#the-need-for-batch-processing\">The need for batch processing<\/a><\/li>\n<li><a href=\"#standards-compliance-example\">Standards compliance example<\/a>\n<ul>\n<li><a href=\"#the-dynamo-script\">The Dynamo script<\/a><\/li>\n<li><a href=\"#the-problem\">The problem<\/a><\/li>\n<li><a href=\"#the-solution\">The solution<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/div>\n<p><img decoding=\"async\" alt=\"DynaOne\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/DynaOne.gif\" title=\"\"><\/p>\n<h2 id=\"the-need-for-batch-processing\">The need for batch processing<\/h2>\n<p>If you&rsquo;re a Dynamo user, and you&rsquo;re working in big projects or with many files, chances are that <strong>you may need to run the same Dynamo script on multiple Revit projects or families<\/strong>.<\/p>\n<p>Common use cases where this can be required include:<\/p>\n<ul>\n<li>Auditing models on a daily\/weekly basis to <strong>ensure standard compliance<\/strong> within the office or from clients\/providers<\/li>\n<li>Checking deliverables or models from a client or provider<\/li>\n<li>Modifying Revit families (adding\/removing parameters, creating views, etc.)<\/li>\n<\/ul>\n<p>There are many more scenarios where <strong>batch processing<\/strong> <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit<\/a> files may be useful and can potentially save hours of repetitive work.<\/p>\n<p>For this purpose we&rsquo;ve developed <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a>, a Revit plugin that allows you to process all the Revit files you want with a Dynamo script <strong>in one click<\/strong>.<\/p>\n<h2 id=\"standards-compliance-example\">Standards compliance example<\/h2>\n<p>A common use of <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> is to check that the standards you set up in your office or those that are required by your clients or by public administrations are being followed.<\/p>\n<p><strong>Let&rsquo;s suppose<\/strong> that project&rsquo;s standards include the following:<\/p>\n<ul>\n<li>Each file can have a maximum of 10 warnings<\/li>\n<li>The units must be set to metric<\/li>\n<li>The level at 00 must be named with a specific convention<\/li>\n<li>Families must have specific parameters<\/li>\n<\/ul>\n<h3 id=\"the-dynamo-script\">The Dynamo script<\/h3>\n<p>As the responsible <strong>BIM Manager<\/strong>, you must check that each new project or each deliverable meets these minimum requirements.<\/p>\n<p>Even within your own company, it can be difficult to ensure that everyone uses the latest version of your starting template, and some deviations can happen, when we factor in collaborating with the outside world, such deviations from the standard are nearly unavoidable.<\/p>\n<p>What you can do is, to proactively detect anomalies, so <strong>you create an amazing Dynamo script<\/strong> that automatically checks all these standards and reports the results back in a <code>Watch<\/code> node.<\/p>\n<p>You set this watch node as <code>Output<\/code> so you can see the result from the Dynamo Player for more ease.<\/p>\n<p><img decoding=\"async\" alt=\"The Dynamo script\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_dynScript.png\" title=\"\"><\/p>\n<h3 id=\"the-problem\">The problem<\/h3>\n<p>The problem arises when you have to <strong>check for standard compliance multiple times each day, every day&hellip;<\/strong> you would have to open each revit project, run the Dynamo script, get the results, repeat <em>ad nauseaum<\/em>.<\/p>\n<h3 id=\"the-solution\">The solution<\/h3>\n<p>The solution to this tedious task is to <a href=\"https:\/\/camilion.eu\/en\/blog\/2021-how-to-install-camilion-plugins\/\">download and install<\/a> the <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> plugin!<\/p>\n<p>To use the plugin, simply click on the <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> button, located in the <code>Camilion<\/code> tab and the main window will appear.<br \/>\nNext, choose your Dynamo script <code>(a)<\/code> and drag and drop all the <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit<\/a> files you wish to process <code>(c)<\/code> (you may drop one or more folders as well).<br \/>\nA preview list with all eligible files will be displayed <code>(d)<\/code> and you can choose which ones to exclude from the process by ticking the <code>Include<\/code> checkbox.<\/p>\n<p><img decoding=\"async\" alt=\"The DynaOne window\" src=\"https:\/\/camilion.eu\/wp-content\/uploads\/2024\/02\/en_d1Window.png\" title=\"\"><\/p>\n<p>For the last step, choose your options from the options section <code>(e)<\/code>. In our example, we&rsquo;re just interested in getting a report on the status of the file, so we would uncheck the <code>Save<\/code> checkbox and possibly check the <code>Detach<\/code> radiobutton if we&rsquo;re working with workshared models.<\/p>\n<p>Once you&rsquo;re ready, just click on the <code>Run<\/code> button and go take a break (seriously).<\/p>\n<p>DynaOne will open and process your files one by one on the <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\" target=\"_blank\" rel=\"noopener\">Revit<\/a> window that you had already opened.<br \/>\nIt is important to note that this particular Revit window will be &ldquo;busy&rdquo; processing all the revit files until it finishes; so if you need to work in Revit you have to open a new Revit window.<\/p>\n<blockquote>\n<p>Unlike other implementations, <strong><a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> uses a single Revit session<\/strong>.<br \/>\nThis means that it is <strong>not necessary to close and open Revit<\/strong> between files, which means you will <strong>save a lot of time<\/strong>.<\/p>\n<\/blockquote>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p><a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> is a very powerful tool if you need to batch process multiple Revit files with one Dynamo script.<br \/>\nUnlike any other available app, <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> is able to <strong>log any warnings, errors and output messages that occur in Dynamo<\/strong>.<\/p>\n<p>We hope the BIM community can benefit from these tools and <strong>find value in them<\/strong>.<\/p>\n<p>Download and try <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a> today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&rsquo;re a <strong>Dynamo user<\/strong> and you need to execute your Dynamo routines across multiple Revit projects, families or templates look no further!<\/p>\n<p>At Camilion, we&rsquo;ve developed <a href=\"https:\/\/camilion.eu\/en\/apps\/DynaOne\/\">DynaOne<\/a>, a plugin for Autodesk\u00ae <a href=\"https:\/\/www.autodesk.com\/products\/revit\/overview\">Revit\u00ae<\/a> that does exactly this.<\/p>\n","protected":false},"author":1,"featured_media":1214,"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":[183,192,153],"tags":[],"dipi_cpt_category":[],"class_list":["post-2092","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynaone-es","category-howto-es","category-revit-es"],"acf":[],"_links":{"self":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2092","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=2092"}],"version-history":[{"count":3,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2092\/revisions"}],"predecessor-version":[{"id":2156,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/posts\/2092\/revisions\/2156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/media\/1214"}],"wp:attachment":[{"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/media?parent=2092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/categories?post=2092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/tags?post=2092"},{"taxonomy":"dipi_cpt_category","embeddable":true,"href":"https:\/\/camilion.eu\/es\/wp-json\/wp\/v2\/dipi_cpt_category?post=2092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}