Just thought I would double-check here before I set this instone, as there is no official documentation in SW regarding it;
Like the get preview bitmap functions, the handler passed into theCreatePropertyManagerPage has to be a handle to an in-process classto recieve the event callbacks does it not? I would presume itwould have to be for it to work. Using an out-of-process .netapplication I can create a page only by passing nothing in as thehandle, but if I pass in a handle to the class I get an invalidcast error, which suggests it is returning -1, which would indicatean invalid address that has been caught. If I create a pluginin-process .net application I can pass in the class fine.
Given those two situations I would say the calling function has tobe run in-process, and so this is what I am documenting in my book,but I would like your feedback before doing this in-case someonehas found a way around this?SolidworksApi macros
Like the get preview bitmap functions, the handler passed into theCreatePropertyManagerPage has to be a handle to an in-process classto recieve the event callbacks does it not? I would presume itwould have to be for it to work. Using an out-of-process .netapplication I can create a page only by passing nothing in as thehandle, but if I pass in a handle to the class I get an invalidcast error, which suggests it is returning -1, which would indicatean invalid address that has been caught. If I create a pluginin-process .net application I can pass in the class fine.
Given those two situations I would say the calling function has tobe run in-process, and so this is what I am documenting in my book,but I would like your feedback before doing this in-case someonehas found a way around this?SolidworksApi macros