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.
Comments
@stuart_rampy
@here
I've created a new version of Surface Text ( v2.1.5 ) that includes ability to use expressions. Thanks @kevin_o_toole_1
for the pointers on the syntax, that definitely saved time!
The test case in the new version is pictured below ( it uses Kevin's suggested expression)
Document Link: https://cad.onshape.com/documents/cfec40e2b66bb4ddb2f3414b
Should I create an Improvement Request?
IR for AS/NZS 1100
However, it doesn't recognise Japanese font.. which Onshape does, under Noto Sans Japanese.
Is there an easy way to add it to the list under fontface library?
You are welcome, thank you for taking the time to comment! Eventually i'll make a new version with various improvements folks have asked for, but I'm glad the current version is helpful!
I am having an issue with using variables in the feature, I want to add 1 mm (the variable is for example #d=1 mm)
the issue is if i say that it is an expression and use #d I get 0.001 m (when i would like to be displayed in mm)
I tried: (#d/1mm)~"mm" but now i get "1 milimeter" obviously I was looking to have a small text length so not the best solution.
#Test / m * 1000 ~ " " ~ "mm"
@mahir thanks for the heads up/workaround. I'm glad this thread is here, whenever i do a new version, i can gather up all of the little things and make it nicer.
Now if somehow OS made it possible for me to make even a little amount of money on FS development.......
#d/1
is evaluated first, then multiplied by a millimeter.If you just use
(#d / mm) ~ " mm"
that should workIR for AS/NZS 1100
@MBartlett21
as @mahir said if we use directly (#d / mm) ~ " mm" as I mentioned in the first post, you get the "correct" value (I mean the variable in mm) but it shows milimiters instead of mm.
@dave_cowden I cant imagine how much time have you spend in this FS.... as mahir mentioned i do not think at all that is an issue with the FS itself, I think is more of an bug. nothing to correct in your code, it is great . thanks a lot for you great work! (right now I use your thread creator and the surface text at least that i can remember, they are great FS!) thanks a lot!
Thank you for this!
There are so many good things about this feature. After using it for a while, there are only two improvements I would request:
- When using the option "Raise Add", the feature takes an existing part and adds it to the letters making it a new part, loosing its id and breaking features to follow. A solution to this would be to select the part you want to add to, and have the feature add the letters to that part instead of adding the part to the letters.
- The text height is not a consistent number when set to one. For example, set the text to center, and text height to 1 inch. The font size will change and adjust to measure what you have typed. A very neat and useful, but could cause problems if you aren't aware it is happening and all of your different text are different font sizes.
Awesome feature! We really appreciate this great tool.
Good idea I would also think that something like pareon could be a good solution for @dave_cowdenand other FeatureScript creators.
Maybe with different tiers:
Basic $:
You get access to the newest versions of the FeatureScripts.
Medium $$:
You can request improvements for the Basic FeatureScripts.
Premium $$$:
You get customized FeatureScripts based on the Basic scripts available.
Limiting access has been the problem for the most part. Onshape just hasn't made it easy to do it. It would be possible to manually share new features with certain individuals, but there is no way to limit their ability to share further. Version management becomes hard too.
I have a few other projects right now, but I will consider setting up a patreon, and ill do a few tests to see how far I could get with manual sharing. At the very least I could honor feature requests only for supporters!
Thanks again everyone for your ideas and support!
I am using it to make cut out lettering for a Metal work challenge in an Australian high school. Thanks for a great tool
second time in a row! ehehe, first of all, thanks for another great feature,
secondly, the other day I found myself with a "bug" in the surface text FS? I was using a variable value concatenate with text and when I was puting "1.3 mm" as value surface text showed "1.30000000000000000000000002 mm" I got around by cutting decimals but not sure why there was a problem as for other values worked correctly, E.G for "1.315 mm" it showed "1.315 mm".
thirdly ^^, I am offering to make custom icons for the FS of people that I use as I love the idea of helping with what I can....
i thought of something like this for the surface text (but it is quiet hard to imagine something for it to "visualise" the function...) If you want I could send you the svg file and also if you want modification i could do it with pleasure
the surface looks a little bit as a leaf ahahaha
How do you add an icon? i dont even know how to do it.
yes exactly, it was that way i solve it, thanks to god, i was working in a fs and came across this function, but what was intriging me it was that the behavior was not the same for different values.... as you mention I solvid with roundToPrecision, but what was strange that for 2 different values I got different answers. also the roundToPrecision is not a perfect solution, as I dont know the decimals that could change the rounding number in the function will round differently, and for example if in the case of 1.3155 mm i put roundToPrecision(#variable,3) i will get 1.3155 (as the number of decimals will change..)
@dave_cowden you are way more experiene than me with onshape FS so you might get everything from the doc alex linked but when I was doing it myself I couldnt finish to understand it, here is explained a little bit easier and better in my opinion https://forum.onshape.com/discussion/2499/importing-part-studios-and-feature-studios (septs 1. to 3.)
also another issue with the FS is that it changes the id of the part? at least I think is doing that as when editing the text in the feature sometimes broke the features applied to the part down the line. I think it could come from the boolean operation type UNION at the end where the first element is not the original body so sometimes it changes as the resulting body saves another ids? I think.... not sure....
https://cad.onshape.com/documents/a2d4cd65d4fdb270b80e0727/w/ede8a4fc2867490d73f0d14a/e/44b979dcb4aec81089858ce1
@tgunr
Try something like this:
- Hide all sketches, the base surface works best when it is the actual surface of the part.
- Then, select the base line you wanted. Make sure the base line input box is active by clicking on it then selecting your base line.
https://cad.onshape.com/documents/8142c7e1306198a02e50c833/w/61bb5e8d797f3e0e6a48b472/e/087e961a785f1a7575907d3fLearn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
i can't seem to work out the cut out feature
I've added text to the surface of a sheet metal lid
add new works but cut out doesn't
I've ended up doing extrude, remove through the new letters and the surface disc
but the cutout would a lot easier
any suggestions on what I may have done wrong please? Thanks
In this document: https://cad.onshape.com/documents/cfec40e2b66bb4ddb2f3414b/w/24132f252a02825eb0606641/e/1ac9d45620418b8d1e3154f5
"Surface Text 1" fails but worked previously i think.
One such example is instance #2 of of this tab
In fact, in this document, i'm fairly sure than any examples using "cut out" used to work, but don't.
I fiddled a bit with depth of text and a few other things, and nothing obvious materialized.
I should point out that its actually very stunning that these have worked this long-- ive not done anything to upgrade them, and i'm shocked to learn that some of these are 8 years old now! So, even if these finally did break, that's a very impressive track record of resverse compatibility!