How to add your knowledge

Example 01: Create Point

    Table of contents
    No headers

     

    Goal: Learn about Dynamo user interface concepts, placement of nodes, creating new wires and removing/remapping existing wires

    1. Launch Vasari.
    2. Click  File:Vasari/enu/Community/Works_In_Progress/Dynamo_for_Vasari/Example_1:__Create_Point/V.png > New > Family> Mass.rft
    3. Go to Add-ins tab and launch Dynamo
    4. From the Dynamo File Menu, go to File/Samples/ 1. Create Point
    5. Notice a few nodes (NumberXYZ and Ref Point) in the workspace. Run to create a single Reference Point at 0,0,0.
    6. Select and move nodes by using the left mouse button, the right mouse button to delete
    7. Now we will learn how to re-wire the workspace to add more inputs:
      1. From the Component Bar, find the Number node by searching or expanding the Primitives Group
      2. Drag and drop a Number node into the Workspace
      3. Find the Number Slider node and add that as well
      4. On the XYZ node, select the end of the wire connecting to the Y port. Drag it off into space to disconnect. Do the same for the Z port.
      5. Connect the new Number node to the Y port and the Number Slider node to the Z port

    ex1-2.png

    1. Now we are ready to re-run the workspace. Turn on Run Automatically checkbox and press Run. Notice a Reference Point has now been placed in the Revit view.
    2. Now experiment with dragging the Number Slider input, notice the Reference Point moves up and down in the model view. Dynamo is automatically updating the Revit model via the Revit API as you make modifications to the visual programming workspace.