Labeling Multi-Segment Feature Lines

Thank you very much for your work on Camber!
I’m a cad tech with little programming experience but I’ve been able to hack together some useful scripts. Reading the description of the GeneralSegmentLabel.ByObject it sounds like it is capable of labeling multi-segment feature lines. I’m assuming it can add a label at the midpoint of each segment but am failing to understand how to set it up or implement a ratio range of [0,n]. Currently my script only creates one label per feature line. Any pointers would be greatly appreciated.

Thanks!

Hi @dlarson,

You’ll just need a short expression to generate the list of ratio values. Something like this should work:

The result:

2 Likes

Thank you very much! This will save a lot of time when grading.
I attached the script in case it helps someone else.

2 Likes

6 posts were merged into an existing topic: Camber Feedback Thread

I’m new to Dynamo. I’m trying to build this script from scratch using the latest versions of Civil 3d Toolkit and Camber. But I can not find the “featureline.byobject” node anywhere in my search. I don’t understand what I’m missing.

Civil 3D toolkit will not work in Civil 3D 2025 and newer. You’ll have to find an alternative path.

Make Dynamo packages great again

Good to know. Thank you for the explanation.

@DanielYin311 if you’re using latest versions of Civil 3D, you won’t need the FeatureLine.ByObject node. You can just select the feature lines and then proceed with the rest of the graph.

1 Like


Top path if you want FL from Polylines
Bottom path if you need FL from Alignments