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.

Procedural Text?

bernhard_petribernhard_petri Member Posts: 2

Hello dear forum members,

I've got a problem where I would like to procedurally add text in increments of 10mm to my part, stating a certain value (sort of like on a ruler). Is it possible to inject the text or change it using a variable/table inside an array of text objects?

Thanks for the help!

Comments

  • jelte_steur814jelte_steur814 Member Posts: 185 PRO

    one of the tricks is in @EvanReese 's video:

    it's well hidden, perhaps a checkbox in the UI would be clearer…

    'right click' 'convert to expression'

  • jelte_steur814jelte_steur814 Member Posts: 185 PRO
    edited October 28

    I used an incremental variable called counter (using a custom feature, but this can be done manually as well), combined with a variable with an array of texts.

    I couldn't get the pattern to iterate through the array in the sketch somehow, but found a custom feature called Text by @MichaelPascoe that allowed it to work.

    check it out: Example Procedural text document

  • jelte_steur814jelte_steur814 Member Posts: 185 PRO

    using excel with concatenate functionality, is usually an easy way to create an array if it is too big to type…
    copy → 'paste with values' within excel → copy → paste in Onshape

Sign In or Register to comment.