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.
Why can't I define a variable as a measured angle?
StephenG
Member Posts: 370 ✭✭✭
It is possible with an "Assigned" variable
but not with with "Measured".
but not with with "Measured".
6
Answers
as in...
Would restricting measured angles to a 3 point method, where the 2nd point is designated the angle vertex and returning a value <=180 degrees address the issue?
Set #angle with Measure Value, then make a new variable also called #angle and make it equal to the following:
This will look at the measured angle and the supplementary angle and return the smaller of the two.
Question: Why "(180 * degree)" instead of "(180 degree)"? I have never seen units applied using an "*".
When you have to vectors selected, you don't know anything else. To make this work you'd have to pick 2 vertices to determine which angle you want.
Once you figure this out, post it, it'll be interesting.
Oh yeah, that's a FeatureScript habit. That's the actual way to represent it, but the normal dialogue boxes automatically fixes it for you so if you type "1mm" it fixes it to "1 * millimeter" internally. you could totally just do (180deg).