While doing a math operation on a dimension within a model, using quotes (double prime, " ) the operation failed. It either stayed unchanged or you cannot click ok. However, when using "in" for inch the operation works. I am able to do this operation using quotes on other stations. I haven't found any solutions or seen anywhere on the web where someone was had the same issue.

 

Example 1: 408mm + 2" (does not work)

Example 2: 408mm + 2in (works)

 

Solidworks 2016 SP 5

Windows 10


Categories: Modeling and Assemblies, Parts and Features

Comments
Last comment By: Kevin Chandler   Fri, 08 Dec 2017 18:49:59 GMT
Re: When using quotes (double prime) for inch math operation does not work

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.

By: Rick Becker  Thu, 07 Dec 2017 15:09:01 GMT
Re: When using quotes (double prime) for inch math operation does not work

Here is an SPR related to this:

By: Dan Pihlaja  Thu, 07 Dec 2017 15:16:54 GMT
Re: When using quotes (double prime) for inch math operation does not work

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.

By: Dan Pihlaja  Thu, 07 Dec 2017 15:14:51 GMT
Re: When using quotes (double prime) for inch math operation does not work

Dan or Andrew, can you post this over here?

What *Minor* Bug in SOLIDWORKS Drives You Crazy

By: Rick Becker  Thu, 07 Dec 2017 15:22:14 GMT
Re: When using quotes (double prime) for inch math operation does not work

Rick Becker wrote:

 

Dan or Andrew, can you post this over here?

What *Minor* Bug in SOLIDWORKS Drives You Crazy

 

Done

By: Dan Pihlaja  Thu, 07 Dec 2017 15:27:57 GMT
Re: When using quotes (double prime) for inch math operation does not work

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.

By: Andrew Terry  Thu, 07 Dec 2017 16:19:57 GMT
Re: When using quotes (double prime) for inch math operation does not work

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.

By: Rick Becker  Thu, 07 Dec 2017 16:41:02 GMT
Re: When using quotes (double prime) for inch math operation does not work

Yes, but if you put an "=" sign in front of it, suddenly, the double prime no longer works.

By: Dan Pihlaja  Thu, 07 Dec 2017 16:42:09 GMT
Re: When using quotes (double prime) for inch math operation does not work

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?

By: Rick Becker  Thu, 07 Dec 2017 16:46:45 GMT
Re: When using quotes (double prime) for inch math operation does not work

For some odd reason you can do two single primes. I've seen this done on the forum years ago in the equation manager.

By: Dennis Bacon  Thu, 07 Dec 2017 16:51:07 GMT
Re: When using quotes (double prime) for inch math operation does not work

Hello,

 

To avoid such unit issues, I just have SW do the minch math for me:

408 + 2*25.4

 

Cheers,

 

Kevin

By: Kevin Chandler  Thu, 07 Dec 2017 17:13:52 GMT
Re: When using quotes (double prime) for inch math operation does not work

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).

By: Dan Pihlaja  Thu, 07 Dec 2017 18:10:05 GMT
Re: When using quotes (double prime) for inch math operation does not work

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.

By: Rick Becker  Thu, 07 Dec 2017 18:34:00 GMT
Re: When using quotes (double prime) for inch math operation does not work

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. 

By: Dan Pihlaja  Thu, 07 Dec 2017 19:25:30 GMT
Re: When using quotes (double prime) for inch math operation does not work

Hello,

 

I like to use equations in dimensions for:

  1. Preserving units that aren't the model's units to keep design intent clear:
    (The mate to this is a metric purchased part)
  2. As a method to modify a dimension on a what-if 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)
  3. If you want the adjusted value, but don't want the equation, delete the equal sign and SW does the math for you:

  4. 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

By: Kevin Chandler  Fri, 08 Dec 2017 17:44:23 GMT
Re: When using quotes (double prime) for inch math operation does not work

Kevin Chandler wrote:

...

  1. As a method to modify a dimension on a what-if 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.

By: Rick Becker  Fri, 08 Dec 2017 18:16:15 GMT
Re: When using quotes (double prime) for inch math operation does not work

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

By: Kevin Chandler  Fri, 08 Dec 2017 18:49:59 GMT
You are not authorized to view this page No results found! Suggestions: Check spelling, try a different search, or browse topics below.