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.
Using Variables in text
mark_morgen
Member Posts: 12 ✭
I could not get text to work at all with a #variable. I tried for over an hour, but nothing worked. My goal is to emboss a text string that includes a single dimension of the part onto a face, such as "Cube Height is #Height inches". It only works as a simple text string, but I want to update the text automatically when the dimension is changed in the drawing.
I used Onshape instructions, but they failed me...
Thank you!
1
Answers
Don't convert it back to text. Leave it as an expression. And, since your variable is just a number,
is sufficient.
I don't know if all of the FeatureScript math functions will work in a text box, but here is a good list of math functions:
https://cad.onshape.com/FsDoc/library.html#module-math.fs