{"id":944,"date":"2016-02-12T10:00:00","date_gmt":"2016-02-12T08:00:00","guid":{"rendered":"https:\/\/blogs.autodesk.com\/villagebim\/2016\/02\/exemple-dynamo-jouer-avec-la-topographie.html"},"modified":"2021-02-09T22:04:22","modified_gmt":"2021-02-09T20:04:22","slug":"exemple-dynamo-jouer-avec-la-topographie","status":"publish","type":"post","link":"https:\/\/blogs.autodesk.com\/villagebim\/2016\/02\/exemple-dynamo-jouer-avec-la-topographie.html","title":{"rendered":"Exemple Dynamo : Jouer avec la topographie"},"content":{"rendered":"<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b7c809cdb7970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"218\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eac717f11.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b8d193ca22970c-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"278\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eac9146be.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">Je dois vous l\u2019avouer, cet exemple n\u2019est pas de moi, je l\u2019ai r\u00e9cup\u00e9r\u00e9 de l&#039;\u00e9v\u00e8nement <a href=\"http:\/\/au.autodesk.com\/\">Autodesk University<\/a> . C\u2019est un exemple propos\u00e9 par <a href=\"http:\/\/therevitcomplex.blogspot.fr\/\">Marcello Sgambelluri<\/a>&#160;sur l&#039;utilisation&#160;d&#039;une \u201ctoposurface\u201d de Revit.<\/p>\n<p style=\"text-align: justify\">Voici l\u2019exemple : Dans Revit, il est tr\u00e8s difficile de placer des \u00e9l\u00e9ments qui suivent une surface topographique comme par exemple une cl\u00f4ture. D\u2019o\u00f9 l\u2019utilisation de Dynamo pour effectuer cette t\u00e2che.<\/p>\n<p style=\"text-align: justify\">Voici les diff\u00e9rentes phases que nous allons r\u00e9aliser dans Dynamo:<\/p>\n<blockquote>\n<p>&#8211; Import dans Dynamo de la toposurface Revit,<\/p>\n<p>&#8211; S\u00e9lection de la limite de propri\u00e9t\u00e9 et extrusion de celle-ci,<\/p>\n<p>&#8211; R\u00e9aliser l\u2019intersection entre les deux,<\/p>\n<p>&#8211; Cr\u00e9er des points le long de la ligne d\u2019intersection,<\/p>\n<p>&#8211; Placer la famille &quot;cl\u00f4ture&quot; sur les points de l\u2019intersection,<\/p>\n<\/blockquote>\n<p style=\"text-align: justify\"><strong><u>1- Import dans Dynamo de la toposurface Revit :<\/u><\/strong><\/p>\n<blockquote>\n<p>&#8211; Ouvrir le fichier Revit joint \u00e0 l\u2019exemple (fin de l\u2019article),<\/p>\n<p>&#8211; Ouvrir une session Dynamo,<\/p>\n<ul>\n<li>T\u00e9l\u00e9charger le package \u201c<em>spring nodes<\/em>\u201d qui nous permet de transformer la \u201ctoposurface\u201d Revit en surface Dynamo.<\/li>\n<\/ul>\n<p>&#160;<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b7c809cdc3970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"178\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eaca72c76.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#8211; Nous allons placer un n\u0153ud \u201c<em>Select Model Element<\/em>\u201d et s\u00e9lectionner la \u201ctoposurface\u201d Revit,<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b8d193ca36970c-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"89\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eacc1b85c.png\" style=\"padding-top: 0px;padding-left: 0px;margin: 0px auto;padding-right: 0px;border: 0px;background-image: none\" title=\"image\" width=\"183\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p>&#8211; Pour importer la toposurface, utiliser le n\u0153ud \u201c<em>Topography.ToPolySurface<\/em>\u201d du package \u201c<em>spring nodes<\/em>\u201d et connecter-les ensemble (la topographie doit appara\u00eetre dans l\u2019interface Dynamo),<\/p>\n<\/blockquote>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01bb08ae8ca5970d-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"317\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eace32c34.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\"><strong><u>2- S\u00e9lection de la limite de propri\u00e9t\u00e9 et extrusion :<\/u><\/strong><\/p>\n<p style=\"text-align: justify\">Dans le fichier, une limite de propri\u00e9t\u00e9 \u00e0 \u00e9t\u00e9 trac\u00e9e, nous allons la sectionner et l\u2019extruder pour en faire une surface.<\/p>\n<blockquote>\n<p>&#8211; Utiliser le n\u0153ud \u201c<em>Element Types<\/em>\u201d et indiquer le param\u00e8tre\u201d<em>Propertyline<\/em>\u201d pour s\u00e9lectionner le type,<\/p>\n<p>&#8211; Choisir le n\u0153ud \u201c<em>All Elements of Type<\/em>\u201d pour s\u00e9lectionner toutes les lignes de propri\u00e9t\u00e9 du fichier Revit,<\/p>\n<p>&#8211; Le n\u0153ud \u201c<em>Element.Curves<\/em>\u201d permet de transformer les lignes de propri\u00e9t\u00e9 Revit en ligne Dynamo,<\/p>\n<p>&#160;<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b8d193ca4b970c-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"265\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022ead13090b.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p>&#8211; Pour extruder, nous allons utiliser le n\u0153ud \u201c<em>Curve.Extrude (direction and distance)<\/em>\u201d avec une distance n\u00e9gative (par exemple \u2013 5m),<\/p>\n<p>&#160;<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01bb08ae8caf970d-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"306\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022ead2c1745.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\">Nota : coup de chance la direction est dans le sens Z (sinon, il aurai fallu ajouter un vecteur 0,0,1).<\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\"><strong><u>3- R\u00e9aliser l\u2019intersection entre les deux:<\/u><\/strong><\/p>\n<p style=\"text-align: justify\">Nous avons d\u00e9j\u00e0 utilis\u00e9 ce n\u0153ud dans des exercices pr\u00e9c\u00e9dents, il s\u2019agit du n\u0153ud \u201c<em>Geometry.Intersect<\/em>\u201d. Correctement connect\u00e9, vous trouvez ci-dessous l\u2019intersection entre les deux surfaces.<\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01bb08ae8cbf970d-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"270\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022ead52f1df.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\"><strong><u>4- Cr\u00e9er des points le long de la ligne d\u2019intersection :<\/u><\/strong><\/p>\n<p style=\"text-align: justify\">Nous allons aplanir la liste des courbes d\u2019intersection car celle-ci&#160;a g\u00e9n\u00e9r\u00e9 des sous-listes. Nous allons utiliser le n\u0153ud \u201c<em>Flatten<\/em>\u201d.<\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01bb08ae8cc3970d-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"304\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022ead6c6038.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &#160; &#8211; Le n\u0153ud \u201c<em>PolyCurve.ByJoinedCurves<\/em>\u201d permet de transformer les lignes d\u2019intersection en une seule ligne,<\/p>\n<p>&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b7c809cdeb970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"304\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022ead85a3f0.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p>&#8211; Ensuite, nous allons trouver la longueur du p\u00e9rim\u00e8tre de la ligne en utilisant le n\u0153ud \u201c<em>Curve.Length<\/em>\u201d,<\/p>\n<p>&#8211; Nous allons cr\u00e9er une s\u00e9rie de nombres en utilisant&#160; un \u201c<em>code block<\/em>\u201d (en double cliquant sur l\u2019interface \u201cDynamo\u201d) avec ce script \u201c<em>0..nb..Esp;\u201d (<\/em>nb = variable \u00e9gale \u00e0 la longueur du p\u00e9rim\u00e8tre et Esp = variable&#160;espacement entre piquets),<\/p>\n<p><em>&#8211;<\/em> Cr\u00e9er un \u201c<em>Integer Slider\u201d<\/em> pour faire varier la valeur d\u2019espacement des piquets,<\/p>\n<p>&#8211; Enfin pour cr\u00e9er des points le long de la ligne, nous allons utiliser le n\u0153ud \u201c<em>Curve.PointAtDistance<\/em>\u201d.<\/p>\n<p>&#160;<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01bb08ae8ccb970d-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"171\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eada063de.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b7c809cdf6970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"278\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eadbad3c1.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\"><u><strong>5- Placer la famille cl\u00f4ture sur des points de l\u2019intersection,<\/strong><\/u><\/p>\n<p style=\"text-align: justify\">Nous allons utiliser&#160;le n\u0153ud \u201c<em>FamilyInstance.ByPoint<\/em>\u201d pour placer les familles de piquets de cl\u00f4ture associ\u00e9es au n\u0153ud \u201c<em>Family Types<\/em>\u201d.<\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b8d193ca69970c-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"184\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eadde1e25.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\"><strong><u>R\u00e9sultat final dans Revit :<\/u><\/strong><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b8d193ca73970c-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"278\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eadf9fc46.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p style=\"text-align: justify\">Nota vous pouvez vous amuser \u00e0 modifier l\u2019espacement entre piquets avec le slider.<\/p>\n<p style=\"text-align: justify\">&#160;<\/p>\n<p><a href=\"http:\/\/villagebim.typepad.com\/.a\/6a015391e15a28970b01b7c809cdff970b-pi\"><img loading=\"lazy\" decoding=\"async\" alt=\"image\" border=\"0\" height=\"133\" src=\"https:\/\/blogs.autodesk.com\/villagebim\/wp-content\/uploads\/sites\/154\/2021\/02\/img_6022eae368c82.png\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border: 0px;margin-left: auto;margin-right: auto;background-image: none\" title=\"image\" width=\"454\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>Si vous voulez r\u00e9aliser l&#039;exercice avec mes donn\u00e9es, les voici :<\/p>\n<p>&#160; &#160; &#8211; <span class=\"asset  asset-generic at-xid-6a015391e15a28970b01bb08ae9250970d img-responsive\"><a href=\"http:\/\/villagebim.typepad.com\/files\/topo.rvt\">Fichier Revit<\/a><\/span><\/p>\n<p>&#160; &#160; &#8211; <span class=\"asset  asset-generic at-xid-6a015391e15a28970b01bb08ae9264970d img-responsive\"><a href=\"http:\/\/villagebim.typepad.com\/files\/topocloture.dyn\">Fichier DYnamo<\/a><\/span><\/p>\n<p>Et encore merci&#160;<a href=\"http:\/\/therevitcomplex.blogspot.fr\/\">Marcello<\/a>&#160;!<\/p>\n<p>&#160;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Je dois vous l\u2019avouer, cet exemple n\u2019est pas de moi, je l\u2019ai r\u00e9cup\u00e9r\u00e9 de l&#039;\u00e9v\u00e8nement Autodesk University . C\u2019est un exemple propos\u00e9 par Marcello Sgambelluri&#160;sur l&#039;utilisation&#160;d&#039;une \u201ctoposurface\u201d de Revit. Voici l\u2019exemple : Dans Revit, il est tr\u00e8s difficile de placer des \u00e9l\u00e9ments qui suivent une surface topographique comme par exemple une cl\u00f4ture. D\u2019o\u00f9 l\u2019utilisation de [&hellip;]<\/p>\n","protected":false},"author":4760,"featured_media":2472,"menu_order":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[13,20,171,21,1384],"class_list":["post-944","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-non-classifiee","tag-autocad","tag-autodesk","tag-dynamo","tag-revit","tag-topographie","dhig-theme--light"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/posts\/944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/users\/4760"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/comments?post=944"}],"version-history":[{"count":0,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/posts\/944\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/media\/2472"}],"wp:attachment":[{"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/media?parent=944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/categories?post=944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.autodesk.com\/villagebim\/wp-json\/wp\/v2\/tags?post=944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}