posted by Chris Chalmers, Fabripod
UPDATE:I have updated the script in this post to automatically replace any two digit text objects in a rhino file with custom blocks (two digits for numbers up to 99). Simply copy the blocks in the example file (numbers-function.rvb) into yours and run the script. If your digits are too far away from each other or overlapping, adjust the “dblKern” variable in the script. here are the updated files: numbers.3dm numbers-function.rvb (remember to right-click and save-as) Modify the blocks using the in-place block editorfrom rhino-Labs. Let me know what you make with this I’d love to see it! -Chris
Single-line fonts are the standard for laser cutting and CNC milling because they are more eficient to cut. Somebody correct me if I’m missing something here, but it seems impossible to get a single-line font to appear in Rhino using the typical text tools. I’ve been doing quite a bit of CNC milling lately, so I used this technique to create single-line labels for my cut files by using pre-defined blocks instead of text.
The script is set up as a function so you can incorporate it into your scripts easily. To use it, you have to first import the rhino file with the text blocks into your file. Then run the script and it will simply turn the text you want to use into the appropriate block and place it.
The beauty of this system is that you can make your own custom fonts! Just draw any shapes you want to represent your letters and numbers. Make them into blocks with the appropriate names (letterA, number 2 etc..), and the script will place them instead. Make sure they are 1 unit high in the current unit system (ie: 1 foot, 1 inch, 1 meter etc..) for the sizing bit to work properly.
I’ve always thought that a system based on geometry like latin numerals or braile might wok better than text for labeling parts. I’d love to see your experiments, please send them to me!
(remember to right-click and save-as)