What is the most efficient way to deal with equation errors?

Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

What is the most efficient way to deal with equation errors?

Unread post by Mike Gera »

I've been dealing with a lot of

"The following equations could not be evaluated because of deleted/invalid dimensions:"

...errors on a large, complex part that I've been working on.

Why I'm getting the error is no mystery: I'm deleting features that contain in-play variables.

The question becomes how to efficiently deal with the errors.

For example, how does one execute a global search for for "D2@Sketch85" (whether it's being used or not, whether it needs to be deleted or not)?

Is there a way to automatically delete all orphaned equations?

Regarding the yellow exclamation point to the left of an equation in the equation manager: what exactly does it mean? How is it corrected?

Thanks for any replies.
SW 2024 SP 5.0
Windows 11
User avatar
jcapriotti
Posts: 1869
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 30
Location: The south
x 1214
x 1999

Re: What is the most efficient way to deal with equation errors?

Unread post by jcapriotti »

You could use the "Dimension View" in the equation manger to see all dimensions, then the filter box show only the boxes that contain the dimension.
image.png
image.png
Jason
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1638
x 1471

Re: What is the most efficient way to deal with equation errors?

Unread post by Frederick_Law »

Setup Variables to use in equation.
Only use dimension from same sketch/feature.
Setup Variables for cross sketch/feature dimensions.
Don't do "chain" dimension: D2=D1, D3=D2, D4=D3 etc.
Make it: D2=D1, D3=D1, D4=D1
User avatar
Glenn Schroeder
Posts: 1522
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1759
x 2132

Re: What is the most efficient way to deal with equation errors?

Unread post by Glenn Schroeder »

Frederick_Law wrote: Wed Aug 30, 2023 11:30 am Setup Variables to use in equation.
Only use dimension from same sketch/feature.
Setup Variables for cross sketch/feature dimensions.
Don't do "chain" dimension: D2=D1, D3=D2, D4=D3 etc.
Make it: D2=D1, D3=D1, D4=D1
You forgot one. Use construction geometry and relations instead of equations whenever possible and practical. Which is almost all of the time for me.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1638
x 1471

Re: What is the most efficient way to deal with equation errors?

Unread post by Frederick_Law »

Yes, those go in first.
Usually I'll use D1=D2 instead of equal relation because it's easier to change if they don't equal anymore.
Colinear and midpoint are great things to use.
User avatar
AlexLachance
Posts: 2187
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2373
x 2015

Re: What is the most efficient way to deal with equation errors?

Unread post by AlexLachance »

Frederick_Law wrote: Wed Aug 30, 2023 11:30 am Don't do "chain" dimension: D2=D1, D3=D2, D4=D3 etc.
Make it: D2=D1, D3=D1, D4=D1
This is an understatement. Too many people use equations the wrong way. This is one of the worst.
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1638
x 1471

Re: What is the most efficient way to deal with equation errors?

Unread post by Frederick_Law »

Chain projection is next on that list.
User avatar
SPerman
Posts: 2056
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2227
x 1878
Contact:

Re: What is the most efficient way to deal with equation errors?

Unread post by SPerman »

Glenn Schroeder wrote: Wed Aug 30, 2023 2:00 pm Use construction geometry and relations instead of equations whenever possible and practical. Which is almost all of the time for me.
You sound like a BBQ chef who used to spend a lot of time around here. :D
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
Glenn Schroeder
Posts: 1522
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1759
x 2132

Re: What is the most efficient way to deal with equation errors?

Unread post by Glenn Schroeder »

Frederick_Law wrote: Wed Aug 30, 2023 2:16 pm Yes, those go in first.
Usually I'll use D1=D2 instead of equal relation because it's easier to change if they don't equal anymore.
Colinear and midpoint are great things to use.
How is deleting a relation more difficult than editing or deleting the equation?
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1638
x 1471

Re: What is the most efficient way to deal with equation errors?

Unread post by Frederick_Law »

I mean changing it later. Not right after they're added.

To change D2 = D1, just edit and enter new dimension.

To remove equal relation, first highlight/display and find the relation in sketch.
If it's the only equal relation, it'll be easy.
Sometimes there are a few "chain" relations. There might be 2 or more =
Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

Re: What is the most efficient way to deal with equation errors?

Unread post by Mike Gera »

Frederick_Law wrote: Wed Aug 30, 2023 11:30 am Setup Variables to use in equation.
Only use dimension from same sketch/feature.
Setup Variables for cross sketch/feature dimensions.
Don't do "chain" dimension: D2=D1, D3=D2, D4=D3 etc.
Make it: D2=D1, D3=D1, D4=D1
Not to be "that guy", but is there any way you could post a .SLDPRT example of that?

Thanks.
SW 2024 SP 5.0
Windows 11
Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

Re: What is the most efficient way to deal with equation errors?

Unread post by Mike Gera »

jcapriotti wrote: Wed Aug 30, 2023 10:59 am You could use the "Dimension View" in the equation manger to see all dimensions, then the filter box show only the boxes that contain the dimension.

image.png

image.png
Ah, thanks.

On a related note, how would I search for the feature or features that use, for example, "D2@Sketch85"?
SW 2024 SP 5.0
Windows 11
Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

Re: What is the most efficient way to deal with equation errors?

Unread post by Mike Gera »

Frederick_Law wrote: Wed Aug 30, 2023 3:07 pm Chain projection is next on that list.
What is a chain projection?

Thanks.
SW 2024 SP 5.0
Windows 11
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1638
x 1471

Re: What is the most efficient way to deal with equation errors?

Unread post by Frederick_Law »

Project a line from sketch1 to sketch2.
Project the project line in sketch2 to sketch3.
Repeat for 10 more sketch.
This make each sketch dependent of the one before.
All they need is sketch1.

This could happen when project from feature. Instead of sketch, project from feature edge/face.

It is always much more stable when project from sketch. Even when feature is suppressed, the sketch is still there.
User avatar
DanPihlaja
Posts: 849
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 812
x 980

Re: What is the most efficient way to deal with equation errors?

Unread post by DanPihlaja »

Mike Gera wrote: Wed Aug 30, 2023 4:56 pm Not to be "that guy", but is there any way you could post a .SLDPRT example of that?

Thanks.
Here are a couple of different ways of doing the same thing (see attached). In all 4 scenarios, all the circles in the sketch are driven by something so that you only have to edit 1 thing to change all the circle diameters.
Please note: There are other ways to do it, but these are some examples

1) Global Variable
2) Equals Diameter dimension
3) Linked Values
4) Equals Constraint

Attachments made with SW 2022.
Attachments
ShapesGlobalVariable.SLDPRT
(72.3 KiB) Downloaded 123 times
ShapesEquals.SLDPRT
(73.05 KiB) Downloaded 57 times
ShapesLinkValues.SLDPRT
(73.89 KiB) Downloaded 97 times
ShapesEqualsDiameterDim.SLDPRT
(73.84 KiB) Downloaded 123 times
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
Post Reply