I need to show the while click the button in addin.
May i know, What are all the codes i need to use in "UI Callbacks"?
I'm trying in VB.Net.
You need to show your form from the UI callback:
Public Sub MyCallback()
Dim form As New MyForm()
Just install the SolidWorks API SDK and there will be an implemented callback sample - modify it as per your needs.
I have UI callbacks.
I created some windows forms in visual studio. How can I initialize those with UI callbacks?
Just i tried this. Working But in that form may i know how to get the active document name?
While Im tried this line, its getting crash
swModel = SwApp.ActiveDoc
Thanks a lot
You need to assign the pointer to SwApp passed to ConnectToSw function to be able to reuse it in your code. Could you please attach the source file or just code snippet of how you assign the sw variable?
Kindly refer the codes below.
These codes are from form (MyForm) only,
You need to create a constructor (Sub New) in the form with a parameter so you will pass the pointer to sw app from your add-in when you create an instance of the form.
Could you please share some examples.?
Got It Thanks
Retrieving data ...