How to provide offset for the text to placed along the alignment without overlapping

Hi,
I have created the label using dynamo,which has been placed according to coordinates along the alignment but i have to place it along the alignment with some offset.
I have attached the screenshot of the placed label but i have to give offset so that it comes beside the alignment

Hard to say without the graph. How do you create the insertion points for labels? There should be a option to add offset as well.

HI Sir,
I am Attaching the dynamo script
curvelabel.dyn (48.3 KB)

1 Like

I think everything looks correct. except this. You add a text style to Layer instead of the Layername

Hi Sir,
This solution gives same placement i.e on the alignment but I want to give offset such way its away from alignment

You can edit the insertion point coordinates before feeding them to the Create Text node.

Basically, you need to figure out an algorithm to find the right direct for each label. Depending on elements, you can try to use normal vector or a tangent formula. At the end, I would use Geometry.Translate(distance, direction) node for the insertionPoint input to set the new location of my label.