I would like to do a macro to turn on and shut off addins in my
solidworks. Anybody have any ideas.
|
|
0
|
|
|
|
Reply
|
madohman (2)
|
12/1/2005 10:06:56 PM |
|
How would this be any simpler than going to "Tools --> Addins"?
|
|
0
|
|
|
|
Reply
|
That70sTick
|
12/1/2005 10:17:02 PM
|
|
Um.. use the Solidwroks office toolbar?
unless your referring to other addins that are on the office toolbar.
Hope that helps
SteveT.
"IL_Bow_Man" <madohman@home-shield.com> wrote in message
news:1133474816.385455.85260@g49g2000cwa.googlegroups.com...
> I would like to do a macro to turn on and shut off addins in my
> solidworks. Anybody have any ideas.
>
|
|
0
|
|
|
|
Reply
|
SteveT
|
12/1/2005 10:24:01 PM
|
|
IL_Bow_Man wrote:
> I would like to do a macro to turn on and shut off addins in my
> solidworks. Anybody have any ideas.
>
How about this one... Got it from NG bout two years back... cant
remember from who....
Just modify the path to your add-in DLL... works fine here.
---------------------------------
Dim swApp As Object
Dim RetVal As Long
'Path to the add in DLL for your application
Const strAddInPath As String = "C:\the_path_to_your_addin"
Sub main()
Set swApp = Application.SldWorks
If Not swApp Is Nothing Then
RetVal = swApp.LoadAddIn(strAddInPath) 'Load Add in
If RetVal = 2 Then 'add in already loaded
'Unload the add in
swApp.UnloadAddIn strAddInPath
End If
End If
Set swApp = Application.SldWorks
End Sub
|
|
0
|
|
|
|
Reply
|
Kvick
|
12/2/2005 6:17:40 AM
|
|