swApp Events and C#

Apr 01, 2007 0 Replies

Is there anybody who write in C# and can show me a code with how to handle the events from SW Application?



Is it have to be done sth like that: public event SldWorks.DSldWorksEvents_ActiveDocChangeNotifyEventHandler swAppActiveDocChangeNotify;



or just SldWorks.SldWorks swApp; swApp = new SldWorks.SldWorksClass(); swApp.ActiveModelDocChangeNotify += new DSldWorksEvents_ActiveModelDocChangeNotifyEventHandler swApp_ActiveModelDocChangeNotify);



Nothing works :/



Please help me with a sample of simple code with one handler in C#.



Thanks in advance.


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required