Building a revision history manually...

This is in regard to importing existing data into a vault for a new EPDM installation.

Suppose I have a part 2001_A.sldprt and 2001_B.sldprt representing revisions A and B of my part.  I can place 2001_A into the vault, change its name to 2001.sldprt (removing the revision reference from the file name) and check it in, then release it to revision A using a workflow.

Now, I want to place 2001_B into the vault but not as a separate file, rather as the next revision of 2001.  Can I check out 2001 (rev A), then open rename 2001_B (outside the vault) to 2001.sldprt, then open 2001.sldprt (which is actually the B revision) and check it in?  It would be seen as a new version of the file in the vault, and then I could release that as rev B using my workflow.  Now both parts are listed in the vault as revisions A and B of a single part, wouldn't they?  Would this work?

I'd do a simple test if I had access, but I'm still in the process of getting the system approved, and having a plan for importing our existing files without losing the revision history would be a vital part of getting approval.

Thanks.

Brian-

SolidworksSolidworks Pdm enterprise Pdm
Answers 7
JF
JF 2010-06-03 Best Answer

that should work. check out the rev A file, over-write it in your local vault view with the rev B file, and as long as the file name still matches, EPDM should be content that it is just a change to the same file.

you will need to manuall check that all the custome properties are correct (no typos in part nmber and such).

Jeremy

KK
KK 2010-07-22

I'm running into a similar problem.  I need to import a bunch of historical files from another PDM System.

I can write a macro that will save them into the PDME vault, but I will need to set the dates in PDME so they will accurately represent the revision flow of that part.

i.e.

Part1.sldprt     Rev 0     7/21/2008

Part1.sldprt     Rev 1     8/1/2008

Part1.sldprt     Rev 2     6/15/2009

Part1.sldprt     Rev 3     7/1/2010

Putting them in order is not the problem.  Rolling back the dates is a problem.  I want to avoid backdooring the database.

I simply need an API that can set the date against any revision history item.  Any ideas?

Kent

SF
SF 2010-07-22

Kent, You will not be able to do that using the API. The best you can do is put the date in the State change comment. You can then see it in the history of the file.

KK
KK 2010-07-22

Hmmm....  Hard to accept that PDME programmers are ok with this.  Seems like a fundamental problem.  Can't imagine a company not having this problem they import any kind of data.

Perhaps I will have to backdoor the SQL in order for this to happen.

Kent

JS
JS 2010-07-27

I cannot speak for the developers on this, but it seems as if the API is written with the intent to preserve the intentions of a PDM system...to preserve files and their history.

There are very few API commands available that give you the ability to break the PDM golden rule. -If you want to change history, you almost always have to do it via a database back door, something very much frowned upon.

SF
SF 2010-07-30

Might you be able to use Templates to do at least some of this activity?

BD
BD 2010-08-12

Just an update on our need...

I occurred to me that even if I could create the new revision history as I was saying it would destroy all the references from assys to parts because they depend on the file name.  Creating a new revision history 'PDM-Style' would change all the parts' file names and thus obliterate my assembly linkages.

As a result, we've decided to leave the legacy data as is when we change over (new parts would be handled by PDM in the usual way), with the proviso that for legacy files no further revisions would be allowed.  Any further design changes would require the issuance of a new part number, thus bringing the part into the PDM revision history method.