Pack and Go 2023 Duplicate filenames in red?

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
JMOS4
Posts: 64
Joined: Wed Apr 07, 2021 8:55 am
Answers: 0
x 12

Pack and Go 2023 Duplicate filenames in red?

Unread post by JMOS4 »

Hi all,

Getting a error with 2023 pack and go it gives this dialog but nothing is red so what gives
image.png
Regards,
Jim
User avatar
AlexLachance
Posts: 2174
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2353
x 2008

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by AlexLachance »

2023 is only in BETA, your question should be adressed to them directly.

Edit: Have you actually looked any further than for red? The message is pretty specific, look into that, maybe that could give you a clue.
JMOS4
Posts: 64
Joined: Wed Apr 07, 2021 8:55 am
Answers: 0
x 12

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by JMOS4 »

Hi Again,

I looked although it did have some virtual parts so maybe that has something todo with the error, never seen it before but at a new job so who knows how things are configured so to speak.

Regards,
Jim
User avatar
AlexLachance
Posts: 2174
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2353
x 2008

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by AlexLachance »

JMOS4 wrote: Tue Aug 23, 2022 12:58 pm Hi Again,

I looked although it did have some virtual parts so maybe that has something todo with the error, never seen it before but at a new job so who knows how things are configured so to speak.

Regards,
Jim
I'd say virtual parts would be a pretty good guess. Have you tried doing the same pack and go but with only one file selected?
User avatar
josh
Posts: 293
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 16
x 22
x 500

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by josh »

Pack and Go is bugged - 2022 is the same.

If you have an assembly that references more than one file with the same name (for example, Screw.sldprt that's stored in multiple different locations), PnG will never allow you to proceed. Even if these files are de-selected for copying. Even if these same-name files are suppressed, it will keep putting the filenames in red. Even if you change the filenames.
User avatar
tsmith
Posts: 35
Joined: Wed Dec 08, 2021 11:36 am
Answers: 0
x 99
x 30

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by tsmith »

Can confirm, having the same problem SOMETIMES with 2022.2.
User avatar
jcapriotti
Posts: 1852
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1196
x 1984

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by jcapriotti »

josh wrote: Tue Aug 23, 2022 1:38 pm Pack and Go is bugged - 2022 is the same.

If you have an assembly that references more than one file with the same name (for example, Screw.sldprt that's stored in multiple different locations), PnG will never allow you to proceed. Even if these files are de-selected for copying. Even if these same-name files are suppressed, it will keep putting the filenames in red. Even if you change the filenames.
Because this should never be done, ever. I would be glad PnG is preventing it from even trying to copy the structure until this issue is fixed in the files. Did I mention this should never be done, ever?
Jason
User avatar
josh
Posts: 293
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 16
x 22
x 500

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by josh »

jcapriotti wrote: Wed Oct 05, 2022 6:14 pm Because this should never be done, ever. I would be glad PnG is preventing it from even trying to copy the structure until this issue is fixed in the files. Did I mention this should never be done, ever?
Of course it shouldn't be done, but I didn't want it to copy the files. I didn't even want it to copy the structure. The offending files were suppressed components of suppressed assemblies, and I selected the option not to include suppressed components. My purpose for the PNG was to send it to someone who would never have a chance to possibly encounter the duplicate filenames. Even if the structure were copied, it would never cause a problem because these other "same name" files are actually copies of the exact same file, just in a different directory. So the models even open up just fine. These are large complex assemblies all with multiple configs each with different suppression states which I didn't have the time to dig through and fix. I absolutely knew what the F I was doing. If SW was willing to save the files in the first place, it should be fine with a PNG.
User avatar
jcapriotti
Posts: 1852
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1196
x 1984

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by jcapriotti »

@josh I guess call me "jaded" to the whole "duplicate" issue, but I've been fighting this with users for 20+ years. If I had my way, SolidWorks would completely block users from ever doing anything with duplicate filenames until its fixed. I've spent many hours troubleshooting user issues only to find out that there was a duplicate copy of a file somewhere. It's frustrating when a user says "My changes are gone, this software sucks"....then you find out they had a copy somewhere with their changes but they loaded the original version and they get errors. They should've renamed their copy, we have a standard and naming scheme for this exact situation. PDM helps but we have some users working outside PDM for various reasons.
josh wrote: Wed Oct 05, 2022 9:34 pm Even if the structure were copied, it would never cause a problem because these other "same name" files are actually copies of the exact same file, just in a different directory. So the models even open up just fine.
I'm going to disagree here. Unless you've programmed some sort of PDM'esqe file management tool that takes "users" out of the equation, those copies will deviate. Only one of the copies can be loaded into memory. So if different copies are referenced in different sub-assemblies, it's a crap shoot which one gets loaded first. As soon as they deviate, even in small ways, you get errors or other problems that seem very random to the user.
josh wrote: Wed Oct 05, 2022 9:34 pm These are large complex assemblies all with multiple configs each with different suppression states which I didn't have the time to dig through and fix. I absolutely knew what the F I was doing. If SW was willing to save the files in the first place, it should be fine with a PNG.
I'll agree that SolidWorks shouldn't allow it to save that way. Or should prompt when it can't save and there is a duplicate file in the path, because that's what is really happening, it's not saving all sub-assys because some are probably set "read-only". I would fix these problems now as fixing it later is usually far worse and more time consuming.
Jason
Fajozo
Posts: 1
Joined: Thu Jan 12, 2023 3:23 am
Answers: 0

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by Fajozo »

Hello guys. I have the same problem from start using SW 2022 (earlier I used 2019). Can you explain me how can I fix this problem because now it's frustrating me very much. I try to delete red signed files and it did't help me o[ . I have many big assamblys with this problem so what can I do with this easiest way???
bbokser
Posts: 1
Joined: Sat Feb 04, 2023 5:47 pm
Answers: 0

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by bbokser »

@jcapriotti This is indeed a major issue, but the whole point of Pack and Go is to move all of the files in an assembly to one location while maintaining the correct references. This makes it the perfect candidate for preventing this "duplicate filename" issue, except that it doesn't actually know what to do in this situation and farts out. Dassault should add a simple interface in Pack and Go for selecting the "correct" file location to use as the reference for all files with the duplicate name going forward. This would save many users hours of headaches.
User avatar
mihkov
Posts: 44
Joined: Sun Feb 05, 2023 2:01 am
Answers: 0
x 17
x 24

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by mihkov »

jcapriotti wrote: Wed Oct 05, 2022 6:14 pm Because this should never be done, ever. I would be glad PnG is preventing it from even trying to copy the structure until this issue is fixed in the files. Did I mention this should never be done, ever?
You're absolutely right. There should not be 2 files with the same name and different paths in the same project. If this is the case, you need to reconsider your approach to work.

I wrote a macro for myself which is a stripped-down Pack and Go function. It works perfectly when you need to send your entire project with branched file storage to an external engineer, without links, drawings, envelopes - only parts that are now loaded into the upper assembly. And everything is added to one folder, if the names match - the file is simply overwritten. I added the macro to the SW API section.
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 995
Contact:

Re: Pack and Go 2023 Duplicate filenames in red?

Unread post by zxys001 »

Curious, does it help/work when using "Keep full folder structure"
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
Post Reply