Can I get a scale value (Real number) from two length values?
tarquinio_mota
Member Posts: 5 ✭
Hello.
I'm trying to scale a part based on two length variables (in inches).
I've drawn the part at 0.2 inches and say if i want to make it 0.3 inches I want to apply a scale factor of 0.3/0.2 inches which is a scale of 1.5. But I can't divide 2 lenghts, so I had to turn my lenght variables into number variables so I could do the division. While this works I would just like to know if there is a nicer way to do this, since this makes us lose the automatic unit conversion features that we get in length variables.
I'm trying to scale a part based on two length variables (in inches).
I've drawn the part at 0.2 inches and say if i want to make it 0.3 inches I want to apply a scale factor of 0.3/0.2 inches which is a scale of 1.5. But I can't divide 2 lenghts, so I had to turn my lenght variables into number variables so I could do the division. While this works I would just like to know if there is a nicer way to do this, since this makes us lose the automatic unit conversion features that we get in length variables.
0
Best Answer
-
If they are always the same units a simple division will do:

Senior Director, Technical Services, EMEA7
Answers
-
If they are always the same units a simple division will do:

Senior Director, Technical Services, EMEA7 -
Ah thanks actually I didn't explain the problem very well, i was trying to do #x/0.3in, but now that you confirmed it should work, I realized I needed to add a parenthesis for the units.1

