Hi,
I have 0.2m distance contours done in rhino for which I created some basic labels in grasshopper:
The thing is, at the moment, they show many decimals (29.14558743) - is there a way to reduce it to either just 29.1 or even 29? I tried with a ‘format’ command and ‘round’ but I think I was connecting something wrong.
On another note, is there a way to display major contours (e.g. every 1 meter) and minor contours (every 0.2m) differently?
Many thanks!
One simple way to round is by putting the following into the expression of the point deconstruct component.
round(x, 1)
You’d do this with custom linetypes and cull pattern or dispatch
Hi,
Thank you both, that’s great!
I particularly like how on your example @Measure , your lines change colour and you have nice text - I get text dots. Is there a way for me to also change mine to text and different colour lines? I attached my sample file. I just want my labels to be clear and legible 
surface tags text.3dm (739.9 KB)
surface tags text GRH.gh (13.9 KB)
I like to use text and an annotation style with capsules instead of dots, especially when the result needs to be printed or exported as image, because the size can be controlled much better than simple text dots.
The annotation style is saved in the Rhino file.
surface tags text capsule.gh (26.4 KB)
surface tags text capsule.3dm (737.1 KB)
Hi @martinsiegrist ,
Oh yes, these tags looks very neat as well! Thank you. And controlling the size will come handy as I will be printing all my contours on A1.
Selecting multiple lines (drawn in rhino) as an input didn’t quite work for me (I guess because original line had its own mid point and plane) - do you manage your lines inside grasshopper?
I can achieve the multiple lines by simply duplicating the whole grashopper structure on a new line, but I think I’d end up with a lot of these for my final drawing 
Actually for multiple sections it is better to use a brep | curve section
You can use the longest list component to create the data tree.
This definition has the curves and an annotation style internalised and you can bake the capsules into a layer called ‘heights’.
surface tags text capsule many.gh (49.3 KB)
Clever! That works beautifully! Thank you for your help @martinsiegrist
Sorry @martinsiegrist , one more question please!
I just tried these labels on my model (which is 11.32 higher than original - not sure if this makes any difference), and I’m not getting any labels. I select my contours and ‘imaginary’ lines in grasshopper, and nothing happens (no errors or anything).
Did I just disable something accidentally?
surface tags text capsule many (3).gh (27.1 KB)
surface tags text capsule(3).3dm (300.8 KB)
Check the domain of the rectangles
And unfortunately the annotation style wasn’t saved in the data component. My bad.
Somehow Rhino crashed twice trying to update the definition so here’s just an updated file which contains the inputs for a capsule annotation style and takes the height from a bbox of all your contours.
surface tags text capsule many bbox.gh (34.5 KB)
Doesn’t work 
and it looks like a too complex definition for me to work it out. Thank you for trying anyway!
The brep deconstruct component I used is from Rhino 9. Just simply replace it with one from Rhino 8 Grasshopper.
I replaced it with this one:
but it only created selected labels:
Please update your section lines.
I did, I run all the section from a scratch