AnsweredAssumed Answered

PropertyManagerPage2 Invalid Cast Exception

Question asked by Lukas Najman on Aug 24, 2016
Latest reply on Dec 8, 2016 by Tony Van De Velde

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

Outcomes