AnsweredAssumed Answered

API C# Property Manager Page: macro terminates after initialisation

Question asked by Christoph Engelhardt on Dec 29, 2016
Latest reply on Jan 11, 2017 by Christoph Engelhardt

Hi there,


I am currentyl tyring to implement a property manager page with C#. I use Visual Studio Express 2015, Solidworks 2016 SP5, on a Windows 7 Enterprise 64 bit OS.


When I launch the code inside Visual Studio, the property manager page appears correctly in Solidworks. Though as soon as the property manager page is created, the macro exits. Events from the property manager page are not handled. When I close the property manager page, Solidworks kind of freezes. All functions are greyed out and I have to use the task manager to close Solidworks.


It seems to me, that the macro exits after the pmPage.Show() command instead of waiting for user input...


I would be glad if someone could give me a hint how to solve this issues.


Thanks in advance!