Problem with PMPageHandler mehtod onclose

hi evry body

I develop an addin for solidworks 2012 with c++ so I create many property manager page 2 and i want to know how to do in the method onclose (file PMPageHandler.h)

to get the user input from evry  pmpage (how to call a method in the pmppage to get the data).

SolidworksApi macros
Answers 4
AT
AT 2012-11-14 Best Answer

Just pass the pointer of your PMP to PMPHandler in the constructor or in init method similar you are passing the pointer of an addin or iSwApp. Now you can call public methods of PMP to get the data. Or fire an event from handler from within the OnClose and catch this event in underlying PMPage.

______________________

Regards,

Artem Taturevych

Application Engineer at Intercad

http://intercad.com.au/

Tel: +61 2 9454 4444

SF
SF 2012-11-14

thanks Artem Taturevych

can you give me a little bit of code to do this

AT
AT 2012-11-14

Please find the sample sources attached.

Find the changes in:

UserPropertyManagerPage.h/UserPropertyManagerPage.cpp

CUserPropertyManagerPage::CreatePropertyManagerPage

CUserPropertyManagerPage::GetData

PMPData

PMPHandler.h

Init

______________________

Regards,

Artem Taturevych

Application Engineer at Intercad

http://intercad.com.au/

Tel: +61 2 9454 4444

SF
SF 2012-11-14

Thank you very much, my brother Artem