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.
line break in string?
EvanReese
Member, Mentor Posts: 2,135 ✭✭✭✭✭
how do I add a line break to a string in FS? Is there a place I can go to see all of the formatting options available?
Evan Reese
0
Best Answers
-
_anton Member, Onshape Employees Posts: 410\n
println("Once upon a midnight dreary, while I pondered, weak and weary,\nOver many a quaint...");1 -
Alex_Kempen Member Posts: 248 EDUreportFeatureInfo and reportFeatureWarning messages don't handle line breaks and other methods of formatting like \b (for bold). On the other hand, it is possible to use template strings to display units properly, but that doesn't really help a whole lot with your use case.CS Student at UT DallasAlex.Kempen@utdallas.eduCheck out my FeatureScripts here:0
Answers
println("Once upon a midnight dreary, while I pondered, weak and weary,\nOver many a quaint...");
I'm trying to implement the templateString, but it doesn't seem to respect the document units. I'm still getting meters. This is the code and result. Any ideas?
chadstoltzfus@premiercb.com