Page 1 of 1

Quick Equation Question

Posted: Tue Mar 08, 2022 2:45 pm
by m2shell
I built an assembly a year ago with some equations in text file. Normally I adjust the text file values and the part / assembly will update its own values to reflect the text file's equations. But some strange things are happening now and I"m not sure if I forgot how this all works, or if SW is being buggy.

1. Right now I'm trying to edit the assembly and I am finding that even if I save the text file with a new value for an equation, somehow the value in text file will revert back to the old value after I rebuild a part that is linked to that equation file.

2. Can a file with multiple configurations reference a different equation file in different configurations? I had thought not but that seems to be something happening now. (One config looks at the correct equation file, but another config will look at the equation file of a previous version's folder - The problem of equations not correctly or reliably updating when Pack-N-Go is known to me, but I cant recall a problem with configurations like this)

3. For some reason SW is putting an extra carriage return between in my equation file, so each equation is separated by a blank line. This is new and somewhat annoying.

grrrrr

Re: Quick Equation Question

Posted: Tue Mar 08, 2022 2:47 pm
by m2shell
SW 2021 SP5.1

Re: Quick Equation Question

Posted: Wed Mar 09, 2022 6:44 am
by the_h4mmer
@m2shell I tried the equation text file exactly once (with PDM) on 2018 and I saw all kinds of issues after I first got it working. After that, I haven't tried it again (but also really haven't had the need). I wish this would work well, but we updated to the same version of Solidworks recently, so I'll have to try that out again.

1. Are you saving things in PDM by chance? Wonder if the reference to the text file needs to be updated to the latest version? Even if not in PDM, maybe there's a reference update or duplicate file name that is getting used?

2. I noticed the configuration dropdown in the Equations Manager as well. I'm wary of trying, but it could be possible to have different 'Global' variables for various configurations, seems like an oxymoron to me tho.

3. ¯\_(ツ)_/¯ Maybe they really like whitespace?

Re: Quick Equation Question

Posted: Wed Mar 09, 2022 7:08 am
by AlexLachance
m2shell wrote: Tue Mar 08, 2022 2:47 pmSW 2021 SP5.1
Image

Re: Quick Equation Question

Posted: Wed Mar 09, 2022 8:16 am
by m2shell
the_h4mmer wrote: Wed Mar 09, 2022 6:44 am @m2shell I tried the equation text file exactly once (with PDM) on 2018 and I saw all kinds of issues after I first got it working. After that, I haven't tried it again (but also really haven't had the need). I wish this would work well, but we updated to the same version of Solidworks recently, so I'll have to try that out again.

1. Are you saving things in PDM by chance? Wonder if the reference to the text file needs to be updated to the latest version? Even if not in PDM, maybe there's a reference update or duplicate file name that is getting used?

2. I noticed the configuration dropdown in the Equations Manager as well. I'm wary of trying, but it could be possible to have different 'Global' variables for various configurations, seems like an oxymoron to me tho.

3. ¯\_(ツ)_/¯ Maybe they really like whitespace?
Thanks for the reply! Not using PDM, and yes, you can have different global variable values with different configurations - but I DONT think this applies to externally-linked equations, so this behavior is unexpected.

I did do a "repair" of my SW installation and made sure my pc has all current updates (and backups!). Things are perhaps a little better now - ie I'm not getting the "rewriting over my equation file" behavior anymore (so far).

Eh. Fingers crossed. The whitespace thing is just annoying really - I need a bigger window to see all my equations. alas.