You can download the sample script of how use ePDM APIs in the SWTaskAddin custom script from myIntercad.myToolkit – App Store for SolidWorks related content.
Script description is:
While using ePDM SWTaskAddin it is possible to modify the script for a standard task like ‘Convert’ as well as create script from the scratch. However it is not possible to add third party references to the script. So if it is required to use EPDM APIs or any other APIs like MS Scripting or Database libraries it is became more problematic.
Fortunately the easy way to workaround this is to use late binding in the macro. This code snippet demonstrates how to use ePDM API to check-out the file, open in SolidWorks and add a property, than save and check-in.
The content of the file should be copied into a ‘Script’ section of SWTaskAddIn in ePDM Administration panel.
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 Artem!
Artem, I was not able to download the toolkit, is it possibl to send an example of the late binding for EPDM?