{"id":432,"date":"2018-04-30T14:46:28","date_gmt":"2018-04-30T13:46:28","guid":{"rendered":"http:\/\/pythoncvc.net\/?p=432"},"modified":"2018-04-30T14:44:34","modified_gmt":"2018-04-30T13:44:34","slug":"pyrevitmep-transition-between-2-elements","status":"publish","type":"post","link":"https:\/\/pythoncvc.net\/?p=432","title":{"rendered":"[pyRevitMEP] Transition between 2 elements"},"content":{"rendered":"<p>Someone told me that the common add-in they were using to make transition between 2 elements was discontinued in Revit 2018. So I made mine I&rsquo;ve been surprised about how easy and short it is :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">with rpw.db.Transaction(\"Create transition\"):\r\n    doc.Create.NewTransitionFitting(connector1, connector2)<\/pre>\n<p>So the only thing you need is to prompt user to pick 2 elements (targeting desired connectors) and it is exactly what I described in <a href=\"https:\/\/pythoncvc.net\/?p=417\">my previous article<\/a>.<\/p>\n<p><iframe loading=\"lazy\" title=\"[Revit] Transition between 2 elements\" width=\"620\" height=\"349\" src=\"https:\/\/www.youtube.com\/embed\/C2PZgXclG0Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Someone told me that the common add-in they were using to make transition between 2 elements was discontinued in Revit 2018. So I made mine I&rsquo;ve been surprised about how easy and short it is : with rpw.db.Transaction(\u00ab\u00a0Create transition\u00a0\u00bb): doc.Create.NewTransitionFitting(connector1, connector2) So the only thing you need is to prompt user to pick 2 elements [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[155,80,34],"tags":[109,52,146,131,165,167],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-pyrevitmep","category-python","category-script-en","tag-fittings-and-accessories","tag-mep-en","tag-pyrevit-en","tag-revit-api-2017-en","tag-simple","tag-transition"],"_links":{"self":[{"href":"https:\/\/pythoncvc.net\/index.php?rest_route=\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pythoncvc.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pythoncvc.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pythoncvc.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pythoncvc.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=432"}],"version-history":[{"count":1,"href":"https:\/\/pythoncvc.net\/index.php?rest_route=\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/pythoncvc.net\/index.php?rest_route=\/wp\/v2\/posts\/432\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/pythoncvc.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pythoncvc.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pythoncvc.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}