torsdag 17. november 2016

Ammo: Sliding Windows - Python tip of the day

Just a quick Python tip of the day.

I regularly find my self in the position of needing to slice lists with "sliding windows"

Like if I have the list {1,2,3,4,5,6,7,8} I would like to return {{1,2},{2,3},{3,4}..etc}

Just found this great way of doing it in dynamo. (I'm sure there are many ways of doing it, but quite simple this one anyways.)



tirsdag 25. oktober 2016

MeshToolkit: Terrain analysis in Dynamo

Just a quick showoff of the new mesh coloring possibilities in MeshToolkit v1.2.

Mind you that there is two different meshtypes in Dynamo and the MeshToolkit doesn't provide a converter between them unfortunately..

But the Springs packages does however! :)



EDIT:

Here's some links to the datasets used above + some extra analysis "tools"

RVT-file: Test_Topography

DYN-file: Mesh Analysis

mandag 24. oktober 2016

The Player: Dynamo for the masses

Revit 2017.1 is out and the best summary you'll find is over at the Revit cat: http://revitcat.blogspot.no/2016/10/whats-new-in-revit-20171.html

The biggest news would be the inclusion of the Dynamo player. This is a brand new tool located right next to the Dynamo icon on the manage pane focused on being a "player" for all your dynamo scripts:


Since the majority of Revit users in any firm is still not very proficient in Dynamo, this means that they can use the scripts that others have created without the hassle of opening dynamo. Awesome!

Comparable to Dyno: http://dyno.arcprojects.ru/  but a cleaner user interface in my opinion: 


Pretty basic. Set script folder, refresh, filter functionality and PLAY! :) You can also edit the scripts by hitting the pen icon and Dynamo will open

But, because there is a but, it only works for scripts with OOTB nodes.The script can't contain any custom packages. On the few test I've done it doesn't seem to work even when the user have these packages installed on their computer, unfortunately.

Still, with a bit of converting and copy/paste you can create scripts with user input as well. The little script below number elements based on a spline running through them. The functionality in the Python scripts below is copied from the Springs and Clockwork packages.

And the results: