What causes yellow equations?

Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

What causes yellow equations?

Unread post by Uncle_Hairball »

Can you guys shed any light on what causes equations to turn yellow? I've got a whole slew of them and cannot find any cause.
image.png
User avatar
AlexLachance
Posts: 2226
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2419
x 2061

Re: What causes yellow equations?

Unread post by AlexLachance »

Can't you view what is wrong with the equation? I've seen it at times, but I can't deduct from that screenshot alone.

Maybe the one missing dimension (D4@Sketch5) is the cause of it all?
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What causes yellow equations?

Unread post by Glenn Schroeder »

Did you delete some dimensions or sketches? If yes, and they contained equations, the equations will show an error instead of being deleted.
"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"
Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

Re: What causes yellow equations?

Unread post by Uncle_Hairball »

AlexLachance wrote: Tue Dec 05, 2023 2:13 pm Can't you view what is wrong with the equation? I've seen it at times, but I can't deduct from that screenshot alone.

Maybe the one missing dimension (D4@Sketch5) is the cause of it all?
Yeah, I had the same thought, but it wasn't.
Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

Re: What causes yellow equations?

Unread post by Uncle_Hairball »

Glenn Schroeder wrote: Tue Dec 05, 2023 2:34 pm Did you delete some dimensions or sketches? If yes, and they contained equations, the equations will show an error instead of being deleted.
No, it's the usual SW stuff: one minute everything is clear, the next minute, everything changes colors. I checked the dimensions and none show any errors. It's only the Equation Manager that is complaining. I gave up on solving the problem and deleted them all. It's horrible to have to do it, but it was keeping me from completing my work. Frustrating.
User avatar
SPerman
Posts: 2080
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2256
x 1902
Contact:

Re: What causes yellow equations?

Unread post by SPerman »

Any chance you had multiple configurations?
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
ryan-feeley
Posts: 82
Joined: Thu Jan 20, 2022 3:35 pm
Answers: 1
x 31
x 91

Re: What causes yellow equations?

Unread post by ryan-feeley »

What happens if you hover your mouse over them? Or RMB the equations node of the feature tree? I believe there is a some way to get an indication of the (supposed) problem.

You can also try CTRL+Q to do a force rebuild.

Another possibility (I can't see from your screen capture) is that you have the equations set to "manual solve order", but the order in the equation manager (or via Reference id depending on version) doesn't match the order the equations are used by your feature tree.

Solidworks did screw something up with equations in 2022 (and maybe in 2021 also), where the "order" the solver obtains from the equation manager isn't the order they are listed, but is the order of the "Relation IDs" which you can see by hovering over an equation. Stupid bug. I haven't checked to see when/if its been fixed in a future version. I believe SPR1227203 is the one to track for this issue.

One hack to reset equations is to export them to a .txt file, delete them all from the model, and re-import from the file, WITHOUT linking to it. Then delete the .txt file.

Good luck!
Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

Re: What causes yellow equations?

Unread post by Uncle_Hairball »

SPerman wrote: Tue Dec 05, 2023 6:01 pm Any chance you had multiple configurations?
Yes, there are two configurations: One with everything, and one with the fine details suppressed for the sake of performance. The current configuration was the one with everything.
Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

Re: What causes yellow equations?

Unread post by Uncle_Hairball »

ryan-feeley wrote: Tue Dec 05, 2023 7:43 pm What happens if you hover your mouse over them? Or RMB the equations node of the feature tree? I believe there is a some way to get an indication of the (supposed) problem.

You can also try CTRL+Q to do a force rebuild.

Another possibility (I can't see from your screen capture) is that you have the equations set to "manual solve order", but the order in the equation manager (or via Reference id depending on version) doesn't match the order the equations are used by your feature tree.

Solidworks did screw something up with equations in 2022 (and maybe in 2021 also), where the "order" the solver obtains from the equation manager isn't the order they are listed, but is the order of the "Relation IDs" which you can see by hovering over an equation. Stupid bug. I haven't checked to see when/if its been fixed in a future version. I believe SPR1227203 is the one to track for this issue.

One hack to reset equations is to export them to a .txt file, delete them all from the model, and re-import from the file, WITHOUT linking to it. Then delete the .txt file.

Good luck!
Thanks for the suggestions. I'll check them next time this happens.
Frank_Oostendorp
Posts: 223
Joined: Tue Mar 09, 2021 7:25 am
Answers: 3
Location: Netherlands
x 185
x 230

Re: What causes yellow equations?

Unread post by Frank_Oostendorp »

Potentional Circular Reference detection, which has changed detection levels in the last few versions of SolidWorks, causes the alarm of yellow displayed equations. Some equations had no alarm in SW2019 and performed as expected, but were potentionally to be problematic in later versions, but still performed as expected.
https://help.solidworks.com/2022/englis ... 559254#Pg0.
Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

Re: What causes yellow equations?

Unread post by Uncle_Hairball »

Frank_Oostendorp wrote: Thu Dec 07, 2023 5:59 am Potentional Circular Reference detection, which has changed detection levels in the last few versions of SolidWorks, causes the alarm of yellow displayed equations. Some equations had no alarm in SW2019 and performed as expected, but were potentionally to be problematic in later versions, but still performed as expected.
https://help.solidworks.com/2022/englis ... 559254#Pg0.
A good thought. I don't think it applies to this case, but definitely something to keep an eye on.

Thanks for the suggestion.
TTevolve
Posts: 257
Joined: Wed Jan 05, 2022 10:15 am
Answers: 3
x 87
x 168

Re: What causes yellow equations?

Unread post by TTevolve »

If you have dims used in the equation and the item is suppressed it will show as an error since it can't fine the dimension
Uncle_Hairball
Posts: 195
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 37
x 95

Re: What causes yellow equations?

Unread post by Uncle_Hairball »

TTevolve wrote: Tue Dec 12, 2023 10:13 am If you have dims used in the equation and the item is suppressed it will show as an error since it can't fine the dimension
Hmmm, I wonder if that was it. I'll have to watch for that in the future. Thanks for the help.
Post Reply