Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Installation, PDM, standards, training, support, part numbering, rev schemes, etc.
User avatar
bnemec
Posts: 1839
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2421
x 1325

Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by bnemec »

As it seems with any newer commercial software that runs on Windows; if it isn't working as expected, close it and reopen it. So users are getting used to me telling them to right click the "blueberry" icon in system tray and click "Exit" If I understand correctly this is a somewhat friendly way to stop the EdmServer.exe process on the client which, upon next request to the vault, will start new fresh connections to the servers.

What about PDM Search Tool, do I tell them they need to close all PDM Search windows? Also, Solidworks PDM Add In, does the add in have it's own connection to the servers or does it go through the EdmServer.exe service as well, which would make me assume they need to close out of Solidworks as well?

Thank you.
image.png
User avatar
Diaval
Posts: 87
Joined: Wed Mar 17, 2021 12:01 pm
Answers: 7
Location: Stockholm
x 50
x 109

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by Diaval »

Everything on the client goes through EdmServer.exe.

It is not necessary to close the Search tool or SolidWorks if you need to restart the PDM client service on the system but it's never a bad idea to restart other processes that use EdmServer when restarting that one.

I would highly recommend a restart of the explorer.exe process when you restart EdmServer though. The explorer process can hold onto some PDM user data even through a restart of EdmServer.

If you have the PDM stand alone search tool open when you exit the blueberry, it will clear the search window. If you try to use the search tool it will start EdmServer and prompt for a login. If you have SolidWorks open with the add-in enabled, it will start EdmServer and prompt for a login if it needs to use PDM again. (If you are using Windows login with automatic login enabled you won't see the login prompt. It will just automatically start EdmServer and login as needed. )
-- To espouse elucidation we must eschew obfuscation
User avatar
bnemec
Posts: 1839
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2421
x 1325

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by bnemec »

Diaval wrote: Tue Mar 30, 2021 3:09 pm Everything on the client goes through EdmServer.exe.

It is not necessary to close the Search tool or SolidWorks if you need to restart the PDM client service on the system but it's never a bad idea to restart other processes that use EdmServer when restarting that one.

I would highly recommend a restart of the explorer.exe process when you restart EdmServer though. The explorer process can hold onto some PDM user data even through a restart of EdmServer.

If you have the PDM stand alone search tool open when you exit the blueberry, it will clear the search window. If you try to use the search tool it will start EdmServer and prompt for a login. If you have SolidWorks open with the add-in enabled, it will start EdmServer and prompt for a login if it needs to use PDM again. (If you are using Windows login with automatic login enabled you won't see the login prompt. It will just automatically start EdmServer and login as needed. )
Thank you @Diaval for the verbose answer. I would mark it correct. Maybe I can some day @matt ;) Until then I'll just use the #correct search term!
User avatar
jcapriotti
Posts: 1790
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1126
x 1937

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by jcapriotti »

Here's a batch script you can give to the users to "restart" all PDM processes.

Code: Select all

taskkill /f /IM explorer.exe
taskkill /f /IM EDMSERVER.exe
taskkill /f /IM Search.exe
taskkill /f /IM ViewServer.exe
start explorer.exe
exit
Jason
User avatar
matt
Posts: 1532
Joined: Mon Mar 08, 2021 11:34 am
Answers: 18
Location: Virginia
x 1158
x 2281
Contact:

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by matt »

bnemec wrote: Tue Mar 30, 2021 4:15 pm
Thank you @Diaval for the verbose answer. I would mark it correct. Maybe I can some day @matt ;) Until then I'll just use the #correct search term!
The closest one I could find was for an earlier version. Not sure how to edit it. We'll get there, though.
User avatar
Diaval
Posts: 87
Joined: Wed Mar 17, 2021 12:01 pm
Answers: 7
Location: Stockholm
x 50
x 109

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by Diaval »

jcapriotti wrote: Tue Mar 30, 2021 4:28 pm Here's a batch script you can give to the users to "restart" all PDM processes.

Code: Select all

taskkill /f /IM explorer.exe
taskkill /f /IM EDMSERVER.exe
taskkill /f /IM Search.exe
taskkill /f /IM ViewServer.exe
start explorer.exe
exit
You should add the /t switch at the end of the taskkill statements to make sure it ends the entire process tree

Other client side processes
taskkill /f /IM FileViewer.exe /t
taskkill /f /IM AddInSrv.exe /t
taskkill /f /IM Inbox.exe /t

and if you use Items you can also add
taskkill /f /IM ItemExplorer.exe /t

For users who use Report Generator add
taskkill /f /IM Report.exe /t

To close the Admin tool add
taskkill /f /IM ConisioAdmin.exe /t

To close the data card editor add
taskkill /f /IM CardEdit.exe /t

I generally kill explorer last in my scripts but I don't know if it matters.
-- To espouse elucidation we must eschew obfuscation
User avatar
jcapriotti
Posts: 1790
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1126
x 1937

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by jcapriotti »

@Diaval Thanks, the /t switch wouldn't hurt, its been working for years but maybe a rogue process could be left behind. Wonder if anyone has traced dependencies?

Not sure on the explorer process either. I think my rationale was that PDM runs inside explorer so killing it first would help the rest close out.
Jason
User avatar
majo
Posts: 18
Joined: Thu Mar 25, 2021 3:43 am
Answers: 0
Location: Erkelenz, Germany
x 10
x 24

Re: Exit PDM, close PDM Search tools and Solidworks PDM Add in first?

Unread post by majo »

Here ist my PDM Shutdown

@echo on
rem flag usage: /f (forcefully terminate), /im (the image name of the process), /t (terminate entire process tree) <end>

taskkill /f /im ViewServer.exe /t
taskkill /f /im ConisioAdmin.exe /t
taskkill /f /im Search.exe /t
taskkill /f /im InBox.exe /t
taskkill /f /im EdmServer.exe /t
taskkill /f /im EdmSer~1.exe /t
taskkill /f /im addinsrv.exe /t

taskkill /f /im explorer.exe && explorer

goto:eof

rem exit
rem pause
RTFM or ask Mom!
Post Reply