{"id":17476,"date":"2021-06-02T18:59:16","date_gmt":"2021-06-02T16:59:16","guid":{"rendered":"https:\/\/www.modelical.com\/en\/?p=17476"},"modified":"2022-03-18T13:02:03","modified_gmt":"2022-03-18T12:02:03","slug":"boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it","status":"publish","type":"post","link":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/","title":{"rendered":"Boiler Plate Code in Dynamo"},"content":{"rendered":"<h2>What is it and why to use it<\/h2>\n<p>\nDo you find yourself copying and pasting the same code over and over again whenever you create your Dynamo Python nodes? Check out this short video on Dynamo\u2019s 2.X feature for code templates in Python, also known as \u201cBoilerplate\u201d code.\n<\/p>\n<p>\nConfiguring your own code template or using the one we provide will speed your development time by doing all the usual setup that you need to start doing your magic in Dynamo:\n<\/p>\n<li>Have your default imports, common functions and classes ready for use.<\/li>\n<li>Reduce complexity with a common structure for your nodes. This will improve readability. Remember: you will spend more time reading code and trying to understand it than actually writing it.<\/li>\n<li>A shorter Learning Curve for new developers in your team. A common structure helps everyone find the relevant bits of our code in known places&#8230;<\/li>\n<p><iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/hhGdilS_KdA\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is it and why to use it Do you find yourself copying and pasting the same code over and over again whenever you create your Dynamo Python nodes? Check out this short video on Dynamo\u2019s 2.X feature for code templates in Python, also known as \u201cBoilerplate\u201d code. Configuring your own code template or using [&hellip;]<\/p>\n","protected":false},"author":51,"featured_media":26942,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[705],"tags":[463,422],"class_list":["post-17476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-videos","tag-technology-dynamo","tag-technology-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Boiler Plate Code in Dynamo - Modelical<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Boiler Plate Code in Dynamo - Modelical\" \/>\n<meta property=\"og:description\" content=\"What is it and why to use it Do you find yourself copying and pasting the same code over and over again whenever you create your Dynamo Python nodes? Check out this short video on Dynamo\u2019s 2.X feature for code templates in Python, also known as \u201cBoilerplate\u201d code. Configuring your own code template or using [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Modelical\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Modelical\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-02T16:59:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-18T12:02:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.modelical.com\/wp-content\/uploads\/Videos_4_BoilerPlateCode.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"375\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Iv\u00e1n Pajares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@modelical\" \/>\n<meta name=\"twitter:site\" content=\"@modelical\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Iv\u00e1n Pajares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/\"},\"author\":{\"name\":\"Iv\u00e1n Pajares\",\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/#\\\/schema\\\/person\\\/22a2226b545da0c1840c565b8bd6dab7\"},\"headline\":\"Boiler Plate Code in Dynamo\",\"datePublished\":\"2021-06-02T16:59:16+00:00\",\"dateModified\":\"2022-03-18T12:02:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/\"},\"wordCount\":152,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.modelical.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Videos_4_BoilerPlateCode-400x250-1.jpg\",\"keywords\":[\"Tec Dynamo\",\"Tec Python\"],\"articleSection\":[\"Videos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/\",\"url\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/\",\"name\":\"Boiler Plate Code in Dynamo - Modelical\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.modelical.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Videos_4_BoilerPlateCode-400x250-1.jpg\",\"datePublished\":\"2021-06-02T16:59:16+00:00\",\"dateModified\":\"2022-03-18T12:02:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/#\\\/schema\\\/person\\\/22a2226b545da0c1840c565b8bd6dab7\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.modelical.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Videos_4_BoilerPlateCode-400x250-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.modelical.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Videos_4_BoilerPlateCode-400x250-1.jpg\",\"width\":400,\"height\":250},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/\",\"name\":\"Modelical\",\"description\":\"We build information\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/#\\\/schema\\\/person\\\/22a2226b545da0c1840c565b8bd6dab7\",\"name\":\"Iv\u00e1n Pajares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/087eb3507199c4d208a89bfa9b4b82790834c6db02088ebc19d11bb428796ca6?s=96&d=initials&r=g&initials=iv\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/087eb3507199c4d208a89bfa9b4b82790834c6db02088ebc19d11bb428796ca6?s=96&d=initials&r=g&initials=iv\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/087eb3507199c4d208a89bfa9b4b82790834c6db02088ebc19d11bb428796ca6?s=96&d=initials&r=g&initials=iv\",\"caption\":\"Iv\u00e1n Pajares\"},\"url\":\"https:\\\/\\\/www.modelical.com\\\/en\\\/author\\\/ivan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Boiler Plate Code in Dynamo - Modelical","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/","og_locale":"en_US","og_type":"article","og_title":"Boiler Plate Code in Dynamo - Modelical","og_description":"What is it and why to use it Do you find yourself copying and pasting the same code over and over again whenever you create your Dynamo Python nodes? Check out this short video on Dynamo\u2019s 2.X feature for code templates in Python, also known as \u201cBoilerplate\u201d code. Configuring your own code template or using [&hellip;]","og_url":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/","og_site_name":"Modelical","article_publisher":"https:\/\/www.facebook.com\/Modelical\/","article_published_time":"2021-06-02T16:59:16+00:00","article_modified_time":"2022-03-18T12:02:03+00:00","og_image":[{"width":600,"height":375,"url":"https:\/\/www.modelical.com\/wp-content\/uploads\/Videos_4_BoilerPlateCode.jpg","type":"image\/jpeg"}],"author":"Iv\u00e1n Pajares","twitter_card":"summary_large_image","twitter_creator":"@modelical","twitter_site":"@modelical","twitter_misc":{"Written by":"Iv\u00e1n Pajares","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/#article","isPartOf":{"@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/"},"author":{"name":"Iv\u00e1n Pajares","@id":"https:\/\/www.modelical.com\/en\/#\/schema\/person\/22a2226b545da0c1840c565b8bd6dab7"},"headline":"Boiler Plate Code in Dynamo","datePublished":"2021-06-02T16:59:16+00:00","dateModified":"2022-03-18T12:02:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/"},"wordCount":152,"commentCount":0,"image":{"@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www.modelical.com\/wp-content\/uploads\/2021\/06\/Videos_4_BoilerPlateCode-400x250-1.jpg","keywords":["Tec Dynamo","Tec Python"],"articleSection":["Videos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/","url":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/","name":"Boiler Plate Code in Dynamo - Modelical","isPartOf":{"@id":"https:\/\/www.modelical.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/#primaryimage"},"image":{"@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www.modelical.com\/wp-content\/uploads\/2021\/06\/Videos_4_BoilerPlateCode-400x250-1.jpg","datePublished":"2021-06-02T16:59:16+00:00","dateModified":"2022-03-18T12:02:03+00:00","author":{"@id":"https:\/\/www.modelical.com\/en\/#\/schema\/person\/22a2226b545da0c1840c565b8bd6dab7"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.modelical.com\/en\/boiler-plate-code-in-dynamo-what-is-it-and-why-to-use-it\/#primaryimage","url":"https:\/\/www.modelical.com\/wp-content\/uploads\/2021\/06\/Videos_4_BoilerPlateCode-400x250-1.jpg","contentUrl":"https:\/\/www.modelical.com\/wp-content\/uploads\/2021\/06\/Videos_4_BoilerPlateCode-400x250-1.jpg","width":400,"height":250},{"@type":"WebSite","@id":"https:\/\/www.modelical.com\/en\/#website","url":"https:\/\/www.modelical.com\/en\/","name":"Modelical","description":"We build information","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.modelical.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.modelical.com\/en\/#\/schema\/person\/22a2226b545da0c1840c565b8bd6dab7","name":"Iv\u00e1n Pajares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/087eb3507199c4d208a89bfa9b4b82790834c6db02088ebc19d11bb428796ca6?s=96&d=initials&r=g&initials=iv","url":"https:\/\/secure.gravatar.com\/avatar\/087eb3507199c4d208a89bfa9b4b82790834c6db02088ebc19d11bb428796ca6?s=96&d=initials&r=g&initials=iv","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/087eb3507199c4d208a89bfa9b4b82790834c6db02088ebc19d11bb428796ca6?s=96&d=initials&r=g&initials=iv","caption":"Iv\u00e1n Pajares"},"url":"https:\/\/www.modelical.com\/en\/author\/ivan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/posts\/17476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/comments?post=17476"}],"version-history":[{"count":0,"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/posts\/17476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/media\/26942"}],"wp:attachment":[{"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/media?parent=17476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/categories?post=17476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.modelical.com\/en\/wp-json\/wp\/v2\/tags?post=17476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}