All pages
Powered by GitBook
1 of 1

Loading...

Examples

If you are looking for examples on how to develop for Dynamo, take a look at these resources below:

Sample Repositories

These samples are Visual Studio templates that you can use to start your own project:

  • ZeroTouchEssentials: Template for basic ZeroTouch nodes.

    • Return multiple outputs:

    • Use a native geometry object from Dynamo:

    • Example property (Query node):

  • : Templates for basic NodeModel nodes and view customization.

    • Basic NodeModel template:

      • Define node attributes (Input/output names, descriptions, types):

  • : Templates for ZeroTouch, custom UI, tests, and view extensions.

      • Create a basic, custom UI node:

  • : Templates for advanced Dynamo package development using NodeModel.

    • Essential samples:

: A ZeroTouch library for creating text in Dynamo.

Case Studies

Third party developers have made significant and exciting contributions to the platform, many of which are open source as well. The following projects are exceptional examples of what can be done with Dynamo.

Ladybug is a Python library to load, analyze and modify EnergyPlus Weather files (epw).

Honeybee is a Python library to create, run and visualize the results of daylight (RADIANCE) and energy analysis (EnergyPlus/OpenStudio).

Bumblebee a plugin for Excel and Dynamo Interoperability (GPL).

Clockwork is a collection of custom nodes for Revit-related activities as well as other purposes such as list management, mathematical operations, string operations, geometric operations (mainly bounding boxes, meshes, planes, points, surfaces, UVs and vectors) and paneling.

Return null node if there are no inputs: Code

  • Create a function call: Code

  • Basic NodeModel view customization template: HelloGui.cs, HelloGuiNodeView.cs, Slider.xaml, Slider.xaml.cs

    • Alert the UI that an element needs to update: Code

    • Customize the NodeModel: Code

    • Define slider attributes:

    • Determine interaction logic for the slider:

  • Create a drop-down menu: DropDown.cs
  • Tests

    • System tests: HelloDynamoSystemTests.cs

    • ZeroTouch tests: HelloDynamoZeroTouchTests.cs

  • ZeroTouch examples:

    • Example ZeroTouch nodes, including one that implements IGraphicItem to affect geometry rendering: BasicExample.cs

    • Example ZeroTouch nodes for coloring geometry using IRenderPackage: ColorExample.cs

  • View extension examples: An IViewExtension implementation that shows a modeless window when its MenuItem is clicked.

  • MultiOperation
  • Multiply

  • Timeout

  • Geometry samples:

    • CustomPreview

    • SurfaceFrom4Points

    • UVPlanesOnSurface

  • UI samples:

    • Button

    • ButtonFunction

    • CopyableWatch

  • Code
    Code
    Code
    HelloDynamo
    HelloNodeModel.cs
    Code
    DynamoSamples
    UI samples
    CustomNodeModel.cs
    NodeModelsEssentials
    Error
    DynaText
    https://github.com/ladybug-tools/ladybug
    https://github.com/ladybug-tools/honeybee
    https://github.com/ksobon/Bumblebee
    https://github.com/andydandy74/ClockworkForDynamo
    Code
    Code
    WobblySurface
    Slider
    SliderBound
    State