Does anyone know how to start the check-in process for the workgroup PDM from a VBA script and then (once the user completes the dialog boxes) to return to the script and finish running the rest of that script?
The short of it is in the PDM API there is no equal to the SW API Run Command which initiates a SW command and then waits for it to finish before proceeding. I imagine you might be able to do it by having a message box pop up at the appropriate time telling the user to check-in and then loop the code until the process finishes.
I know you can enable triggers in the Vault Admin settings. Maybe you could use these as way of monitoring for the check-in to complete. A quick search through the forums for information regarding using PDM triggers yielded this (https://forum.solidworks.com/message/280955#280955) thread. At the bottom is a link to SW World presentation that discussed the use of PDM triggers and how to use them. Way more advanced than what I am used to, but maybe you could extract what you need from there.
The short of it is in the PDM API there is no equal to the SW API Run Command which initiates a SW command and then waits for it to finish before proceeding. I imagine you might be able to do it by having a message box pop up at the appropriate time telling the user to check-in and then loop the code until the process finishes.
I know you can enable triggers in the Vault Admin settings. Maybe you could use these as way of monitoring for the check-in to complete. A quick search through the forums for information regarding using PDM triggers yielded this (https://forum.solidworks.com/message/280955#280955) thread. At the bottom is a link to SW World presentation that discussed the use of PDM triggers and how to use them. Way more advanced than what I am used to, but maybe you could extract what you need from there.
Good luck.