Since the installation of the 2021, I have a problem if I use several solidworks simultaneously.
Using the PDM, I have macros that automatically bother me pdfs, when it launches it opens a 2nd solidworks on the PC, saves the file and closes the solidworks that has just been opened. This in the background, it does not interfere with the work in the solidworks in progress. At least in 2017.
Since 2021, this macro closes me without warning the main solidworks randomly (no backup request, no crash report). However I don't think it's the macro, because I sometimes open 2 separate solidworks to compare parts. (more practical than 2 windows in the same solidworks when you have 2 screens), and the same problem when opening the 2nd solidworks the 1st one closes sometimes.
Does anyone else have this problem? Do we have a configuration solution?
Hello I remain doubtful about having two SolidWorks processes on the workstation. This often generates many malfunctions. In macros, it is possible to manage processes and notify the user. How is your macro made?
It's not really a macro, it's a task of MyPDM Tools (doc publication). It normally opens a new instance, rebuilds, generates the file, and closes the instance.
After that, it's true that 2 processes are not the best and in general the 2nd is unstable, but until now it was always the 2nd that crashed, never the main one.
I also have the impression that since the 2020 version, there has been a change that makes the use of a double session tricky (I'm in a basic environment without epdm).
@remrem: there are 2 cases where I use a second instance of SW, opening a model of another version (we accumulate the risks, we have several versions of SW on the machines) or opening a model in a previous state. The first case is typically we are working for a client with version X and we have a call from another client who is working with version Y. The second case is to compare 2 versions of a study.
In V2020 Sp3.0, EPDM does open a separate window for printing pdfs automatically generated via jobs.
No abnormal behavior with us on this version (except the usual crashes if the MEP file is heavy enough).
On the other hand, we had modified the basic script of the task by adding: the S-077654 script (which forces the loading of the latest versions before generating the pdf: Is it possible to modify the SOLIDWORKS® PDM Convert task script to force the task host to always get (cache) the latest version of a source file before converting the file?)
NB: the job scripts do not update themselves under EPDM. So you have to update/modify the script when you change the version of EPDM.
From memory there is an option/syntax in the script for opening the SW window that generates the file.