You can download the sample script from myIntercad.myToolkit – App Store for SolidWorks related content.
Script shows how you can check out, edit, and check-in model into ePDM vault.
Select and download the sample at this path SolidWorks API Tutorials/ePDM/How To.../Task AddIn/Use ePDM API in SWTaskAddIn or just enter id=104 in filter and Hit Enter or ‘Filter’ button.
You can download the myIntercad for free at this link: http://intercad.com.au/myintercad/
Please let me know if you have any questions or issues.
Artem Taturevych, Application Engineer at Intercad (Australia)
translationXpert – add-in to translate SolidWorks models
myIntercad – an integrated tool for SolidWorks Professionals
Thank you very much, but I didn't find the script at the link.
Do you know what is the command for "check in" in VBA?
The script is not at the link. You can download the lightweight software (SolidWorks add-in) at the link which is the channel to various SolidWorks contents you can download through this channel.
Here is the code snippet:
If True = file.IsLocked Then
file.UnlockFile 0, ""