I found this event and figured it would work regardless of the type of file activity the user performed, such as changing config, changing files, etc. However, I can't figure out how to "attach" to it. I can't just throw it out there.....
If I do this: Public WithEvents Part As SldWorks.PartDoc
then I can watch for this, and it works: Private Function Part_ActiveConfigChangePostNotify() As Long Apply_Button.Enabled = True End Function
However, my opening Dim statement is: Dim Part As Object because the file could be either a part or assy file.
So, I thought I could use the ActiveDocChangeNotify to watch for every change. Do I need to do a "Public WithEvents..." statement to handle this? If so, how do I handle both part & assy files?
Thanks once again for the help. (Humbly)
WT