Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Options

how to calculate a second radius

stefan_bruderstefan_bruder Member Posts: 2
I need to sketch two radius one 200 mm and one 150 mm
first i create a variable radius (=200)
in the first raius i add "#radius" as dimension
in the second I try "#radius-50" , but this doesn't work, ( "#radius/2" works OK)?
what I am doing wrong

Answers

  • Options
    Alex_KempenAlex_Kempen Member Posts: 244 EDU
    Units. When adding or subtracting, the units on both sides of the equation must either both be defined or both be undefined. Thus, 2 in + 3 ft works, as does 2 + 3, but 2 in + 5 does not because the 2 has length units while the 5 is unitless. In your case, #radius - 50 mm will work properly. For more info, see "Using parameter expressions" here.
    CS Student at UT Dallas
    Alex.Kempen@utdallas.edu
    Check out my FeatureScripts here:



Sign In or Register to comment.