AnsweredAssumed Answered

Can i call my Exe or Dll from my Button on SW ?

Question asked by Nishihama Sayuri on Jun 7, 2015
Latest reply on Jun 8, 2015 by Deepak Gupta

I made HelloWorld.Exe / HelloWorld.dll  by VB.NET. Can I call my exe / dll by clicking a button on SW tab ?

 

■HelloWorld.exe  /  HelloWorld.dll

 

'-- Class1.vb ---------------------------

Public Class Main

    Public Sub Test

       MsgBox("Hello World.")

    End Sub

End Class

'--------------------------------------------

 

*****

I tried to

(1)Register Key (for dll):   \HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks\Addins\{CLSID}

(2)C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "C:\AAA\HelloWorld.dll" /tlb

 

Assign SolidWorks Macro to Button

http://help.solidworks.com/2013/English/api/sldworksapiprogguide/GettingStarted/Assign_SolidWorks_Macro_to_Button.htm?id=a04b8cd19423461e805c27492b975387

 

(3)I tried to Assign dll (this URL).

  Though I was able to select "*.dll" file, but can't select entrypoint.

 

And I can't check ON my dll on Tools->Addin on SW.

 

Please more advises.

Thank you.

Outcomes