Monday, April 20, 2015

How to Get a Centerline of a Structural Column Using DynamoBIM

I wanted to make this quick post and explain how I have extracted the centerline of a structural column. There are some Dynamo Custom Nodes that do not allow the Physical Column centerline of curve to be extracted.
If you want to extract the centerline of a column then simply follow these 5 steps below.

1. Select the Physical Structural Model
2. Extract the Geometry using the "Element.Geometry" node
3. Place vertices at all column locations
4. Covert all the vertices to points
5. Add the "LineByBestFitThroughtPoints" node to extract the centerline of the column
The image below summarizes this process


Note that all these nodes shown will create only one curve via the analytical model and also it extracts the centerline of MEP Piping, and Ducts. If you want to do that then simply select the MEP system family instead of the Structural Column family and enjoy! 

Thursday, April 16, 2015

How to Get the Worksharing Status of a Revit File (Central, Local, or Not Workshared) Using DymamoBIM

If you want to get the worksharing status all you do is simply open up the .rvt file using DynamoBIM's powerful string reading tools and follow the steps below


1. Open DynamoBIM
2. add a file path node and select any Revit PROJECT (.rvt) file
3. add a file.frompath and file.readtext node
4. add a String.Split node and add the following string as shown in the image below
5. extract the second entry in the list as shown.

Confused? dont be. Its easy. DynamoBIM is essentially opening up the .rtv file in notepad and reading the text and isolating the part that starts with "Worksharing" and ends with "User" It is written with spaces in the .rvt file so that is why there are \0 between each letter in the code block because "\0" designates a space.

Good luck.
Note that if your Revit file (.rvt) file is really large then it may take a while for DynamoBIM to read all that text... so be patient!

Saturday, April 11, 2015

How to Get The Revit Version and Build Number Using DynamoBIM.

If you want to get the version and build number all you do is simply open up the .rvt file using DynamoBIM's powerful string reading tools!

1. Open DynamoBIM
2. add a file path node and select any Revit PROJECT (.rvt) file
3. add file.frompath and file.readtext node
4. add String.Split node and add the following string as shown in the image below
5. extract the second entry in the list




Confused? dont be. Its easy. DynamoBIM is essentially opening up the .rtv file in notepad and reading the text and isolating the part that starts with "Revit Build" and ends with "Last" It is written with spaces in the .rvt file so that is why there are \0 between each letter in the code block because "\0" designates a space.
Now go out and get those Revit versions.
Good luck.
Note that if your Revit file (.rvt) file is really large then it may take a while for DynamoBIM to read all that text... so be patient!

Tuesday, April 7, 2015

How to keep north arrow symbol aligned with project true north in Revit using DynamoBIM

If you have rotated True North in Revit and you want your North Arrow Symbol to always point to True North when displaying PROJECT NORTH in your plan view then use DynamoBIM!
The True North angle is stored in the project base point....simply access it and set it to the angle on the north arrow symbol. Its easy!

Follow the steps below 
1. create  a north arrow family that has an angle parameter called "Angle to True North"
2. Place the north arrow family on a plan view that has the Project North orientation displayed
3. Turn on the Project Base Point on the plan view
2. open DynamoBIM and place the following nodes shown in the image below
This is a "simple" method to get one north arrow to align with one plan view.
If you wanted to perform this on multiple sheets then you would have to select the north arrows by family type not by "select model element" and same is true for the project basepoint.
If you dont like the method above then you could always rotate the north arrow manually.
Good luck!


Friday, April 3, 2015

How to Scale Any DynamoBIM Geometry

Its easy to scale any DynamoBIM Geometry
If you use design script then it only takes one line of code!
Follow the steps below

1. add the following designscript code in a Code Block in DynamoBIM
    ANYNAMEYOUWANT.Scale(SCALEAMOUNT)
2. Wire any DynamoBIM geometry into the input port on the code block
3. insert any scale value you want and watch is scale!
This process is summarized below



Note that the Dynamobim geometry is scaled based on the geometry origin. If you want to scale about a different origin point then you have to use a different design script. Also note that this process only scales DynamoBIM geometry.

Wednesday, April 1, 2015

How to create levels in Revit using DynamoBIM

Its easy to create levels in Revit using DynamoBIM.


If you use design script then it only takes two nodes.
The image below summarizes this process.
The key is to use range values that I discussed in a previous post here and then multiple levels will be generated.


This example only shows levels that are assigned a level name. There are other nodes that create Levels however this is the simplest. 

Note that if you create the first level manually and name it "say level 1", when DynamoBIM is ran for the first time it will name the levels in order. Its very similar to creating Grids as shown in this post.
Easy? Good! 
I hope this helps and good luck creating Levels.

Tuesday, March 31, 2015

How to Use IF Statements in DynamoBIM

Its easy to use IF Statements in DynamoBIM.
All you need if 4 components

1. two nodes to compare. These are usually in the form of values, For example x=1 and y=2

2. The "Operator" Node This node compares the values in part 1 based on the operator. There are many types of operators. For example "==" means equal.

3. two nodes to define what should be done if False or if True (These nodes could be any node not just Text)

4. The "If" Node

These 4 components are summarized in the image below.



Its very simple as long as you remember to use the OPERATOR NODE that has preset comparative statements. If you cant not find them on DynamoBIM do a search for Operators in the search bar.
Note that IF Statements will not allow for "looping" in DynamoBIM. You could think about it as a one time comparison. Also what may seem confusing is the "test" input port on the If Node. That is just an operator node as discussed previously.

Good luck Comparing and If Statement..ing