How about this script:
SequentalTextNumbers_01.rvb (1.3 KB)
It will ask you to select a number of curves that then will be numbered in sequence.(arbitrary order)
The text is inserted on the centroid of the curve and justified middle,center
To run the file, either open in via the Rhino Scripteditor and run it from there.
Or just drag and drop the .rvb file over Rhino.
The script will then run once and you need to drag and drop again to run it again.
The script file can be opened in notepad for editing:
I included a couple of variables that you yourself need to set.
Dim TextHeight: TextHeight = 2 Dim FontName : FontName = "Times New Roman" Dim Explode : Explode = True
Textheight is now set to 2 but you need to set the size in file units as you like
Fontname is the Font you like to use. The Name needs to be set exactly as stated in the font list and encapsulated in double quotes
Explode is a toggle to explode the text objects to outline curves or not. This can be set to either True or False.
Please test the script on a file copy and be aware that processing 20.000 objects can be slow.
The script itself is fast but:
For instance I tried to change the font by selecting all 20.000 text objects and set them to another font,
it took ages to complete.
Does this go in the right direction?
I included a 100 separator as in your exaple.
It’s set to be a comma ( , )
@pascal have a look at this please. Should it take so long to change the font for many textobject via properties where a script does it in a whimp?