Mutiple feature line with multiple segment labeling

Hi folks, I’m trying to label all feature line in the drawing at once by multiple line/curve segment but through dynamo I found previous post that used featureline.pointscount, but this node is not available any more I attached my try to replace it but no clue,

FLL.dyn (18.4 KB)

Hi @mohamedelkady41,

There are a few ways to accomplish this task, here is how I would go about it. This method takes into account multiple segments on a feature line, which when I recreated the screenshot it wasn’t doing.

thanks, Devin, @DevinLJackson for your reply, I’ve tried the same way u went through, but still not working

FtrLineLabel.dyn (54.4 KB) Take a look at this and let me know if this helps.

1 Like

Can you expand all the list and post the error message as well please?

GeneralSegmentLabel.ByObjectPoint expects argument type(s) (Autodesk.AutoCAD.DynamoNodes.Object, Autodesk.DesignScript.Geometry.Point, string, string), but was called with (Autodesk.Civil.DynamoNodes.FeatureLine, Autodesk.DesignScript.Geometry.Point, Camber.Civil.Styles.Labels.General.GeneralLineLabelStyle, Camber.Civil.Styles.Labels.General.GeneralCurveLabelStyle). NonOverloadMethodResolutionError.html , I attached the dynamo graph as well

@DevinLJackson

FLL-001.dyn (18.1 KB)

So it looks like your issue is that your are passing the style as a style object, and not as a string of the name as it is asking for. Since you are using the Camber nodes, you can add a Style.Name node between your dropdown and the label node.

It is better , support your question

An example of an CAD drawing

It worked smoothly thanks @DevinLJackson

1 Like

I tried but file size was big, I will try to make CAD simple file next time, Thanks @hosneyalaa

FL-Label.dyn (20.7 KB)
I followed your suggestion exactly. I’m not sure what this isn’t working for me.

Hi Daniel,

So you are using Camber label nodes, and my example uses the out of the box segment label node. If you check the error message like we did in the examples above, it will tell you what inputs it requires. For the label node you chose, it would look something like this.