Uploading your Dynamo Graph to Autodesk Dynamo Studio

Hi, today we’ll talk about uploading your Dynamo Graph to Autodesk Dynamo Studio. This is a continuation of my previous post about Dynamo Hackathon Challenge 01.

I will run you through the process of uploading your Dynamo graph and this process is actually straight forward.

First go to the link below. You can use the software for a 30-days trial period if your company don’t have a license yet to activate it. You will need to have permission obviously to have the software installed on your machine if you do not have full admin rights.

https://www.autodesk.com/products/dynamo-studio/overview

Once you have the software installed, run it as you normally do when opening a program.

The interface is the same when you launch Dynamo from within Revit. Using Autodesk Dynamo Studio, you have the ability to post your Dynamo graph in the cloud then a corresponding URL link will be provided which you can send to everyone who would like to see and navigate on your Dynamo graph finished product.

Here is how the Dynamo graph from the previous post:

If you also recall, I used dimensions in millimetres on my Inputs:

But I was having a problem visualizing it once I uploaded the graph on Dynamo Studio and to fix that I converted those Input dimensions to metres.

These are the only changes I made on this graph, the rest are all the same.

Now we are ready to upload it on the cloud.

Provide the necessary information:

And hit “Publish”

Then you’ll see a URL link for your Dynamo graph that you can distribute to all your contacts who are part of the design team.

If you want to see how your graph looks like on the web, click on “Visit”

The link requires webGL, so use Chrome not IE.

Here is the error I’ve got when I tried to open the link using Internet Explorer:

Once again, here is the link for those who would like to play around the Inputs.

https://dynamo.autodesk.com/share/594fd76187a6904902481c0b

Can I get thumbs up? How about clicking to Share this blog with your network. Leave a comment too. If you know a better way, by all means let me know. Thank you for dropping by.

If you want to create your own WordPress blog / website, signup by using the link below.

https://refer.wordpress.com/r/1852/wordpress-com/

Have a good day!

Cheers.

Allan Cantos

Dynamo Hackathon Challenge 01

Hello there. I trust all is well with you.

Today I’ll discuss about a Dynamo Challenge for Dynamo users within our company and we call this challenge as “dynamo hackathon”

First Challenge Description:

Part of the new state of the art research laboratory is plant equipment that services the building and is housed in several building adjacent to the structure. Each of these buildings has a distinctive flue extract tower that rises above the building.

We need to design a supporting structure for each tower however the dimensions of the tower are likely to change. Therefore the challenge is to create a dynamo graph that is dynamic, allowing adjustments to the width, depth and height to be changed by the user.

It is envisage that the tower structure will be formed from steel, beams, columns and bracing (see image below) so produce a graph that the user can assign the sizes of the elements.

 

Now let start the fun!

Based on the description given, we need to provide a node that the user can specify for the height, width and length of the structures.

First, look for the “Number Slider” node searching on the Library of by right clicking on the working area.

And place 3 of this and name it accordingly. I’ll leave it to you to provide the minimum, maximum and step values.

Next is to start creating the first column. We know that column consists of two nodes, the top node and the bottom node. To be able to have those nodes, we need to place a point. Let me assume that my first point or node is at (0,0,0) coordinates.

To place a point, search for “Point.ByCoordinates” node.

Without specifying the x, y and z values, the default values are x=0, y=0 and z=0.

Now we have created our first point/node.

Next is to add the other end point/node of the column which is offset by Z value relative to the first point and to do that, we need to have another “Point.ByCoordinates” node and connect the “Height of Structure” to “z” as shown.

Next is to connect those two nodes by a line to represent our first column C1. We need “Line.ByStartPointEndPoint” node.

Now we have created our first column.

Next step would be to offset this column in x-direction, y-direction and xy-direction which will represent the other 3 columns.

You’ll need this node:

The nodes that we need to connect to the geometry input are the two points so we need to create a list of point first. This will give us the other 2 points/nodes for column C2.

Again apply Geometry.Translate to the original 2 points and this time connects the Length node. This will give us the other 2 points/nodes for column C3.

And finally, for column C4:

Next, looking at column number 2, we need to connect those 2 points to create a column and in order to do that, I need to separate them first as Point 0 as my startPoint and Point 1 as my endPoint

Do the same thing for Column C3.

And finally, Column C4

Next, we want to create a beams to connect those 4 columns and at the same time specify the number of floors that this column can support. To do that, first I created a new number slider and name it NUMBER OF FLOORS as shown below.

Next is to divide the column into number of floors by adding a parameter and a node called “Curve.PointAtParameter” Assuming number of floors to be 6.

Make it 10:

Now do the same thing for the other columns and you should have something like this,

Next we are ready to add beams to each floor levels.

After that we are ready to add the cross bracings.

Then we will do the opposite side by starting the bracing from Column C02.

Now you can make a copy of this cross bracing to Y-Direction, which is our Length if you remember when we created the number slider.

Now it is completed, you can test it now by changing the length, width, height and number of floors.

As you can see, it is now dynamic and you have the full control on the sizes.

The final part would be assigning the Revit member elements.

And here is the completed Dynamo graph:

I am aware that there are many ways to model this challenge in Dynamo. I do have another version but it is not completed yet. I would be happy to see your own version by commenting and posting your own version if you don’t mind.

Thank you for visiting my blog and I hope this little tutorial helps you in developing your Dynamo skills specially those beginners like me.

Unless you try
to do something beyond
what you have already mastered,
you will never grow.

Ralph Waldo Emerson

(1803 – 1882, American essayist, lecturer and poet)

 

Have a great day!

Cheers,

Allan Cantos

Revit – Dynamo – Power BI Part 2 – Video Demonstration

Revit – Dynamo – Power BI Part 2 – Video Demonstration

In my previous post found HERE, you’ve seen the workflow of calculating the total tonnage of each building, save the calculated value to an Excel file that is link to your Power BI project and with just few clicks, your Power BI dashboard provided you an up-to-date information.

In this demonstration, I’ll show you how to create a breakdown tonnage summary of each structural elements in one of the building.

As before, can I get a thumbs up? How about clicking to Share this blog with your network. Leave a comment too. If you know a better way, by all means let me know. Cheers and thanks for watching.

 

Revit-Dynamo-Power BI – Part 2

Revit-Dynamo-Power BI – Part 2

In my previous post HERE, you’ve seen the workflow of calculating the total tonnage of each building, save the calculated value to an Excel file that is link to your Power BI project and with just few clicks, your Power BI dashboard provided you an up-to-date information.

What if your client wants to find out the breakdown tonnage of each element in one building? I believe you should have these values with you before coming to the meeting.

 

Image below shows the typical structural element that you can see in a building.
Let me run you through on how to create a dashboard for one of the building and for this demonstration, we will look at Building A01.
I am aware that there are some changes done to this model and if would be good to have the latest tonnage information of the structure on your Power BI dashboard plus a breakdown.
Let us have a review of the structural elements present the first time I ran the Dynamo script.
We have the following:
  •       Structural Floors (94 counts)
  •       Structural RC Beam (86 counts)
  •       Structural RC Column (565 counts)
  •       Structural Walls (258 counts)
 When I open the Building A01 Revit file, I have the following structural elements:
  •       Structural Floors (94 counts)
  •       Structural RC Beam (110 counts)
  •       Structural RC Column (548 counts)
  •       Structural Walls (258 counts)
  •       Structural Steel Beams (20 counts)

 CCreate a new schedule for Structural Steel Beams and it should look like the image below.
With the additional Steel Beams in the model, we need to add another line on our Dynamo to calculate its steel tonnage and to do that we can make a copy of one of the Group definition and rename it to, say “PBI – Structural Steel Beam Weight Schedule”
Select the view from the View drop down list.
Here is the completed node.
And we need to add one item on the list to accommodate the Structural Steel Beam as shown:
And connect your structural steel beam node to item4 and you are done for the total building tonnage.
Before we hit Run, we would like to have the breakdown summary as shown:
So we need to add some nodes to our Dynamo to provide us these values automatically.
In this demonstration, the table is created in Excel under new tab named “Tonnage Breakdown”
Then copy these nodes:
And replace the sheet name to “Tonnage Breakdown”.
Using Code Block, I’ve created these and will soon connect them to List.Create node.
Now let start with Structural Slab by connecting the calculated value (Math.Sum) to Divide node to convert it from kg to Ton.
Our item0 is SLAB, so let us connect this to List.Create item0 as shown:
Do the same thing for the rest and take note of the last one for Structural Steel Beams which you need to plug to item7.
For the rest of the items, just plug the respective Code Block nodes and you should have something like this:
Finally, connect your list to the data as shown:
Before finally hitting Run on Dynamo, check first the startRow and StartCol on your Excel file. The data should be written at Column 1 starting from Row 1 and in this case, our startRow and startCol values are correct.
Now hit Run.
And here is the result:
Here is the Power BI dashboard for Building A01, as you can see there are no values yet.
Now go to fields, right click on “Tonnage Breakdown” and hit “Refresh Data”
As soon as you do that, in a matter of seconds, your Power BI dashboard will provide you the up-to-date information.
Concrete Slab selected from the Element Type selection filter
Concrete Beams selected from the Element Type selection filter
Concrete Columns selected from the Element Type selection filter
Concrete Walls selected from the Element Type selection filter
Steel Beams selected from the Element Type selection filter
I am planning to create a video presentation demonstrating the procedures live soon.
Can I get a thumbs up? How about clicking to Share this blog with your network. Leave a comment too. If you know a better way, by all means let me know. Thank you for dropping by.

119th Philippine Independence Day

June 12, 2017
Independence day is an annual national day in the Philippines observed on June 12, commencing the Philippine Declaration of Independence from Spain on June 12, 1898 in Kawit Cavite, Philippines. Since 1962, it has been the country’s National Day.
For more info please check:
Some videos of the celebration in the Philippines:
Happy Independence Day!

Revit-Dynamo-Power BI Workflow

Hi there, here is a workflow of extracting data from Revit using a Dynamo script and publish the result automatically to an Excel file which then link to your Power BI project. With a few clicks of a mouse button, your Power BI dashboard will provide you the up-to-date information.
Can I get a thumbs up? How about clicking to Share this video with your network. Leave a comment too. If you know a better way, by all means let me know. Thanks.