Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
How do you upload fonts into Onshape?
jackson_vanwaveren
Member Posts: 1 ✭
I’ve done a few projects where it would be really cool to have one of my own fonts in there, as text, but I couldn’t figure out how, if it’s even supported. Please help!
1
Answers
Cheers,
Owen S.
HWM-Water Ltd
I understand the basic need. The biggest problem/limitation I have in my mind is how to define the fonts themselves. My mind explodes when I think about trying to draw 'stick text' that simulates all of the possible characters in each possible font. But maybe I'm making too much of that.
If we can figure out a strategy for mapping fonts to toolpaths, the feature itself doesnt seem that hard. It is non-trivial, but do-able to approximate the best way to 'draw' a given font armed with a single, fixed size engraving tool.
I'm up to the challenge if we could find a well-defined way of working that could be useful....
I'd love to be part of this, thanks!
I'm on the road today but will add some thoughts as soon as I'm back.
Cheers,
Owen S.
HWM-Water Ltd
http://www.onelinefonts.com/index.php
My main question for those cutting text is: what format/features needs to be produced, and what is the workflow from Onshape--> cutting?
One limitation I've run into already is that although Sketches can be programatically created in FeatureScript, and even selected , they are not recognized as a 'first class' sketch in Onshape. Most importantly, they cannot be selected and then exported to DXF, or extruded like a native sketch can be.
Normally these are added as a post-process in a dxf editor.
My ideal scenario for adding the part number (stick font) to the exported dxf would be an option after you do the RMB click to get the dxf. It would probably need to be placed manually but there may be a way to place at a location on the face, like using a mate connector. I don't think these need to be added to the model but wouldn't hurt. The main point is it would save heaps of time if they are on dxf straight out of Onshape.
Twitter: @onshapetricks & @babart1977
I'm struggling to see how this would work. I have found already that Featurescript can't create sketches that are exportable via dxf.
It is clearly possible to create a Featurescript that makes stick letters...but then what? I don't have control during or after the export process.
@owen_sparks had proposed the idea that the stick font is extruded into planar surfaces... Would your CAM software handle that?
https://cad.onshape.com/documents/c10e19b57073c3f47fbe8eeb/w/566ac9db84e1fbd0a6f96ca6/e/6434c2b868e49a08359ee88a
I've imported a STEP file of that part into my CAM program and it does mill the feature. The downside is that it mills the entire rectangle outline, that is, all 4 edges (both sides, top, and bottom). That wastes CNC time and probably wears the cutter out a bit faster but the machined result would work for me.
To be very honest, it seems like most people probably mill/engrave text using software that works in terms of DXFs-- so the best strategy is probably to do text as 2d DXF that has only one line. 3D text creates more problems than it solves (unless you are 3d printing)
Sorry I'm late to the party.
End goals as I seem them are:-
(1) A dxf to be used as for toolpaths which can only contain single lines for the text. Fine rectangles defeat the purpose.
(2) Less important but it'd be nice to see the part as it would look after machining. (We'd need to be able to suppress this to if we want to export a face, as with it on we're back to text outlines, not sticks.)
For part 1, my original thinking was something like this:-
The FS could build the surfaces; the user then makes a sketch, box selects all the surfaces and uses/projects them onto the sketch, then exports the sketch as a dxf? It's a bit naff but gets there, erm sort of.
Going a bit further then the example of extruding up was to make the screen grab clear. We can go down into the part. And by 0.001mm if we want. All we care about is making a surface with an edge.
Remember the letters seen here are surfaces not a sketch, and I believe within the scope of FS.
Finally the user can create their own sketch on the face of the part, then box select to get the part outline and all text, and export as dxf
To make the part look pretty I've raised an IR here:-
https://forum.onshape.com/discussion/6452/sweep-remove-one-solid-body-form-another-not-a-sketch-aka-sw-solid-body-sweep#latest
To do this:-
.
It would be nice to be able to sweep-remove the 30deg cutter along the highlighted line such that it makes the pocket shown above including the conical end faces.
Or if Dave feels like a challenge, then a FS to do this whereby the user enters the cutter angle, eg 30deg, and the cut depth then hey presto.
Could even be one feature with a check box to enable the cut so we can have "export this mode" with just the edges of the surfaces visible, or "pretty mode" with the as cut display.
My example doc used for this is here:-
https://cad.onshape.com/documents/9102cc9f88ebef49deeecaec/w/2f217f4641d101fd3f42ec78/e/0bbf6ef4439799e833027ad7
Thoughts?
Owen S.
HWM-Water Ltd
What feels 'wrong' is that exporting the dxf requires manually selecting all of the right lines on another sketch. But I can't think of a better way.
I'm a bit worried about the relationship between the generated dxf and the NC operation. Since this dxf will be used for toolpaths, the way that the stick font is built will matter. as an example, if, as in your example, we have a "T" composed of two segments, we have to choose between picking up the pen between the lines, or re-tracing our previous path. I'm sure most toolpath generators would choose the former.
Are we worried about that at all?
At any rate, i think this is a reasonable direction to head as long as everyone thinks it would work. I'll probably start with the hardest part-- getting a way to take fonts and generate sticks.
This is not a trivial problem, but it is a solved one. check out this site, which has a selection of (not cheap) one-line fonts.
http://www.onelinefonts.com/
My current plan is to make a tool to convert these into FS for the purposes of a feature like this.
Another items on my plan is to double-check that it is still not possible to have an FS generate a sketch which can be exported by the user directly. I'll post a question about that.
Actually the FS can delete the sketch, it's the faces we care about, so user either box selects everything on the screen of from the faces tree. Agree it's a frig at best though. I'm not worried in the slightest. The CAM SW is capable of sorting the up and down by itself. All I'll be doing is box selecting all the vectors and saying "machine that". So I believe nothing to stress about there. Hmm not cheap at all. I'd settle for one "professional looking" font only, not pseudo handwriting, available in caps, lower case and punctuation so, what's that just over 100 characters? Perhaps you could do that for free and the pro version could have a payment. There has to be some way for the FS input to ask for a key if OS themselves are no nearer to this... Groovy (see what I did there?). Now if FS has some tricks we don't know about then so much the better...
Owen S.
HWM-Water Ltd
https://forum.onshape.com/discussion/6473/allow-featurescript-to-produce-sketches/p1?new=1
HWM-Water Ltd
Owen S.
HWM-Water Ltd
I did notice that unrelated to the IR, in the last update it's possible to export dxf from any face. I have not tried it yet, but it might now be possible for a Featurescript to create 2d text that can be exported...
A recent update gave us the option to export a dxf from the sheet metal flat view but I think the option to export from the face of a part has been there for a while. I don't think it helps us much though as our text isn't 3d, so it's not seen as a feature owned by the part that makes up the face
In regards to my proposal above it has another weakness. If the text is changed by the user in the feature then the "use" for the sketch will give unwanted results if there are more entities than pre-edit. Worse it may fail in a small hard to see way, ie take 10 out of 11 entities. What we really need is the equivalent of qcreatedby(dave's widget) for the use process.
Hmm.
Owen S.
HWM-Water Ltd
Owen S.
HWM-Water Ltd
interesting!
I suspect there are a lot of people needing to do engraving with single ling fonts. I've got a ton of other projects right now, but this is one i would really love to tackle at some point.
I have a community maintained list of featurescripts-- i've added this as an issue to bookmark the request.
https://github.com/dcowden/featurescript/issues/34
HWM-Water Ltd
If you haven't already, please submit a support ticket for the initial design that was experiencing performance issues. This can be done through the "feedback" menu item in the "?" menu of that document. Your workflow sounds very promising, and we would be interested in taking a look at what's slowing it down.