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.
Variable in text does not change in pattern
aram_messdaghi
Member Posts: 2 ✭
Hi, I have a variable in a sketch text, when I apply a linear pattern which changes the variable, the text does not change.
Following example:
https://cad.onshape.com/documents/89556755f21cf336a44b60d6/w/7259a717c555919364ce36b4/e/56e92cccab259f192183c6ca?renderMode=0&uiState=6727d2a0acee506bdb3c0c00
I would expect the blocks to have the size written on them, but the text is still the initial value of the variable
0
Answers
Hi, unfortunately it is not yet possible to use the text tool inside the sketch with expressions and reaplied patterns. But it is possible if you use the Surface Text FS.
https://cad.onshape.com/documents/cfec40e2b66bb4ddb2f3414b/v/3f1bcca2812d650a51c9960d/e/c8e6602fb08acac97a10a38e
an example:
https://cad.onshape.com/documents/45a6c4a9eb30344ccb2f8978/w/28fbc63eb6e710d9e5656d1f/e/fdc0cba6134bdb5e6c1fc5ea?configuration=List_M2gutsPE3bkIlf%3D_41_60&renderMode=0&tangentEdgeStyle=1&uiState=673261110b5b880efae0af7e
You did everything right; we have a bug that affects patterns of sketches with expression-controlled text. Sorry for the inconvenience.
For now, I'd recommend @jnewth_onshape's Text custom feature: https://cad.onshape.com/documents/4e187c2b2f7f4974f4e2b612