"Link to external file" variables .txt files are crosstalking

Mike Gera
Posts: 205
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 92
x 36

"Link to external file" variables .txt files are crosstalking

Unread post by Mike Gera »

I'm currently working on a project that has about 10 different variable text files (Tools, Equations, "Link to External File:").

They are all different filenames in different folders. For example: Part_A_variables.txt.

(But from here forward, I will refer to the variable files generically as "variables.txt".)

I am having a problem with some of the part files that use the variables.txt files crosstalking.

That is, I'll go to open a variable.txt file and find the variables from another part overwrote everything.

I'm pretty sure the reason for this is that somewhere I have a part file that is mis-referencing a variable.txt file.

The question is: how would I begin going about finding the part file that has the incorrect variable.txt file reference?

Hope this all makes sense.

Thanks for any help.
SW 2024 SP 5.0
Windows 11
colt
Posts: 56
Joined: Tue Mar 30, 2021 5:43 pm
Answers: 0
x 14
x 22

Re: "Link to external file" variables .txt files are crosstalking

Unread post by colt »

If you are still having this problem you could match file modified times. Use last modified of the variables.txt. Then perform a windows search for assembly or part that was modified at the same time.
Example search: datemodified:‎5/‎13/‎2022 ext:.sldasm
other ways to narrow the search -> https://docs.microsoft.com/en-us/window ... dfrom=MSDN
User avatar
AlexLachance
Posts: 2196
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2382
x 2025

Re: "Link to external file" variables .txt files are crosstalking

Unread post by AlexLachance »

Are you working with a "start-up part" that is used to create multiple parts that you then switch to text files?

I've noticed that SolidWorks is rather bad at handling references, no matter what type they are, so perhaps this is what is happenning to you too:

To explain, i'll post a screenshot.
image.png
In that picture, the part opened is GP504F-POUT-001, which was created from a file that was previously GP484A-POUT-001, 21741-POUT-001 and 170133-POUT-001.

If I happen to open up that 170133 file, while I have the GP504F file opened, SolidWorks then has both in it's memory, and the properties of GP484A-POUT-001 will update themselves accordingly to 170133-POUT-001 rather then the file that they should be referencing(GP504F-POUT-001).

If GP504F-POUT-001 is opened without 170133-POUT-001, everything will be fine and it will update itself as it should to it's host file.

You can imagine the P.I.T.A. we had when the issue started happenning on stiffeners that were all made from the same original file.
User avatar
DanPihlaja
Posts: 852
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 813
x 983

Re: "Link to external file" variables .txt files are crosstalking

Unread post by DanPihlaja »

There are a couple of different ways you can do it....although if you have lots of parts, this will be tedious.


Way 1:
Open a part or assembly file and RMB on equations and selcet Manage equations
image.png
Then the box at the bottom tells you which text file it is associated with:
image.png

Way 2:
Run a Pack and go on any of the parts or assemblies.
In the list, it will include all the external files associated with it.
image.png
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
Post Reply