5 Replies Latest reply on Dec 8, 2016 10:38 AM by Tony Van De Velde

    PropertyManagerPage2 Invalid Cast Exception

    Lukas Najman

      Hello everybody,

       

      I am currently writing a C# add-in and I want to create a custom PropertyManagerPage. But if I try to do so using the code below, I get Invalid cast exception.

      PropertyManagerPage2 mPropertyManagerPage = (PropertyManagerPage2) mSolidworks.CreatePropertyManagerPage("Batch PDF", 1, this, ref mIntErrors);
      

       

      I am using .dll libraries from the Solidworks installation path. Does anybody know what the problem could be? Thank you in advance.

       

      Lukas