Select to view content in your preferred language

How do I get a reference from the ArcMap 10 application?

1521
1
Jump to solution
09-13-2013 12:07 PM
GenaroGarcia
Deactivated User
How do I programmatically get a reference from ArcMap application?
I'm developing a new toolbar with a couple of tools in ArcGIS 10 with C# .Net.
I'm sure you use the IApplication interface, but not sure how to use it.
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: agray1

Are you making an addin or extension code?  In addin, there is the ArcMap.Application property.  In extension code, it depends what classes are implemented, typically you would only need the reference in your custom tool or command which gets passed in through the onCreate method.

View solution in original post

0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: agray1

Are you making an addin or extension code?  In addin, there is the ArcMap.Application property.  In extension code, it depends what classes are implemented, typically you would only need the reference in your custom tool or command which gets passed in through the onCreate method.
0 Kudos