
Re: When using quotes (double prime) for inch math operation does not work
Rick Becker Dec 7, 2017 10:09 AM (in response to Andrew Terry)Andrew Terry wrote:
While doing a math operation on a dimension within a model,..
It works correctly both ways using a linear dimension in a sketch. SW2016SP5.0
You may need to be a bit more specific where exactly it is failing please.

Re: When using quotes (double prime) for inch math operation does not work
Andrew Terry Dec 7, 2017 11:19 AM (in response to Rick Becker)Rick Becker wrote:
Andrew Terry wrote:
While doing a math operation on a dimension within a model,..
It works correctly both ways using a linear dimension in a sketch. SW2016SP5.0
You may need to be a bit more specific where exactly it is failing please.
I am not creating an equation. It is happening in a normal dimension modification box in a sketch while modifying a model.

Re: When using quotes (double prime) for inch math operation does not work
Rick Becker Dec 7, 2017 11:41 AM (in response to Andrew Terry)Andrew Terry wrote:
I am not creating an equation. It is happening in a normal dimension modification box in a sketch while modifying a model.
I just opened a part (SW2016SP5.0) edited a sketch. Double clicked on a dimension and typed this...
1mm+.25"
1mm+.25in
Both worked as expected and correctly.

Re: When using quotes (double prime) for inch math operation does not work
Dan Pihlaja Dec 7, 2017 11:42 AM (in response to Rick Becker)Yes, but if you put an "=" sign in front of it, suddenly, the double prime no longer works.

Re: When using quotes (double prime) for inch math operation does not work
Rick Becker Dec 7, 2017 11:46 AM (in response to Dan Pihlaja)Dan Pihlaja wrote:
Yes, but if you put an "=" sign in front of it, suddenly, the double prime no longer works.
My boss asked me to make the 1mm deep C'Bore .25 inch deeper.
so...
If I am changing a dimension in a sketch, why would you use an = sign?

Re: When using quotes (double prime) for inch math operation does not work
Dan Pihlaja Dec 7, 2017 1:13 PM (in response to Rick Becker)Rick Becker wrote:
Dan Pihlaja wrote:
Yes, but if you put an "=" sign in front of it, suddenly, the double prime no longer works.
My boss asked me to make the 1mm deep C'Bore .25 inch deeper.
so...
If I am changing a dimension in a sketch, why would you use an = sign?
Sometimes, I like to have it as an equation, that way, I can come back to it and change its values easily. Also, if you are linking the dimension to a global variable or another dimension, then that will be an equation as well.
As an example, if I want dimension B to always be .25" larger than dimension A, then I would put:
=Dim A + .25"
Or in this case, I would have to put in
=Dim A + .25in
(obviously, my syntax is wrong, but you get the idea).

Re: When using quotes (double prime) for inch math operation does not work
Rick Becker Dec 7, 2017 1:34 PM (in response to Dan Pihlaja)Dan Pihlaja wrote:
Sometimes, I like to have it as an equation, that way, I can come back to it and change its values easily. Also, if you are linking the dimension to a global variable or another dimension, then that will be an equation as well.
Dan, I'm really trying to learn something new here, so please be kind to me.
If you are linking a dimension or global variable that automatically gives you an equation. I can totally understand this.
But...
I have a dimension in a sketch. I may want to change it later. How is turning it into an equation less mouse clicks/typing that double clicking on the dimension and typing the new value?
I can put my dimensions into a design table without turning them into equations.

Re: When using quotes (double prime) for inch math operation does not work
Dan Pihlaja Dec 7, 2017 2:25 PM (in response to Rick Becker)Rick Becker wrote:
Dan Pihlaja wrote:
Sometimes, I like to have it as an equation, that way, I can come back to it and change its values easily. Also, if you are linking the dimension to a global variable or another dimension, then that will be an equation as well.
Dan, I'm really trying to learn something new here, so please be kind to me.
If you are linking a dimension or global variable that automatically gives you an equation. I can totally understand this.
But...
I have a dimension in a sketch. I may want to change it later. How is turning it into an equation less mouse clicks/typing that double clicking on the dimension and typing the new value?
I can put my dimensions into a design table without turning them into equations.
All that is true. It isn't less mouse clicks....
Outside of linking the dimension to another dimension or a global variable, the only case where I like to leave it as an equation inside the dimension dialog box is when I am modeling a part (not designing it) and the dimension on the print shows a limit tolerance. Then I (personally) like to put in an equation showing the top and bottom values.
Like this:
If the limit tolerance is 12.5in to 12.75in then,
=(12.5in + 12.75in)/2
Then it stays that way but outputs the correct value. That way, if the limit tolerance changes in the future, I only have to update those two numbers rather than doing the calculation again.
Alternatively, I could add those numbers to a design table or whatever and let that do the calculation, or I could just do the calculation in my head and just put the number in, but I personally like to leave it as an equation. It feels right.

Re: When using quotes (double prime) for inch math operation does not work
Kevin Chandler Dec 8, 2017 12:44 PM (in response to Dan Pihlaja)Hello,
I like to use equations in dimensions for:
 Preserving units that aren't the model's units to keep design intent clear:
(The mate to this is a metric purchased part)  As a method to modify a dimension on a whatif basis so it's easy to return to the initial value
And if you discuss such changes w/others, you don't have to remember what was modified or the amount of adjustment
Plus, it's easy to adjust & reset per the input of others (sometimes clients change their mind)  If you want the adjusted value, but don't want the equation, delete the equal sign and SW does the math for you:
 Having one change point (and to embed the common design intent), use equations to equate dimensions of other features in the same sketch or outside of the current sketch (usually done through Manage Equations dialog)
Cheers,
Kevin

Re: When using quotes (double prime) for inch math operation does not work
Rick Becker Dec 8, 2017 1:16 PM (in response to Kevin Chandler)Kevin Chandler wrote:
...
 As a method to modify a dimension on a whatif basis so it's easy to return to the initial value
And if you discuss such changes w/others, you don't have to remember what was modified or the amount of adjustment
Plus, it's easy to adjust & reset per the input of others (sometimes clients change their mind)
Thank you for this Kevin, I learned something new today that will be very useful going forward. I temporarily alter many dimensions in order to achieve something needed and then want to go back to original number. Paper and pencil gets old when your sitting in front of a computer.

Re: When using quotes (double prime) for inch math operation does not work
Kevin Chandler Dec 8, 2017 1:50 PM (in response to Rick Becker)Hello Rick Becker,
You're quite welcome.
I forgot one other tidbit:
If you're tweaking a dimension that is already is an equation, place parentheses around the current equation first and then add your mods afterwards.
Before:
=2 + 'D1@Sketch4'
After:
=(2 + 'D1@Sketch4') + .25
Cheers,
Kevin
 As a method to modify a dimension on a whatif basis so it's easy to return to the initial value
 Preserving units that aren't the model's units to keep design intent clear:









Re: When using quotes (double prime) for inch math operation does not work
Dan Pihlaja Dec 7, 2017 10:18 AM (in response to Andrew Terry)Agreed. In the dimension modification box, it works perfectly, but in the equation manager, it doesn't work at all.
Correction: It works in the dimension modification box as long as you don't create an equation out of it.
So these all work:
But this doesn't work:
As soon as an equation is introduced, the double prime no longer works. Hrmm. Let me look further.


Re: When using quotes (double prime) for inch math operation does not work
Rick Becker Dec 7, 2017 10:22 AM (in response to Dan Pihlaja)Dan or Andrew, can you post this over here?

Re: When using quotes (double prime) for inch math operation does not work
Dan Pihlaja Dec 7, 2017 10:27 AM (in response to Rick Becker)Rick Becker wrote:
Dan or Andrew, can you post this over here?
Done




Re: When using quotes (double prime) for inch math operation does not work
Kevin Chandler Dec 7, 2017 12:29 PM (in response to Andrew Terry)Hello,
To avoid such unit issues, I just have SW do the minch math for me:
408 + 2*25.4
Cheers,
Kevin