I had a good time at RTC back in 2016, it was awesome to catch up with the usual BIM crew and see what they are all up to. Hopefully I’ll get a chance to post in more detail about a few things I learned this time around… but for now, here are my 2016 presentations for you to check out.

My keynote presentation slides (why BIM is broken and how to fix it…)

My Dynamo presentation slides:

And the Revizto session that I ran with Michael Clothier:

Presentation and handout resources (including Dynamo dataset) are available in the folder here:
https://drive.google.com/folderview?id=0B1dGdRkpk2beZ3VRRUpiYVctakU&usp=sharing

Quite a momentous day!

You can download it at:
http://dyn-builds-data.s3-us-west-2.amazonaws.com/DynamoInstall1.0.0.exe

(or you can wait for the auto update 🙂

dynamoVersion1.png

 

location.png

Readme:
### 1.0.0 ###

– API Stabilization:  1.0.0 is a commitment to stable code that allows for smoother and more reliable movements from one version to another.  To more clearly express this, we have been moving to “semantic versioning” to illustrate the nature of changes in each release. We will be using the fairly standard version naming with an x.y.z system, where x incrementing represents breaks to the API (requiring developer refactors), y indicates changes that are still backwards compatible, and z are smaller bug fixes.  Package creators and maintainers are encouraged to assess changes to the previous code, which can be found here

https://github.com/DynamoDS/Dynamo/wiki/Dynamo-Node-Changes

https://github.com/DynamoDS/Dynamo/wiki/API-Changes
– Graphics performance enhancements:  see this post for details
https://github.com/DynamoDS/Dynamo/pull/6356
– Documentation: Along with new sections of the DynamoPrimer (http://DynamoPrimer.com), we have started an online documentation of the Dynamo API with a searchable index of public API calls for core functionality. This will be expanded to include regular nodes and Revit functionality.  http://dynamods.github.io/DynamoAPI/
– Licensing:  Dynamo Studio is now using a new version of the Autodesk installer that allows for easier access to network and token flex licensing tools
– Install:  we have created a separate installation for “core” Dynamo functionality, those tools used by all implementations of Dynamo, and Revit, and Studio installations.  This allows for the sharing of a common core of Dynamo code and packages.
– List Management:  Changes to “replication” or automated matching of different data streams in nodes and Code Block nodes eliminates the need for List.Map and List.Combine in many situations
– Send to Web: formerly known as Share Workspace, we have improved the ability to view and interact with Dynamo online with Customizers
– File Export:  Users can now author DWG files in the Translation section of Dynamo Studio.
– Direct Shape:  Dynamo in Revit 2017 can now take advantage of faster and more sophisticated direct shape creation.  In most cases, solid and surface geometry can be sent directly into the Revit environment as smooth (rather than tesselated) surfaces and solids, categorized to whatever is needed.  In the cases where a smooth element cannot be created, a tesselated (mesh) object is created, as was the case previously.

Bug Fixes
– An extensive list can be found here: http://dynamobim.org/incoming-bug-fixes-for-dynamo-1-0-0

Known Issues
– Listed here: https://github.com/DynamoDS/Dynamo/wiki/Known-Issues

1180.png

Also:
Dynamo Builds

For a while here on What Revit Wants, I was a bit worried I was writing about Dynamo too much… “Hey, Dynamo isn’t Revit, its just an addin!”

But guess what?

Now Dynamo is Revit, its right there on the Visual Programming panel, Manage Ribbon.

dynamo2017.png

If you were running Dynamo 0.9.2 prior to installing Revit 2017 (perhaps as part of Building Design Suite Ultimate 2017), you won’t immediately see Dynamo on the Manage Ribbon. After installing Revit 2017, re-run the Dynamo install package, and ensure that Revit 2017 is selected:

addin.png

Next time you launch Revit 2017, Dynamo should be in its rightful place, right there on the Manage ribbon, ready for you to jump in and start winning.

This recent post on Dynamo Nodes shows how a simple Navisworks Search Set can be built by Dynamo running inside of Revit:
Create Navisworks Search Set XML for Element Ids | Dynamo Nodes

In the first release, this node just uses Element Ids to build a long ‘orsearch set, but this basic idea could easily be extended and adapted to more closely connect Revit to Navisworks search workflows through Dynamo.

Here is a Screencast:

As you are probably aware, when moving from Dynamo 0.9 to 0.9.1 you lose backward compatibility… in other words, you can’t open 0.9.1 files in 0.9 or earlier.

backwardcompat.png

Before taking that step up to 0.9.1 and beyond, you may wish to apply a filename suffix to all of your DYN files, so you are reminded of this issue when you open a DYN. I have a single folder with subfolders containing most of my DYN files, and I added the suffix (082) to all of them at once with this method:

Install Advanced Renamer.

Add the Directory that holds all your dyn files:

add%2Bfolder.png

Then add a suffix to the filename:

Now, you basically have an inplace backup of files. When you open one of these dyns in 0.9.1 or newer, just remember that you should Save As in Dynamo, and then newly saved file will not be open-able in 0.9 or earlier.

At some point in the future you can then remove or upgrade all of these ‘older’ Dynamo files.

Brian Nickel recently sent through a link to the very Elk package for Dynamo, that essentially opens up web geographical data access to Dynamo and thus through to Revit for topography creation and similar.

It was already an established plugin for Grasshopper, but developer Timothy Logan has released a port for Dynamo which can be accessed through the Package Manager.

elk_dynamo-7256719

Elk HKS site:
Elk Mapping Plugin | HKS LINE

Heads-up from:
The Revit Saver: Dynamo – Elk for DynamoBIM by Timothy Logan

Quote from The Revit Saver:
Thank you to Timothy Logan for making Elk available to Dynamo users!

Here are his two videos for how to use the OSM data and Topographical data.

Elk for Dynamo – OSM from Timothy Logan on Vimeo.

Elk for Dynamo – OSM from Timothy Logan on Vimeo.

Some of the links referenced in the above videos:

https://www.openstreetmap.org/
http://dds.cr.usgs.gov/srtm/version2_1/
http://earthexplorer.usgs.gov/
http://www.opentopography.org/

I had this idea over the holidays… and while it is still in its infancy, I have already received some good feedback along the lines of “this is what people have been looking for…”

I have invited all of the top Dynamo Package developers to be Administrators on DynamoWorks, and as a team I hope we will be able to build up some good, useful, practical content on how to use specific custom nodes in real-world applications.

If you would like to be a co-author, feel free to contact me here or on Twitter, @lukeyjohnson.

Check the site out at:
https://dynamoworks.wordpress.com/
https://dynamoworks.wordpress.com/2015/12/25/what-is-this-site/

dynamoworks-9769364

subtitle: Most Revit hacks ever in one blog post??
Have you ever faced flex duct modelling problems in Revit? Revit fails to generate these in some cases, usually when the spline becomes too tight for the geometry engine to handle.

With a view to finding and correcting this, I built an audit tool that basically goes through these steps:
  • Collects a list of flex ducts in the current model
  • Checks their 3D geometry against what it should be (using a Volume calculation)
  • Reports a list of problem element ids
  • Overrides these elements to red in the current view
  • Isolate the elements in the Current View

It looks something like this:

Having established a list of geometry failure objects, what can we do to fix them? Well, essentially they are failing because the spline curve is too tight for the relevant duct or pipe diameter, so we need to rationalize or ‘smooth’ these curves out until we get to a point that the geometry works again.

So first of all, we need to get the driving points from the Revit MEP element, so that we can start playing with curves. At the same time, we should get start and end tangents, and Diameter too. I created this node in Python for this task:


You can see that I have added conversion input here, because the units coming out of the API were a little weird (back to the old feet units thing). Ok, now that we have points, we have to regenerate the driving curve and then play around with it a bit… it looks a bit like this:

You will notice I try both Nurbs and Polycurves, because sometimes either will fail. Using both seems to be pretty reliable.

Then, with some nice Nurbs curves in hand, we have to try and make some circular-ish sweeps along them. I actually sampled a number of circle profiles by 3 points, and used nurbs surface UV degree of 3, as this seemed to be the most ‘reliable’ form creation for strange paths. However, even this still failed occasionally, so I created some ‘backup’ forms (using only start and end circle profiles), and then I rolled them all together into one (hopefully) reliable ‘no nulls’ list:

Now we can basically take a set of Flex Duct elements (where Revit is failing to generate the right geometry), and smooth out and generate our own Flex Duct ‘form’ in Dynamo. From there, we have a few options to get it back into Revit:

  • ye olde but pretty reliable ImportInstance.ByGeometry or .ByGeometries
  • Dynamo 0.9 users can go with DirectShape
  • you could try beta Spring Nodes FamilyInstance.ByGeometry (thanks to Dimitar Venkov)
  • we can also use Mesh Toolkit to convert to Mesh, make Watertight, and export to file..

I wanted the most ‘Revit’ solution, because after all, this blog is about What Revit Wants! So for me, that was trying to get these forms into a family on the right category. First problem: there is no Flex Duct Family Template available, because that just isn’t allowed… so I had to make one using the IFC roundtrip (with custom IFC mapping files), then saving inplace to a component family, and renaming to RFT.

Now, with the Geometries in one hand, the Flex Duct Family Template in the other, and a wrapper node to run FamilyInstance.ByGeometry once per geometry, let’s see what happens!

Well, initial results from running the node weren’t great, but I noticed that the families were getting generated in the 3D View in Revit, and then disappearing… so I went to Revit and pressed ‘Undo’ and  all my nice new Flex Duct Families re-appeared!

Screencast:

Want to give it a try yourself? Here’s how to use the dyn:

  1. Go to a 3D view and select some Flex Ducts
  2. Open Dynamo, and the definition from link below, and press Run. Confirm there are no ‘failures‘…
  3. This should collect list of Geometry
  4. Connect the two orange boxes, 1) and 2)
  5. Press Run again
  6. This should have made families for you, using a random number as the family name
  7. Press Undo in Revit to make the families ‘reappear’
  8. Close Dynamo and save your project
  9. You may need to open individual families and set the Subcategory to something new so that you can override colours and materials in the Project.

Here’s one instance in the project:

This is the main definition:

This is the project browser list of families:

Needless to say, this workflow comes with as many disclaimers as possible, because we are:

  • using Dynamo before v1 (0.8.2 in my case)
  • using hacked family templates to
  • make component families on categories they shouldn’t exist on with
  • a beta custom node and then
  • working around some weird issues by pressing Undo after running Dynamo
  • etc 🙂

You will need Bakery package (version from around 9 December 2015, and its dependencies) to get all this working. Here are some other required resources for download:
Flex Duct family template and main Dynamo definition

Exporting these families using Navisworks exporter seemed to work ok, as shown here:

Other Prototype Imagery: