torsdag 29. januar 2015

Dynamo and space trusses: It's all in the Zip Lists

When posting yesterdays picture I thought that an elegant solution for my spaghetti monster of a definition was far off, but thanks to Colin McCrone and his awesome Zip lists node, I'm able to share it with you today!

I think it's big letdown that the node at this moment have just been downloaded a mere 22 times.. Well I'm going to show it off some of it's uses here, and I hope that it will be a eye openener for anyone operates with trusses at least.

See, a stumbled upon a problem when entering the world of parametrized trusses. the diagonal beams or braces..
I don't think I'm going to explain it fully in text but have look at what I used to do in some way or: another:

It works, but will still create a larger definition than needed.

So, enter Zip list node.

This node zip together two lists in every other fashion. Like this: {A,B,C,D} and {1,2,3,4} as inputs will return {A,2,C,D}

Resulting in the same definition looking like this:

A bit tidier I think.

So to the truss as I've showed you in the former post. It's still a rather large definition so if you got any suggestions, please message me! :) Also I could have shortened it down quite a bit by using code blocks for the most part, but I tend to lose track if the definition get too "programmy"

Part 1:

 Part 2:

Part 3:

In this example I've imported it to Revit as beams, I guess the next step would be to import it to Robot and get it calculated! :)

As always I haven't described in text what I've done, I am more of a show and not-so-much-tell guy I guess. However, if you have any questions feel free to contact me!

And a Screencast as usual:

3 kommentarer:

  1. Denne kommentaren har blitt fjernet av forfatteren.

  2. Hey, Jostein Berger Olsen

    I'm an architect student and I've just followed through your 'tutorial' for all 3 definitions. This is my first time using Dynamo and your post has been very helpful in learning.

    However while I can understand the first main 2D trusses, the third is a bit too complex for now. Ultimately I would like to be able to code cool things myself. But I don't know how to learn to code for Dynamo. I was wondering if you could guide me on learning how to learn?

  3. Thanks for your reply! Well, head over to the "Learn"-page on and you will find plenty. If you read, and follow the examples, of the awesome gitbook over at as well, you'll be well on your way! And then it's just trial and error from there on: find a node, plug it into another, see if it's working. And maybe ask over at the forum when you're stuck! Good luck, I think Architectural students with competence in this field will stand out in the crowd! :)