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.
Dimensions using literals and variables
GIZMO
Member Posts: 11 ✭
Specifying literal numbers in a dimension equation also using variables generates an error:
(((5-(#Pipe2halfs40OD/2))/2)+(#Pipe2halfs40OD/2)) <===== Invalid expression error
Changing the literal number "5" followed by a minus sign into a variable with the value of "5" is considered a valid expression, and gets the right answer = 3.219
(((#Five-(#Pipe2halfs40OD/2))/2)+(#Pipe2halfs40OD/2))
where #Pipe2halfs40OD = 2.875 and #Five = 5
ie, it accepts a literal number associated with a divide "/" (and I assume multiplication "*"),
but not with simple subtraction "-" (and I assume addition "+").
(((5-(#Pipe2halfs40OD/2))/2)+(#Pipe2halfs40OD/2)) <===== Invalid expression error
Changing the literal number "5" followed by a minus sign into a variable with the value of "5" is considered a valid expression, and gets the right answer = 3.219
(((#Five-(#Pipe2halfs40OD/2))/2)+(#Pipe2halfs40OD/2))
where #Pipe2halfs40OD = 2.875 and #Five = 5
ie, it accepts a literal number associated with a divide "/" (and I assume multiplication "*"),
but not with simple subtraction "-" (and I assume addition "+").
Tagged:
0
Comments