- Does anyone know of a way to automatically log out of a pdm vault? some method or command line that I can automate and schedule on a workstation?
- Does anyone know of a way to clear local cache automatically without having to log-out/in?
- Does anyone know how I can make sure that a user always sees the latest version of a PDF file? We have a place in the vault where all "working copy" PDFs go to for quoting purpose and those PDFs change, but every time our shop tries to access the update PDFs (via links) they only see the cached version. (we can only use links because the software they use for quoting only accepts URLs)
Thanks,
Thanks for the reply.
Hi,
It is not sure that is what is necessary, but there is still an option with Web Server with access through Internet Explorer.
There too is a local cache the location of which can be changed as for local views (it for computers where is not present the client of PDM).
There, if I am not mistaken, it is possible just to refresh pages.
In this case, instead of PDM File Viewer it is possible to use very convenient program - XnView (v.2.42) which with addition of gs854w32.exe allows to view PDF and many other formats.
And this viewing sometimes is even more convenient than in PDM. However, it seems there is no opportunity to see a status of files, links, etc. But if it is not necessary - very interesting option (at least for experiments).
Why XnView 32-bit version? Is and 64-bit, but at that time when I tried it - there were some problems with PDF (I do not remember precisely what). Perhaps, now these problems are absent any more.
Not everything can it is so convenient as there is a wish, but as is.
Also, I looked for other method of the solution of a question - but also here without Add-in it not to turn out -
Automatic get latest files or update cache in active folder on entry.
You can kill EdmServer with command - taskkill /im edmserver.exe /f but I think you can not call this command from browser link.
It will force you login to vault in next request of any PDF file.
Think you can not simply copy released PDFs to network location and view from there? Is it possible in your environment?
Yes, I actually tried that but it doesn't log the user out, it just "terminates" their connection. Thus all the events that happen during log out don't happen such as clearing the cache and cached files stay in local drive.
Hello
1- You can set timeout period for all licenses inc. PDM from SNL.
For more info please see attached PDF
Attachments
I believe the timeout only works if someone else is actively trying to log in. For example if User X logs into PDM and takes the last license. User X is idle for 30 mins (or whatever timeout is set), then User Y is trying to log in, then only User X will be logged out.
Kind regards
Prasad
Correct. I've already tried this. and even then it doesn't completely log the idle user out as soon as a license is available they "reconnect".
Found an explanation here: https://hawkridgesys.com/blog/tips-for-auto-logoff-in-solidworks-enterprise-pdm
If target is the latest version of files, it is possible for it can be done without Log Out/In in Vault?
Can use for this purpose better a command of receiving the latest version or cleaning / up-dating of a cache without Log Out/In?
Or target another?
Perhaps it needs to be specified in addition as it can be understood on a miscellaneous.
Idle license timeout is just that, the PC needs to be idle for the time you specify then the license will be returned to the server, flagged in the log as IN ... (INACTIVE). As soon as the PC is no longer idle the same license type is taken back out by the user. I don't believe it logs the user off the vault, but I have not specifically looked. The point of idle timeout when it works, is that a user shouldn't know it's happening.
The issue we have is if that specific license type is all in use upon coming out of idle, it doesn't "roll" to the next available license type and can cause an error. i.e. cadeditor to cadeditorandweb to processor.
Some FlexLM based software can be written as the software vs the PC (mouse movement) being idle. I am not sure which SWx uses.
If you have the ability to manipulate the hyperlink string and the PDM client is installed on the machine you could use the Conisio URL functionality. Here is a link to a long discussion on how to format the hyperlink: https://my.solidworks.com/reader/forumthreads/26177/can-you-access-files-in-epdm-via-a-hyperlink-address
The most helpful post is about 2/3 of the way down. Trouble is you need to know the project # and item # which would need to be gotten through the PDM API most likely. The following was posted by Tor
You can find more details on the arguments supported in KB solution S-018024.
In short these are the arguments available:
open – Opens the file in associated application
view – Opens the configured “Viewer” application for the file
explore – Opens an explorer window in the folder the file resides and selects the file
get – Triggers a Get of the file to the local file vault view
lock – Checks out the file
properties – Brings up the file properties
history – Brings up the file history
And now that I look closer at the get command, it seems you can actually feed the argument with a version number as well.
So the URL to get a specific version of a file would be:
conisio://{VAULTNAME}/get?projectid={PROJECTID}&documentid={DOCUMENTID}&objecttype=1&version={VERSION}
where (without the brackets):
{VAULTNAME} = Name of the vault
{PROJECTID} = ProjectID of folder containing file
{DOCUMENTID} = DocumentID of the file
{VERSION} = Version to get