algorithmic modeling for Rhino
Does anybody know about changing a text string into a line curve on an object? I've been looking at specific fonts for CNC machines but these seems to give very odd results.
I've already been using the plugin that converts strings into faces that are defined by font, text height, etc. What I would prefer is to get a string into a single curve (no thickness) that I could bake out of grasshopper.
Has anyone seen anything that relates to this? If I need to start delving into VB, I'll head over to that forum.
I was asking if you could answer my questions ?
I am looking for a way to bake those texts as a simplify curve.
Both to reduce the time and for further problem.
I tried to cut this document that was nested with rhinonest 3.0
Each time after some cutting process. The machine stopped.
I was wondering if it was caused by the type of curves and the numbers of control points on the curves ?
What do you think ?
Does anyone has ever experienced that problem ?
It will be most helpful if you could possibly tell me more about some strategies I could work with to laser cut those curves.
Here is the file :
I'm trying to use this method to convert text objects to a single line font. Could you explain a bit about what you are referring to as "To" "From fonts? is that part of this script or is there another process to set that up?
No. The "From" font is the one you use normally, in the case of my example it would be Arial. This is a typical double stroke true type font. So in your file, all of the text you want to convert would be in Arial.
The second thing you need to do is install the single line font(s) on your system. The fonts are attached above in this thread. Just drop them into your system fonts folder. Machine Tool Sans Serif corresponds pretty well to Arial. The reason this is important is the text isn't really "converted", it is substituted.
Then when you run the script, *all* the text that is currently the file (the way the script is initially set up) will get converted to single line curves. There is a line in the script that can be uncommented, and the next line commented out which will allow only selected text to be converted.
Do you know why the machine stopped? There certainly is a massive amount of data, but I can normally handle it with ours. Sometimes it may be the laser driver that is buggy - we have had occasional Rhino crashes on trying to send files with 10,000+ curves, my tactic is to send the file in parts if it's huge... It could also be the buffer memory in your laser, or your network...
Exploding the text (as you appear to have done here) is definitely going to add to file size and cutting time - you are doubling each letter - so it's better to work with single line fonts if possible. The scripts above do work in Rhino - we use them all the time - but there is one problem that that has occurred with V5 - text justification. As text now comes in as justified any which way one can unfortunately no longer predict accurately if the single line replacement for the test is going to end up in the right place. In V4, the text insertion point was always in the lower left corner, in V5 it could be lower, upper or mid and right or left... there are no real tools to detect this AFAIK.
Mitch -- Thanks for the Rhinoscript components. They work great.
A few things:
I converted some text with exclamation marks, and upon conversion the exclamation marks were omitted
The Arial text objects I converted were centered on the origin, when I ran the script and converted to single line the insertion point was the bottom left corner of the text block. Is there any way to get the insertion point to remain the same as the input text object?