jueves, 28 de julio de 2016

Curve Section in Revit

First of all, right now there is no way to create a curved section in Revit even through the API., sorry! But there is a way to fake it.

Using Dynamo we could create a series of sections following a curve in the model or even a model line. For this we’ll use Luke Johnson’s Bakery package which contains the node “Revit Section View at Line”. The node uses a Revit Line as path to create a section in the model.

First thing we need is to get our Revit Line. We’ve two ways of doing it, using a Model Line or an edge of a Revit Element.

Model Line:
Using the node “Select Model Element” we’ll select the Model Line and translate it into a Dynamo Curve with “Element.Geometry”.

Select Model Element + Element.Geometry
Edge of a Revit Element:
Select the edge you want with the node “Select Edge”. No need to convert it because Dynamo understands it’s a Curve type.
Select Edge
Now that we have the curve we need to split it in curve chords. More segments we have, more detailed is the curve section we want to create.
We'll split the curve using "Curve.SplitByParameter". It needs a list of 1/n numbers to divide the curve. For this we create a list from 0 to 1 - start and end of the curve - and the the parts we want to split it. It should be written as follows.


0..1..1/x;

Curve.SplitByParameter
Now that we have our curves we need to create the lines for the section paths. With the end points of the curves we make a line by start and end points and then we use it to create the model line.

Create a model line with the ends of the curves

Now we are ready to create the sections with "Revit Section View at Line" node. By default it will create a section with 3000 units height and 100 Depth. You could change it as you need.


The final step is to erase the model lines we've created using "Tool.Eraser"

As final result we will get a series of sections following the curve. Just need to place them in a sheet and we are ready to go.


Here you will find the dyn file for you to use, I've added a formula with a boolean to be able to choose if use a model line or an edge to get the curve


2 comentarios:

  1. I am trying to get a curve section in the revit model and find that you have been do it in dynamo, but i can't download your dyn file, so can you help to send your dyn file to 174602479@qq.com, thank you very much.

    ResponderEliminar
  2. Este comentario ha sido eliminado por el autor.

    ResponderEliminar