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.