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.
Can't do addition/subtraction with Measure Distance custom feature
sören_svensson
Member Posts: 21 ✭✭
Hi,
I'm trying to do some 'easy' calculations in a variable and found this odd.
I'm using the Measure Distance custom feature to get a distance in the model. I left the default name #distance.
I assign it to a new variable to see the value, works fine.
I assign #distance*2 to a variable, still fine.
I assign #distance+20 to a variable, no! Doesn't work. Neither does #distance-20 or 20+#distance.
It just says 'A parameter value is not valid'
What's up with that? Seems like something that should've been found in the pre-alpha stage.
Any fix available?
I'm trying to do some 'easy' calculations in a variable and found this odd.
I'm using the Measure Distance custom feature to get a distance in the model. I left the default name #distance.
I assign it to a new variable to see the value, works fine.
I assign #distance*2 to a variable, still fine.
I assign #distance+20 to a variable, no! Doesn't work. Neither does #distance-20 or 20+#distance.
It just says 'A parameter value is not valid'
What's up with that? Seems like something that should've been found in the pre-alpha stage.
Any fix available?
Tagged:
0
Best Answer
-
lana Onshape Employees Posts: 704If #distance is assigned a length value, then one can't add a unitless number to it. Please try #distance + 20 * milimeter
5
Answers