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.
Questions about units
ron_moreland
Member Posts: 90 ✭✭
I've more or less finished my first real feature script. Thanks for all the help! I had excellent help from the forum. I have questions about values with units.
I think everything in the database has meters as the length unit. Other units are assigned as conversions from meters. When I print values via "debug()", the values are in meters. Can I convert them at print time to inches?
How do you change numbers to values with units and back?
I think everything in the database has meters as the length unit. Other units are assigned as conversions from meters. When I print values via "debug()", the values are in meters. Can I convert them at print time to inches?
How do you change numbers to values with units and back?
Tagged:
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,671Just multiply it by the units. e.g. Foo * inch
if it is a complex debug message with lots of outputs then this probably won’t work.Senior Director, Technical Services, EMEAI5
Answers
if it is a complex debug message with lots of outputs then this probably won’t work.
Owen S.
HWM-Water Ltd