drabinowitz

trying to develop element relative display context change event handler in c# processbook add-in

Discussion created by drabinowitz on Dec 20, 2012
Latest reply on Dec 20, 2012 by drabinowitz

Hi I'm trying to develop element relative display context change event handler in c# processbook add-in and I'm running into some trouble.  I tried to set up my context change event handler in the same fashion as kb00425 but I guess I'm not translating things correctly:

 

this.app.ContextHandlers.Item("E").ContextChanged += new EContextHandlerEvents_ContextChangedEventHandler(Connect_ContextChanged);
}

 

public void Connect_ContextChanged(out Display FromDisplay, out ContextHandler FromContextHandler)
{
FromDisplay = this.app.ActiveDisplay;
FromContextHandler = this.app.ActiveDisplay.ContextHandlers.Item("E");
string tags;
MessageBox.Show("hello");
foreach (Symbol groupsym in app.ActiveDisplay.SelectedSymbols)
{
tags = groupsym.GetTagName(1);
MessageBox.Show(tags);
}
}

 

I run the add-in and then open up an element relative display in my processbook and click through the elements but nothing seems to update.  Any suggestions?

 

 

 

Thanks a lot in advance,

 

Dmitri Rabinowitz

Outcomes