When importing Shapefiles to C3D there are no Arcs in Polylines. Arcs, don’t work in SHP files, SHP was not made for it. But, when working with alignments, cable-lines and more, we like to have them in our drawings.
Polylines with segmented arcs:
- Have segments with the same lengths (with some tolerance) and their angle different.
- When S shaped (2 arcs), the start segment of the 2nd and the end segment of the 1st arc have the same length and angle.
- Sometimes the centerline comes through DWG and there might be some arcs in it.
With this information I created this probably way to big script. It doesn’t always work, specially with rly small arcs and lengths (overkill or weed might be needed). But it creates new lines for me in most cases.
It can be made smaller, combine certain node-groups, but this gives me the power to check certain steps a little easier.
Todays polyline (coming from SHP) started out with 963 vertices,we ended up with 324 and it generated 112 arcs. Yes, there is a small change in the length, always check and re-check (!).
Anyway, wanted to share. Enjoy.
line to arc V1_tolerance on length.dyn (286.3 KB)

