Creating Polyline offset from Alignment

Hi all,
Very new Dynamo user here. I am a bridge engineer in MA trying to find ways that my team can automate or at least speed up some of our design / drafting tasks. We use AutoCAD C3D pretty exclusively (i.e., we do not use Revit at all) - it’s what our clients use and require that we use.

I think creating framing plans of our bridges might be something that Dynamo could help with, but I’m having trouble figuring out the first step. The first thing we usually do after getting the alignment from our highway team is to offset it to create the outer “edge of deck” lines, and then figure out the girder spacing between those lines. So, what I really want to do is figure out how to offset an alignment (creating a polyline) between two stations. Any help or ideas on how to do this would be greatly appreciated!

1 Like

Checkout @mzjensen recent example which might be similar application.

Hi @betsy.kirtland,

If you haven’t already done so, the first thing you should do is download the Civil 3D Toolkit package. It has several additional nodes that make Dynamo much more usable in Civil 3D, including a node to create polylines.

Here is an example for you to try as you get going.

BridgePolylines.dwg (956.1 KB)
BridgePolylines.dyn (97.6 KB)

6 Likes

Thanks, @KirkWM, but I don’t think this is quite what I’m looking for. I am hoping to avoid using Excel for this purpose.

Thank you, @mzjensen !! This seems to be exactly what I’m looking for. Much appreciated!

@mzjensen if you have a moment, could you explain to me why the “get planes at bridge start and end” and “intersect with offset curves” are necessary? I can understand every other part of the code except for those. Thanks in advance!

Sure thing. My thought process was to lay out the graph in a similar way to how I would approach the process in Civil 3D. Here’s what that would look like:

  1. Offset the alignment to create the girder and deck polylines
  2. Draw lines perpendicular to the alignment at the bridge start and end stations
  3. Trim the polylines from step 1 using the lines from step 2

The thought process is the same in Dynamo, except that trimming geometry is a little more work. In Civil 3D the user chooses which side of the ‘cutting’ edge to trim with a mouse click, but in Dynamo you have to specify a point on the side that should be removed. So the process in Dynamo is like this:

  1. Offset the alignment to create the girder and deck curves
  2. Create planes perpendicular to the alignment curve at the bridge start and end stations
  3. Get the intersection point of the plane with each girder and deck curve (this provides the ‘cutting’ location the same as step 2 above)
  4. Trim one side of the curves first, then trim the other side

As with most workflows, this isn’t necessarily the only way to do it :slight_smile:

2 Likes

Thank you! I didn’t realize that Dynamo needs planes for trimming. That explains it.
Now I’m off to try to come up with ways to modify the code to allow for skew angles & variable girder spacing. Wish me luck!

Not quite…the Geometry.Trim node won’t actually work directly with a plane. That’s why I was intersecting the planes with the lines to get points, and then those are used as the geometry to trim with.

1 Like

Hi @mzjensen, I have spirals on my alignment and it is not drawing the polylines. Got a solution to this?

Ben

Does the AlignmentExtensions.GetGeometry node successfully return the polycurves? If I remember correctly it will tesselate the spirals to a series of line segments. But if it gets a nurbs curve then I don’t know if the PolylineExtensions.ObjectByGeometry node will work.

Yes, it does.
This is the error I am getting {Warning: Geometry.Trim operation failed. PolyCurves may be branching} when the offset is set to a non-zero figure.

Is the geometry scaling set to medium?

It is.

Sometimes that error comes from having the alignment style when the line extensions are turned on. If you turn it off is should work better but I’m not too confident in it handling spirals.
image

1 Like

ah it did work :smiley:

1 Like

yes it does tesselate them

Hi @mzjensen this works great in plan, for an alignment with horizontal curves. However it does not seem to work on an alignment with vertical curves as well. I get an error that the join curves into poly curve node results in more than one wire.

Hi @Astrid.za,

I’d be surprised if vertical curves are causing an issue. This workflow shouldn’t have any interaction with profiles.

Hi, I just finished reading the topic and tried it, it works perfectly, but now I’m having a problem when I want to create polylines like the image below from an existing alignment but I still don’t understand how to do it. My idea is to create polylines that are trimmed according to the chainage’s ticks and the input data is taken from the excel file. I’m still quite new to dynamo and hope anyone can help, I’d greatly appreciate it.