Keychain Text Automation

xphilip
xphilip Member Posts: 17 ✭✭✭
Looking to automate the creation of these keychains. 

The input is a text string, but then it gets tricky.
Each character in its correct location needs to be extruded to different height - no idea how to do this, this is the sticking point. 
After that it's fairly easy (i think) - offset the vertical faces to ensure that I can then boolean all the bodies together and export as 3MF/STL

Some smart person here surely knows how to do this :)

https://cad.onshape.com/documents/94898019595c6cb408523bed/w/8957b82c6872db5bf9d83dbd/e/2d597c127db87b4415e4e860?renderMode=0&uiState=62bdaf32affec83631318d53



Comments

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,966 PRO
    edited June 2022
    Hi xphilip, this is possible. I do have a few questions for you:
    1. Are you trying to do this with FeatureScript, standard part studio, or configured part studio?
    2. Does the font ever change?
    3. The words change I assume?
    4. Do you want only the model automated or the part automatically machined as well?

    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚
  • MichaelPascoe
    MichaelPascoe Member Posts: 2,966 PRO
    I like @_anton's response  :grin:

    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚
  • xphilip
    xphilip Member Posts: 17 ✭✭✭
    The Onshape community delivers!!!! (ok an employee :))

    @_anton - THANK YOU!!!!!! (MichaelPascoe - I know you were just pipped at the post -sorry, but also thank you :))

    I will leave this post here as of course all can learn from Antons solution.

    Philip
  • _anton
    _anton Member, Onshape Employees Posts: 555 image
    Hey, I make things in Onshape too. :p
  • _anton
    _anton Member, Onshape Employees Posts: 555 image
    edited June 2022
    (Okay, I reworked it a bit so now it can handle letters like 'i'. Sketch one letter at a time, extrude to a random height, shift to have the right horizontal overlap.)

    (It was bothering me.)