ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
rgroberto gennari15/02/2016

Hallo,

I wrote a VBA.Add In containing a Task Pane, I'd like to know how I could do to call a Sub contained in a Taskpane code, exsample:

in my main SwAddin.vb i write this code create the Taskpane with Usercontrol

DirectCast(mTaskpaneView.AddControl(SWTaskpaneHost.SWTASKPANE_PROGID, ""), SWTaskpaneHost)

in a SolidWorks Event I want to call

Sub AddItem

'Here my code

end sub

contained in my SWTaskpaneHost

Is it possible?

Thanks

Roberto