Revit/Dynamo – Tunnel Modelling by sweep

Hi,

First of all, I’m new to Dynamo, and this is one of my first scripts.
I have an Excel document with coordinates I have taken from Civil 3D. I’m bringing them into Dynamo, and then I want to create a sweep along those coordinates with a tunnel profile I have created.

The problem I’m having is that Dynamo is not generating the sweep with the script I have made. I also don’t want the sweep to rotate along the path. (If you use a sweep in Revit along a sloped, bendy path, it rotates the sweep about the line slightly.)

Would anyone be able to give me some pointers, please?

We transfer link below has the Dynamo file, excel file and RVT family im trying to use as I couldn’t upload them.

1 Like

Hi @TLUK and welcome…many ways it can be done i think…here is one, just a fast exemple…where i try get the curves from profile family and transform the coordinate system

you can get the curves this way here

Thanks to @Kulkul :wink:

2 Likes

Thank you for your help!

Hi @sovitek I am a road engineer and I’m trying to adapt your dyn for Civil 3D to make road markings (firstly create continuous solid along 3dpolyline and then I’m gonna try to find a way to splice it in intervals and delete every 2nd). But I got stuck at two code blocks - there is an error, that polycurve and coordinate system cannot be used as input data here. I have attached my screenshot and wetransfer link: Unique Download Link | WeTransfer

Do you have any suggestions on why the script isn’t working for me? I am very much a beginner in Dynamo

Hello @LasmaDzintare and welcome :wink: yeah basicly it should work there as well, but dont do so much in c3d, guess you have better luck with create a new topic, in categori C3D and share your material there as well and im sure some of these guys can help :slight_smile:

Thank you, I will do so!

@sovitek Can you please share your original dyn file (the link has expired) - maybe I connected some wires with the wrong node, it is hard to tell from the picture.

sorry dont have it anymore but here is something you can play around with,but build with a curve from revit…probably another way in c3d maybe… and i recommend go through primer if you are very new…

forum loft.dyn (63.8 KB)

or try with coordinate system by point, but sometimes i have issue with direction with that depends on the path nurbscurve how much its skew, the most stable for me is actuelly tangent at parameter and normal and vector cross…but probably just me :wink:

Thank you very much

1 Like