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.
Set units when using coordinates
Lee_Hesketh
Member, Developers Posts: 148 ✭✭✭
Hi, when I print coordinates of a point, it prints them in metres. How could I set it such that it prints the coordinates in millimetres?
Thanks
Lee Hesketh
Thanks
Lee Hesketh
There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
0
Best Answer
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565There's no way to do this globally. If you're printing one length, you can do this inline each time you print, or define a function:
export function printmm(length is ValueWithUnits) { println(length / millimeter ~ " mm"); }
If you're printing a larger structure with lengths inside of it, I can't think of an easy way to make that change.
5
Answers
If you're printing a larger structure with lengths inside of it, I can't think of an easy way to make that change.