Is the standard solidworks API compatible with the EPDM API? Can I send information from an EPDM addin to a solidworks addin and vice versa?
So I want to use the command event to find out when pack-and-go is triggered. Once it's triggered I want to add all file paths from the ReferencedFilePre event to a Dictionary. From there I want to call EPDM specific API functions to pull whatever variables I need. Once the EPDM API triggers the PreAdd event, I can populate what I need in each file's variables.
When command 2295 (Pack-N-Go) is triggered, start populating a file list.
Once command 2295 (Pack-N-Go) is closed, send the list to the EPDM portion of the project.
Once Pre-Add is called, push values into each file's variables.
So far this is the path I'm looking at to go around my Copy-Tree issue. Is there another way to call Copy-Tree and see whatever the tool is accessing?
Here's a log I created for Pack-N-Go events.
4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_ActiveDocChangeNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_ActiveDocChangeNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_ActiveDocChangeNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_ActiveModelDocChangeNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_ActiveModelDocChangeNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_ActiveModelDocChangeNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_BackgroundProcessingEndNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_BackgroundProcessingEndNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_BackgroundProcessingEndNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_BackgroundProcessingStartNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_BackgroundProcessingStartNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_BackgroundProcessingStartNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_BeginRecordNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_BeginRecordNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_BeginRecordNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_BeginTranslationNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_BeginTranslationNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_BeginTranslationNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_CommandCloseNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_CommandCloseNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_CommandCloseNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_CommandOpenPreNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_CommandOpenPreNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_CommandOpenPreNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_DestroyNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_DestroyNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_DestroyNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_DocumentConversionNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_DocumentConversionNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_DocumentConversionNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_DocumentLoadNotify2 to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_DocumentLoadNotify2 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_DocumentLoadNotify2 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_EndRecordNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_EndRecordNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_EndRecordNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_EndTranslationNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_EndTranslationNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_EndTranslationNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_FileCloseNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_FileCloseNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_FileCloseNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_FileNewNotify2 to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_FileNewNotify2 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_FileNewNotify2 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_FileNewPreNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_FileNewPreNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_FileNewPreNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_FileOpenNotify2 to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_FileOpenNotify2 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_FileOpenNotify2 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_FileOpenPostNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_FileOpenPostNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_FileOpenPostNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_FileOpenPreNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_FileOpenPreNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_FileOpenPreNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_InterfaceBrightnessThemeChangeNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_InterfaceBrightnessThemeChangeNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_InterfaceBrightnessThemeChangeNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_LightSheetCreateNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_LightSheetCreateNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_LightSheetCreateNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_NonNativeFileOpenNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_NonNativeFileOpenNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_NonNativeFileOpenNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_OnIdleNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_OnIdleNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_OnIdleNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_PromptForFilenameNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_PromptForFilenameNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_PromptForFilenameNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_PromptForMultipleFileNamesNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_PromptForMultipleFileNamesNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_PromptForMultipleFileNamesNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_PropertySheetCreateNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_PropertySheetCreateNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_PropertySheetCreateNotify 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_ReferencedFilePre to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_ReferencedFilePre 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_ReferencedFilePre 4/24/2019 3:59:28 PM: Adding Event DSldWorksEvent_ReferenceNotFoundNotify to the list. 4/24/2019 3:59:28 PM: Allocating Event DSldWorksEvent_ReferenceNotFoundNotify 4/24/2019 3:59:28 PM: Allocated Event DSldWorksEvent_ReferenceNotFoundNotify 4/24/2019 3:59:28 PM: Event mSwEventCommandClose(int command, int reason) fired. 4/24/2019 3:59:28 PM: Command: swCommands_Tools_Addins 4/24/2019 3:59:28 PM: Reason:-3 4/24/2019 3:59:28 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:28 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:28 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:28 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:28 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:29 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:32 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:33 PM: Event mSwEventCommandOpenPre(int command, int userCommand) fired. 4/24/2019 3:59:33 PM: Command: 2295 4/24/2019 3:59:33 PM: User Command: 0 4/24/2019 3:59:33 PM: Event mSwEventReferencedFilePre(string fileName) fired. 4/24/2019 3:59:33 PM: File Name: C:\Sandbox\Sandbox\TEST3\BHCS M5 x .8 x 6.SLDPRT 4/24/2019 3:59:33 PM: Event mSwEventReferencedFilePre(string fileName) fired. 4/24/2019 3:59:33 PM: File Name: C:\Sandbox\Sandbox\TEST3\BHCS M5 x .8 x 6.SLDPRT 4/24/2019 3:59:39 PM: Event mSwEventCommandClose(int command, int reason) fired. 4/24/2019 3:59:39 PM: Command: swCommands_File_Copy_Design 4/24/2019 3:59:39 PM: Reason:-3 4/24/2019 3:59:39 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:40 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:40 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:40 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:41 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:41 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:41 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:41 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:41 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:42 PM: Event mSwEventOnIdle() fired. 4/24/2019 3:59:44 PM: Event mSwEventOnIdle() fired. 4/24/2019 4:07:01 PM: Deallocating Events. Event Count: 28 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_ActiveDocChangeNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_ActiveModelDocChangeNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_BackgroundProcessingEndNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_BackgroundProcessingStartNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_BeginRecordNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_BeginTranslationNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_CommandCloseNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_CommandOpenPreNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_DestroyNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_DocumentConversionNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_DocumentLoadNotify2 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_EndRecordNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_EndTranslationNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_FileCloseNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_FileNewNotify2 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_FileNewPreNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_FileOpenNotify2 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_FileOpenPostNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_FileOpenPreNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_InterfaceBrightnessThemeChangeNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_LightSheetCreateNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_NonNativeFileOpenNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_OnIdleNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_PromptForFilenameNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_PromptForMultipleFileNamesNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_PropertySheetCreateNotify 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_ReferencedFilePre 4/24/2019 4:07:01 PM: Deallocating Event DSldWorksEvent_ReferenceNotFoundNotify 4/24/2019 4:07:01 PM: Events Deallocated.