No announcement yet.

Thoughts on node/graph cleanup

  • Filter
  • Time
  • Show
Clear All
new posts

    Thoughts on node/graph cleanup

    I'm working on a dynamo graph that utilizes the same dozen data points in different ways and I found myself getting annoyed with all of the wires going everywhere. I ended up created a code block that passes all of the data through it, much like a zip tie holding together a bunch of cables going to the same place. Each of the purple blocks on attached image are exactly the same, so there is some duplication, but i find it helps because i don't have to pan as far to wire the data. I was wondering if anyone does something similar or if there are other methods you have cleaning up and make things look organized.

    I've attached two images, one was in process of cleaning, and the other is the finished result.
    Attached Files
    Ryan Taube
    BIM Manager - Clayco Construction | Lamar Johnson Collaborative

    I've used something similar several times, to collate info going through nodes, or as a repeater to prevent leads going through other nodes (especially when something from my user input node isn't needed until late in the script)
    Julie Kidder
    Architect + BIM Director
    Hartman + Majewski Design Group


      I use this method very frequently now. I was using the inputs of custom nodes for that purpose, but quickly found that there's no viable way to debug in the custom node editor.
      Chris Ellersick


        In all honesty, if there is even a semblance of re-use (Or even not), it's often really good to package up together a set of nodes into an in-house package. That way, if it's doing a whole bunch of calculations it's zipped up in a way. It cleans up the graph a lot.

        Alternatively, you can use code blocks or wrap functions into python.

        My general rule of thumb (increasingly) is that if there is a single input and a single output to a whole bunch of stuff - wrap it up!

        Sol Amour

        Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
        Portfolio Website @ Cargo Collective


        Related Topics


        • Resize nodes?
          Is there a way to Re-size a node once it's been placed in a graph?
          Specifically, I'd like to stretch out some of my Watch nodes so I don't have...
          February 11, 2016, 06:34 PM
        • Clockwork Nodes Are amamzing.....but
          all of the sudden I do not know what is going on....

          My clockwork nodes are returning NULL...

          element.location is the first...
          January 18, 2017, 05:08 AM
        • Debugging Python
          Is there any good way to debug a Python node?
          I've got one that works if I pass a single value, but if I pass a list, it fails.
          February 26, 2018, 09:26 PM
        • Spring Package Interference Check node does not work
          hey all ,
          the node in the spring package does not work in revit 2020

          does anyone has any idea why it is not working?
          June 13, 2019, 06:58 AM
        • Create a selection set

          I'm testing out some code to create a Revit Saved Selection set which I'm going to use in another routine. I'm using the Clockwork package...
          December 2, 2015, 01:00 PM