Dynamo view analysis

In this previous tutorial I demonstrated how to undertake various view analyses in Grasshopper with Ladybug. Some of these analyses can also now be performed in Revit within Dynamo. This tutorial will show you how to create a 2D isovist by creating filled regions and if desired, assigning the fitness of the view to a room parameter in which it is associated.

 

One of the simplest methodologies for undertaking a view analysis is to use an isovist. An isovist┬áis the volume of space visible from a given point in space. Isovists are naturally three-dimensional, but they may also be studied in two-dimensions. Back in June, Nate Miller updated his LunchBox Dynamo Package to include a new isovist node, ‘Intersection.CreateIsovist’. Furthermore, with the release of Dynamo 1.2.0, there is now the ability to create filled regions with the ‘FilledRegion.ByCurves’ node. This means that not only can isovists be analysed but they can be visualised and documented within a Revit project. This is beneficial for projects where visibility is importance, such as urban planning, shopfronts in a retail mall, or patient visibility from a hospital’s nurse station. In this scenario, the ‘fitness’ of the solution can be considered the area of the isovist. The larger the area, the greater the visibility.

dynamo_isovist_02_1900x950

 

To simply the workflow I have created the ‘FilledRegion.ByIsovist’ node in the BVN Dynamo package. The script requires an element to define the centre or eye location. I have used a setout point generic annotation family for this. Once the script is complete, this category can then be turned off via visibility graphics if desired.

 

 

Next we need to select the walls which will act as a boundary for the isovist. The easiest way to do this on a floorplate is to select a couple of walls and then isolate by category. This will allow you to select all the walls by dragging a rectangular window. (Note that you are unable to shift select multiple elements in Dynamo). The isovist will conform to any window or door openings in the walls.

 

dynamo_isovist_03_1900x850

 

Once the isovist is created, the geometry is cleaned and rebuilt. A filled region is then generated on the document’s active view using the filled region type defined in the input. The outline of the filled region will be ‘Thin lines’. If you wish to change the outline of the filled region your best bet is to use the ‘Element.OverrideColorInView’.

The custom node will also calculate the total area of the isovist and the room in which the point is located in. This value is then written to the room’s parameter as defined in the custom node’s input. To create a project parameter, go Manage > Settings > Project Parameters and create a new parameter. Ensure it is an ‘Instance’ parameter, the type of parameter is ‘Area’ and it is assigned to the ‘Rooms’ category. I have used the name ‘View Fitness’. The value of this parameter can be considered the fitness of the view analysis and is useful in comparing options.

5 Comments on “Dynamo view analysis

  1. Hi Paul,

    I don’t know what I’m missing; I did replicate all the nodes, but I wasn’t able to get the same results you had. Do I need to add parameters to the model?
    Thanks,
    Gustavo

    Like

    • Hi Gustavo. What error message are you getting? The parameter that you enter must be a parameter that is already in the project and should be of the right type.

      Like

      • Hi Paul, THANKS for your help!!
        I’m not getting any errors, I’m curios about “The parameter that you enter must be a parameter that is already in the project and should be of the right type” what do you mean with that? what parameter should i create?

        Like

        • Hi Gustavo. I am also getting an error message. There seems to be be a problem with the ‘Springs.CurveLoop.Simplify’ node which is nested into my node. This node is used to simplify the polycurve before the filled region is created. I’ve submitted a github request which you can follow here: https://github.com/dimven/SpringNodes/issues/29#issuecomment-320148354

          In the mean time you might just want to edit the node and remove this component. It will work but the filled region will have lots of little segments. I’ll update the node once I know exactly what is causing this issue.

          For the parameter creation, go to Manage>Settings>Project Parameters, and create a new project parameter. Allocate it to the ‘Room’ category. Make sure it is set to instance, not type. And the type should be ‘number’ or ‘area’.Whatever name you give to this parameter, use this in your Dynamo script (ensuring it is exact – case and all).

          Let me know how you get on.

          Like

          • Hi Gustavo
            I have updated the node in the latest version of the BVN package (v1.4.6). There were some problems with the dependent packages, namely LunchBox and Springs. You need to have the latest version of easy installed for it to work correctly – Lunchbox 2017.8.7 and Springs 121.0.2. I’ve also included some more info in the tutorial around the parameter creation. Let me know if you have any more issues.

            Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: