{"id":191,"date":"2013-07-18T23:58:48","date_gmt":"2013-07-18T23:58:48","guid":{"rendered":"https:\/\/www.xrev.com.au\/news\/?p=191"},"modified":"2013-09-25T22:39:39","modified_gmt":"2013-09-25T22:39:39","slug":"bim-day-out-revit-formulas","status":"publish","type":"post","link":"https:\/\/www.xrev.com.au\/news\/bim-day-out-revit-formulas\/","title":{"rendered":"BIM Day Out &#8211; Revit Formulas"},"content":{"rendered":"<p>Xrev is currenty attending <a title=\"BIM Day Out\" href=\"http:\/\/www.bimdayout.com\/\">BIM Day Out<\/a> in Perth, Australia. \u00a0We have 2 speaking spots. \u00a0A lab on Revit Formulas and a discussion panel on Revit Manufacturer Content. \u00a0The first, from the feedback seemed to very successful. \u00a0I was a little concerned considering the complexity of the subject matter and the fact it had to be crammed into less than an hour.<\/p>\n<p>For this session, essentially I had setup a single family containing a number of issues you may face with content creation and how to go about using formulas to make a user friendly solution. \u00a0Below is the formulas we generated, for those that have the datasets and were unable to keep up or forgot to save&#8230;<\/p>\n<ol>\n<li>Stopping an array breaking\n<ol>\n<li>if(Task 1 Length \/ Task 1 Spacing &lt; 2, 2, Task 1 Length \/ Task 1 Spacing)<\/li>\n<\/ol>\n<\/li>\n<li>Control the number of\u00a0 connectors\n<ol>\n<li>if(Task 2 Connector,3,2)<\/li>\n<\/ol>\n<\/li>\n<li>Control elements based on Family Type selections\n<ol>\n<li>if(Task 3 Type = Task 3 Size 1, &#8220;1&#8221;, if(Task 3 Type = Task 3 Size 2, &#8220;2&#8221;, &#8220;3&#8221;))<\/li>\n<\/ol>\n<\/li>\n<li>Using Trigonometry\n<ol>\n<li>Task 4 Offset X * tan(Task 4 Angle)<\/li>\n<\/ol>\n<\/li>\n<li>Visibility that is mutually exclusive\n<ol>\n<li>Task 5 Value = 1, Task 5 Value = 2, Task 5 Value = 3<\/li>\n<\/ol>\n<\/li>\n<li>Formulas to display error messages\n<ol>\n<li>if(and(Task 6 Length &gt; 1000 mm, Task 6 Error), &#8220;Too big&#8221;, if(and(Task 6 Length &lt; 500 mm, Task 6 Error), &#8220;Too Small&#8221;, &#8220;&#8221;))<\/li>\n<li>or(Task 6 Length &gt; 1000 mm, Task 6 Length &lt; 500 mm)<\/li>\n<\/ol>\n<\/li>\n<li>Controlling a Void cut\/uncut\n<ol>\n<li>if(Task 7 Cut, 0 mm, 220 mm)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>For those with the datasets these will make a lot more sense.<\/p>\n<p>There was also a little trick that I wanted to get to but ran out of time. \u00a0 It is possible to hide\u00a0shared parameters from end users by editing the share parameters file.<\/p>\n<p style=\"text-align: center;\">&nbsp;<\/p>\n<div id=\"attachment_192\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.xrev.com.au\/news\/wp-content\/uploads\/2013\/07\/Hidden-Parameters.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-192\" class=\"size-full wp-image-192 \" title=\"Hidden Parameters\" src=\"https:\/\/www.xrev.com.au\/news\/wp-content\/uploads\/2013\/07\/Hidden-Parameters.png\" alt=\"\" width=\"600\" height=\"472\" \/><\/a><p id=\"caption-attachment-192\" class=\"wp-caption-text\">Hidden Parameters in a shared parameter file<\/p><\/div>\n<p>By changing the last integer to 0, you are effectively hiding the parameter from the end user&#8230;<\/p>\n<p>Finally, if you need to write lots of nested if statements it can be somewhat tedious. \u00a0I have generated an excel file that allows you to specify the values and the conditions and then there is a formula in the cell that can be &#8220;filled down&#8221; to write the Revit formula for you. \u00a0Then all you need to do is copy the bottom formula into your family and your done&#8230; \u00a0No need to worry about missing a bracket or syntax errors&#8230;<\/p>\n<div id=\"attachment_193\" style=\"width: 618px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.xrev.com.au\/news\/wp-content\/uploads\/2013\/07\/Excel-Script.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-193\" class=\"size-full wp-image-193\" title=\"Excel Script\" src=\"https:\/\/www.xrev.com.au\/news\/wp-content\/uploads\/2013\/07\/Excel-Script.png\" alt=\"\" width=\"608\" height=\"672\" srcset=\"https:\/\/www.xrev.com.au\/news\/wp-content\/uploads\/2013\/07\/Excel-Script.png 608w, https:\/\/www.xrev.com.au\/news\/wp-content\/uploads\/2013\/07\/Excel-Script-271x300.png 271w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><p id=\"caption-attachment-193\" class=\"wp-caption-text\">Excel Script<\/p><\/div>\n<p>Download the <a title=\"Excel File Download\" href=\"https:\/\/www.hightail.com\/download\/bWJyRFFaMHdoMlUxZXNUQw\">Excel file here<\/a><\/p>\n<p>Let me know if you find this useful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xrev is currenty attending BIM Day Out in Perth, Australia. \u00a0We have 2 speaking spots. \u00a0A lab on Revit Formulas and a discussion panel on Revit Manufacturer Content. \u00a0The first, from the feedback seemed to very successful. \u00a0I was a &hellip; <a href=\"https:\/\/www.xrev.com.au\/news\/bim-day-out-revit-formulas\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[26,9],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-promotion","tag-formulas","tag-revit"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":0,"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xrev.com.au\/news\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}