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,
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.
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
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.
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.