narenr

Load the add-in programatically

Discussion created by narenr on Jan 22, 2014
Latest reply on Jan 26, 2014 by sbhide-esristaff
I've created an addin with button and dockable window in it. I've added a utility class to access instance of each control.
For e.g. one of my function has some thing like this :
UIDClass uid = new UIDClass()
uid.Value = "MyDockableWindowID"
"return ArcMap.DockableWindowManager.GetDockableWindow(uid)"

Now wanted to write unit test case (in a different assembly) on this utility class.
When I call this function, it throws error for 'uid.Value' saying that its an incorrect identifier.

I suspect I need to have the add-in loaded into my environment. Can someone suggest a way out of this?

Outcomes