When do new versions get created?

I'm trying to figure out why some parts keep having new versions created when checking out and checking right back in.  Sometimes, an undo checkout occurs (as I would expect it to with no changes to the file), but sometimes a new version gets created and I'm not sure what's causing PDM to think a new version should be created.

If a referencing parent file changes versions, would that cause a version change to the child part?  I tried testing this out specifically and the answer was a no, but that's the only reason why I can think of for why the new versions to my real parts are getting created.

SolidworksSolidworks Pdm enterprise Pdm
Answers 14
JF
JF 2012-11-19 Best Answer

why are you checking out files you are not changing?

if you open the files and the get rebuilt, the are flagged as changed - even if no change has been made. so EPDM will save the new version when you check it in.

SF
SF 2012-11-19

This is for a brand new rollout of PDM at my company.  I've imported a bunch of legacy files and did a lot of clean up to the properties, and then was planning on updating the parent assemblies (to get them using the latest versions of the cleaned up child parts).  However, even after checking out and checking in all the files, I've noticed that some of the child parts keep changing versions, thus requiring me to re-update the parent assemblies.

I have not been opening any of the files I checked out.  Only checking out and checking back in.

JS
JS 2012-11-19

Are you doing anything to the datacards? A datacard change would require a version bump.

SF
SF 2012-11-19

Nope, not changing the data cards.  I even did a file compare both in PDM and SolidWorks and both say the different versions of the file are identical.

JF
JF 2012-11-19

ok - so walk us through an example of what you do to a file between checking it out and chacking it back in that creates an unwanted version.

SF
SF 2012-11-20

I have multiple folders of parts and assemblies.  I checked out all the files in the first folder.  Without changing anything in the data card or the file itself, I checked the files back in.  The check-in dialog box showed that every single part being checked was going to get a new version.  I continued with the check-in, creating the first set of unwanted versions.  Then I went to the next folder and did the same exact thing, again creating more unwanted versions in the process.  This would make sense to me if each successive folder had parent assemblies referencing child parts in the previous folder, but that is not the case.

In any case, when I was done with all of the folders yesterday, I re-checked out everything and attempted to check-in again.  This time, I saw that no new versions were being created.  That was yesterday.  This morning, I moved some parts from one folder to another.  That was the only thing that changed between yesterday and now.  However, when I re-checked out all the files in the folders I updated yesterday and attempted to check in, once again, I'm seeing that PDM wants to create new versions.  Should moving parts in the folder structure cause a new version to be created?  I tried testing this out explicitly, and the answer I'm seeing is no.

JF
JF 2012-11-20

I would not expect moving a file to be a source of versioning.

I am still puzzled though as to why you checked out the parts in the first place, if you were not intending to make changes to them...

why are you checking all of these parts out?

SF
SF 2012-11-20

I'm doing this because after importing all of our legacy files, there was some clean up that had to be done to the file properties.  Doing so meant that new (wanted) versions were created and because these were created, I had to update all of the higher level assemblies to make sure they are using the most current versions of the child parts.  The only way I know of to force all of the higher level assemblies to update to the most current child versions is a batch check out and check in.

GR
GR 2012-11-21

Hi Sally, I can think of maybe 3 scenarios.

1) You are opening the file with a newer version of solidworks. For example the files were last saved in 2011 and you are using solidworks 2012. 

2) You are opening a files that are rebuilding or resolving external references.

3) along the same lines as #2, if the files are drawings that are linking to custom properies of the assembly/part inside it and that data has changed since the drawing was last saved, the drawing will regenerate and update that data.

JF
JF 2012-11-21

ok, so you DO want these new versions of the higher level assemblies (a change to the list of referenced files would count as a NEW version - because the db record is updated).

SF
SF 2012-11-21

Hi Greg, in all three of your scenarios, would I need to actually be opening the files between check in and check out in order for those updates to occur?  Because I haven't been opening any of the files.

SF
SF 2012-11-21

Yes, I do.  But I don't want updated versions for the .sldprt files and that's the part that's confusing me.

GR
GR 2012-11-22

for option 1) no. If you upgrade solidworks, everytime you open a file that is of an older format, it will automatically convert it to the current solidworks version. So for example, if you migrated in files to the vault that were of an older format, the next time the user opens the file with solidworks, it will convert it. Chances are you will be prompted to save a "read-only" file. If no one ever says yes to this... it will always ask you.

for option 2) i don't think so, but this may this depends on your settings. When a file is opened, one of the first things it does it try to find it's references. Regardless of check in our check out. Even changing printer settings will trigger the file as changed.

for option 3)  like option 2, when you open a drawing it will make sure that everything is correct with it's views and references. If it finds any differences, it will flag the file as changed and request that you save changes.

SF
SF 2012-11-23

Ok, I think option 1 may have been what happened to me.  We definitely have a lot of files built from the SW 2007 version.  What I did was do a check out/check in for all the folders I knew were sub-parts first, and then did a check out/check in for all of the folders I knew were mostly higher level assemblies.  However, I noticed today that some of the sub-part folders still had parts that were checked out.  So it must have been that when I was working with some of the higher-level assemblies, some parts were unknowingly getting saved (and I wouldn't get a read-only prompt if the sub-parts were checked out).

Thanks, Greg.