Events
To receive events, your application must register for the events by
object type. This registration must be done for each instance of a particular
object.
For example, to receive IPartDoc events, your application needs to register
with each IPartDoc object in existence (currently open part files). It
also needs to register with any future IPartDoc objects that are created
(subsequently opened or created part files). See the code generated by
the
SOLIDWORKS
add-in wizards.
The following SOLIDWORKS objects support events:
Code for all of these events, unless otherwise
noted, can be automatically generated by the SOLIDWORKS add-in wizards.
For an overview of how to program events, see Programming Events.
NOTE:
Events are implemented with delegates in the Microsoft .NET Framework.