Hello everybody;
I work on an Add-in for solidworks,
I want to stay in the menu after validation
So i added a pin in the interface so that then user can choose whether to execute the function once,
or if he wishes to remain in the menu to execute it several times.
But i can't re-display the PropertyManager page after the add-in finishes its work.
This my code :
Private swDoc As ModelDoc2
Private sispmpage As PropertyManagerPage2
Public Sub AfterClose() Implements IPropertyManagerPage2Handler9.AfterClose
' Code to start the work of the add-in
swDoc.ClearSelection2(True)
If pinned Then
sispmpage.Show2(0) ' <=== carshes here
sispmpage.Pinned = True
End If
End
End Sub
Thank you in advance
SolidworksApi macros