Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

New Featurescript: PP Surface Text 2.0



  • dave_cowdendave_cowden Member, Developers Posts: 448 ✭✭✭
    edited November 2018

    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
  • dave_cowdendave_cowden Member, Developers Posts: 448 ✭✭✭
    konstantin_shiriazdanov after a long time, (and another reminder from the community), i finally implemented your suggested edits to this feature. Sorry it too so long!
  • MBartlett21MBartlett21 Member Posts: 1,798 EDU
    ilya_baran said:
    One thing I'd like at some point is for the user of a feature to be able to replace a parameter like a boolean, string, or enum (or even the suppression state) with an expression.
    I would really like this.
    Should I create an Improvement Request?
    MB - I make FeatureScripts:View FeatureScripts
  • phillip_saboltaphillip_sabolta Member Posts: 1
    Hi @dave_cowden I just stumbled across this handy tool. It has made my life so much easier. Thank you. 
    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?
  • jmsaltzmanjmsaltzman Member Posts: 8 PRO
    Wow @dave_cowden thank you for this! The string expression can be fiddly, so I just make another variable with an "any" type value first to form the string. Anyway, much appreciated!
  • dave_cowdendave_cowden Member, Developers Posts: 448 ✭✭✭
    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!
  • thomas_aathomas_aa Member Posts: 14
    edited May 1
    Thanks for the great script @dave_cowden !

    I have run into a problem: When I used "Raised Add", the part I add to gets renamed to "Part 1". Also, children break (I'm making an inverted mold) every time I change the text. I think this can be resolved by having the target as the first element in the add/union list. At least it works that way for the Union tool.

    I tried to make a test, but I think the code that actually does this is in the PP_Text_Libraries text.fs, which is not public or I mangled the URL trying to open it.

    edit. For anyone with the same problem, my workaround was to us "Raise New" and then do a 0.1mm extrude from the surface into my part to be able to use "Merge with all" to union all the letters with the part.

    edit2. It turns out that Raise New failed to handle my text when it is "5", but works fine for "25" :S. It worked fine for raised add. It seems that I always need at least 2 letters for Raise New.

    edit3. Work around for the Raise New problem: Do a new on a throw-away part that is then "Merge with all"-merged with my real part. So:
     * Extrude a small throw-away part into my part.
     * Text with Raise Add on the throw-away part.
     * Extrude into my original part and use "Merge with all" to merge the throw-away part with the original part.
Sign In or Register to comment.