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.

How to create text which fits entirely within its box?

jezmck
jezmck Member Posts: 12 ✭
I thought this was going to be easy.  :(

I was hoping to create a model where I can personalise a name plate just by changing the text after it's all designed.


Answers

  • nick_papageorge_dayjob
    nick_papageorge_dayjob Member, csevp Posts: 1,259 PRO
    You can use constraints on the text rectangle and  text vertical centerline, so they are linked to the name plate shape. 

    Do you want the text size to dictate name plate shape? Or do you want the name plate to dictate the text size shape?
  • imants_smidchens
    imants_smidchens Member Posts: 84 PRO
    the calculate bounds custom feature might come in handy here - you can get the exact dimensions of a bounding box around the geometry and work based on that. 

    Also, here's a configurable magnet document I made to use as a reference - sounds like this could be a similar project in some ways!

  • jezmck
    jezmck Member Posts: 12 ✭
    Thanks, @nick_papageorge073 and @imants_smidchens.

    In this case, I'd like the nameplate to dictate the text size.

    The configurable magnet doc looks great - I think there's a lot I can learn from it!
  • eric_pesty
    eric_pesty Member, pcbaevp Posts: 2,902 PRO
    I would probably use a "scale" feature using a measured variable to get the initial text length and calculate the scale factor.