Skip to main content
23-Emerald III
December 6, 2012
Question

Clean up workspaces

  • December 6, 2012
  • 14 replies
  • 7137 views

Preparing my users for an upgrade from Windchill/PDMLink 9 to 10 and want some feedback on a best practice. As part of the upgrade, all workspaces MUST be deleted before I do the upgrade.


What is the cleanest method for the users to remove their workspaces? I have asked them to do the 3 steps below. As I was thinking some more, is step 2 needed for a clean workspace delete? Will deleting the workspace only cause issues with marking the files as being removed from the workspace?


1) Check-in or undo checkout all files


2) Open each workspace and remove all files


3) Delete the now empty workspace


14 replies

1-Visitor
December 6, 2012
What most WindChill users do is delete the folder under "WF" that has all of
the particulars for the workspaces. Then when that user opens up Pro/E the
next time, a new set of folders, etc is created. SIMPLE!



Michael P. Locascio


1-Visitor
December 6, 2012
Agreed, WS's are fine but uses need a fresh cache as part of the upgrade on the clients. I pretty much remove as much as possible under Appdata/Roaming/PTC and maybe even LocalLow folder as well. Workspaces themselves upgrade just fine.

They key from a user standpoint is to have everyone start checking in on Monday if you are doing a Friday upgrade. Inevitably there is a guy or two that haven't even uploaded in over a month and will have significant issues resolving checkin problems. Incremental checkins help mitigate this as the week goes on.

[cid:image001.gif@01CDD392.83756FD0]

Steve Vinyard
Application Engineer
BenLoosli23-Emerald IIIAuthor
23-Emerald III
December 6, 2012
I find this approach to give me problems because you are deleting the OS location of the files BUT Windchill will still thinks those files are in a workspace.

I do delete the WF folders but only AFTER the workspaces have been deleted in Windchill.


Thank you,

Ben H. Loosli
USEC, INC.
1-Visitor
December 6, 2012
Been there and done that. I had a lot of "local stuff" that I needed to
check in when I worked for Cummins. That was a bit messy, to say the least.



Michael P. Locascio


1-Visitor
December 6, 2012
Ben, deleting the .WF is a very good thing. This is not a problem as the WS's are stored server side. I've done well over 40 migrations/Upgrades for thousands of users and never once removed workspaces.


[cid:image001.gif@01CDD395.F6D6EA00]

Steve Vinyard
Application Engineer
1-Visitor
December 6, 2012
REALLY? You have "never removed workspaces" to do your migrations?



How do you do that? Usually everywhere I have been the buzz is that you
almost always have to resolve or clean out your workspaces beforehand.



Michael P. Locascio


1-Visitor
December 6, 2012
If you were migrating from Ilink 3.4 that would be n

13-Aquamarine
December 6, 2012
Part of my process when we rehosted out PDMLink this last summer was to have the users run a script that backed up their local cache to a folder and then renamed all the files to the original ProE names. That way if the user was missing anything they could go look in that directory for the files. This saved a couple of guys some real head aches.

This is what my script looks like: windcill_update.bat

1. set INNAME=backup_cache

2. set BACKUPRENAME=%INNAME:.ps=%-%date:~10,4%-%date:~4,2%-%date:~7,2%

3. if not exist "%USERPROFILE%\pro\wf4_home\%BACKUPRENAME%" (mkdir "%USERPROFILE%\pro\wf4_home\%BACKUPRENAME%")

4. xcopy "%APPDATA%\PTC\ProENGINEER\Wildfire\.wf\.cache2008\wpdms2.llnl.gov443\lid_*" "%USERPROFILE%\pro\wf4_home\%BACKUPRENAME%\"

5. copy \\<server_name>\<share_name>\bin\recover_workspace\WorkspaceRename_2.exe "%USERPROFILE%\pro\wf4_home\%BACKUPRENAME%\."

6. cd /d "%APPDATA%\PTC"

7. ren "ProENGINEER" "%BACKUPRENAME%"

8. cd /d "%USERPROFILE%\pro\wf4_home\%BACKUPRENAME%"

9. WorkspaceRename_2.exe

Lines 1 & 2 set the variable BACKUPRENAME to be backup_cache-xxxx-xx-xx where xxxx-xx-xx is year, month, day
Line 3 creates a directory with that name
Line 4 copys the lid_* files to the new directory, only the files starting with lid_ are locally modified.
Line 5 copys the executable that will rename the lid files into the directory. There is another program on the PTCUser site that does this also.
Lines 6 & 7 changes directory to the cache location and renames the ProENGINEER folder to the backup name
Lines 8 & 9 changes back to the new directory and runs the rename command.

David Haigh
1-Visitor
December 6, 2012
WS's are server side. They are part of the database that is upgraded. Can you imagine what an immense amount of work it would take to literally delete all workspaces before an upgrade for 300+ CAD users out of the database? It's not needed in the least and I've never seen it in a PTC upgrade guide (not saying much though).

Just a note, I'm strictly referring to server side workspaces (ones visible via a web browser. I do of course always have users remove their .wf cache



[cid:image001.gif@01CDD397.31C32F10]

Steve Vinyard
Application Engineer
1-Visitor
December 6, 2012
Sorry, typing one-handed today. If the WS data is uploaded to the server then wiping the client WS does not compromise anything.