Hello everyone,
I’m facing a challenge and would appreciate any guidance.
I created a polyline from a set of coordinates representing an alignment. I would prefer not to convert the polyline into a Civil 3D alignment because the resulting stationing may not correspond exactly with the original polyline vertices.
My goal is to extract coordinates for points offset 10 m to both the left and right of the polyline, from the start point to the end point, at specified intervals.
I have been exploring Dynamo for this task and looked for nodes such as Curve.Offset, but I have not been able to find a suitable approach.
Has anyone used Dynamo to generate offset points directly from a polyline without converting it to an alignment? Any suggestions on the nodes or workflow that could accomplish this would be greatly appreciated.
Thanks in advance for your help.
You could get the PolyCurve of the Polyline in Dynamo and find the CoordinateSystems along this Curve. Then add a Y vector (or X, one of both is perpendicular to that point) and a distance, and you have your offset point. Negative distances are left sided.
The Civil Nodes package has nodes to create an offset directly of a Polyline and you can collect the vertices of that, but the offset remains in the drawing.
are you able to share the nodes connection kindly, will really appreciate, im struggling on how to make the nodes connection and how to see the LHS and RHS offsets coordinates forming, Thanks
Hola amigos buenas!
amigo @oliverkisera you need the package Arkance Systems to get the node Polyline2D.Vertices, like this you will be able to check if you have same amount of vertices in the original polyline and the offset one!!
Please try the below, I’m not sure if this is quite what you’re after but hoping it would at least give you an idea of how the nodes would be assembled for something like this.
In theory it should be this, but unfortunately the sub-curve direction bug is still not fixed in Civil 3D. So when the curve is counter-clockwise, the segment is mirrored in the Z-direction and you get the locations on the wrong side:
If the offset is always the same on both sides, then it does not matter, You can duplicate the last nodes and get the other side points like this:
Which result in this:
Another approach can be done with The Civil Nodes package where you collect the angle of the segments and request for polar points along each segment. An example is found in my blog (it is written in Dutch but there is a translation button on top):
Parking Lots design: