1 |
< |
Imports SldWorks |
1 |
> |
Imports SolidWorks.Interop |
2 |
> |
Imports SolidWorks.Interop.swconst |
3 |
> |
Imports SolidWorks.Interop.swpublished |
4 |
> |
|
5 |
|
Namespace MAGIC |
6 |
|
|
7 |
|
'Base class for model event handlers |
8 |
|
Public Class DocumentEventHandler |
9 |
|
Protected userAddin As MAGIC |
10 |
< |
Protected iDocument As ModelDoc2 |
10 |
> |
Protected iDocument As sldworks.ModelDoc2 |
11 |
|
Protected iSwApp As SldWorks.SldWorks |
12 |
|
|
13 |
< |
Overridable Function Init(ByVal sw As SldWorks.SldWorks, ByVal addin As MAGIC, ByVal model As ModelDoc2) As Boolean |
13 |
> |
Overridable Function Init(ByVal sw As sldworks.SldWorks, ByVal addin As Magic, ByVal model As sldworks.ModelDoc2) As Boolean |
14 |
|
End Function |
15 |
|
|
16 |
|
Overridable Function AttachEventHandlers() As Boolean |
24 |
|
Public Class PartEventHandler |
25 |
|
Inherits DocumentEventHandler |
26 |
|
|
27 |
< |
Dim WithEvents iPart As PartDoc |
27 |
> |
Dim WithEvents iPart As sldworks.PartDoc |
28 |
|
|
29 |
< |
Overrides Function Init(ByVal sw As SldWorks.SldWorks, ByVal addin As MAGIC, ByVal model As ModelDoc2) As Boolean |
29 |
> |
Overrides Function Init(ByVal sw As sldworks.SldWorks, ByVal addin As Magic, ByVal model As sldworks.ModelDoc2) As Boolean |
30 |
|
userAddin = addin |
31 |
|
iPart = model |
32 |
|
iDocument = iPart |
33 |
< |
iswapp = sw |
33 |
> |
iSwApp = sw |
34 |
|
End Function |
35 |
|
|
36 |
|
Overrides Function AttachEventHandlers() As Boolean |