1 Reply Latest reply on Nov 15, 2012 4:58 PM by Artem Taturevych

    Active PMP in PMPageHandler

    Lamourou Abdallah

      Hi evry Body

      can any one help me , I developp with c++ an addin for solidworks and I need to know the active PMP (i have more than five pmpage) when I m in the PMPageHandler.h.

        • Re: Active PMP in PMPageHandler
          Artem Taturevych

          So you have different classes for PMPages? If so create some public/static field in your addIn class like ActivePMPage with the type either integer, string or pmp and change this variable from within the Show method for every PMP:

           

          int ActivePMP;

           

          ...

          class PMP2

          {

              void Show()

              {

                  AddIn::ActivePMP = 2;

              }

          };

          ...

          class PMP1

          {

              void Show()

              {

                  AddIn::ActivePMP = 1;

              }

          };

           

          ...

          class PMP3

          {

              void Show()

              {

                  AddIn::ActivePMP = 3;

              }

          };

           

          ______________________

          Regards,

          Artem Taturevych

          Application Engineer at Intercad

          http://intercad.com.au/

          Tel: +61 2 9454 4444