Hi everyone,
Is there any Dynamo script, LISP routine, plugin, or other automation tool available in Civil 3D for arranging labels automatically?
For example, I need to:
Move dragged labels into a clean arrangement
Maintain proper spacing between labels
Avoid overlapping labels and leaders
Align multiple labels consistently
At the moment, I am arranging and dragging each label manually, which takes a lot of time.
Is there any automated or semi-automated solution available, or does this need to be done manually?
Any suggestions or sample scripts would be appreciated.
Please take the time to review How to get help on the Dynamo forums , if you haven’t recently
Have you searched the forum?
From the Guidelines: Please spend some time browsing the topics here before replying or starting your own, and you’ll have a better chance of meeting others who share your interests.
First, search the forum with “label arrangement” to see if there are similar threads that you can reference. Here are a few topics that might be relevant to your question.
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.
[image]
[image]
I understand your point. Thanks for the good explanation. Would it be difficult to go just a slight step further than doing the automatic labeling and have the label locations set so that they at least don’t overlap with each other? Scale would have to be taken into account, but being able to start from a position where the labels themselves don’t overlap could be a nice starting point unless that is not worth the development time.
The situation I am thinking of where this would be most effecti…
Optimizing Room Tag Placement with Generative Design, DynaShape and VASA
Try to create a graph (.dyn) that implements the label arrangement.
When you need assistance, ask the community for help or suggestions, share your graph and explain the context.
These are the basic steps to getting good support from the forum.