Select to view content in your preferred language

Cannot create IGraphicTrackerSymbol

2333
2
11-23-2009 05:41 AM
ESRI_CanadaMike_Gregotski
Deactivated User
I tried creating a very simple project using the new GraphicTracker objects, but did not get very far. I was able to make the GraphicTracker class:

Dim graphicTracker As IGraphicTracker = New GraphicTrackerClass()
graphicTracker.Initialize(TryCast(axMapControl1.Map, IBasicMap))

However, when I tried to create the symbol, IGraphicTrackerSymbol was not recognized by Visual Studio 2008 as an option:

Dim myPointSymbol As IGraphicTrackerSymbol = CreateGraphicTrackerSymbol(symbol, Nothing)

Adding the EngineCore library enabled access to IGraphicTracker, and the GraphicTracker class. Is there something else which needs to be included to get to the symbols?
0 Kudos
2 Replies
RalfGottschalk
Esri Contributor
I tested creating an GraphicTracker symbol and it worked for me in VB.Net.  I see what you are saying though about IGraphicTracker and IGraphicTrackerSymbol not showing up in the VB. NET IntelliSense.  It seems that the GraphicTracker is showing up as hidden and this should not be the case.

I went ahead and logged NIM051567 for this issue.
0 Kudos
BobPokorny
Emerging Contributor
I'm using ARC Engine 10.0 and running into similair problems.
I cant seem to get to the GraphicTrackerClass(); I get the blue squiggly's under it telling me:
Interop type 'GraphicTrackerClass' cannot be embedded. Use the applicable interface instead.

I have just about every component needed.  The example works fine. 

I'm using vb.net 2010 .NET 4.0.
Any help is appreciated.

Bob
0 Kudos