Announcement

Collapse
No announcement yet.

Thoughts on node/graph cleanup

Collapse
X
 
  • 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

    #2
    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

    Comment


      #3
      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

      Comment


        #4
        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

        Comment

        Related Topics

        Collapse

        • 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, 07: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, 06: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.
          Without...
          February 26, 2018, 10: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?
          and...
          June 13, 2019, 07:58 AM
        • Create a selection set
          Hi,

          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, 02:00 PM
        Working...
        X