1

I'm trying to develop a custom downstream trace Addin for ArcGIS using .net (C#) Miner.Interop.Framework Assembly.

I'm using TraceDownstream Method from the ArcFM Desktop Developer Guide and following this example for guidance, since I'm very new in this.

By calling the Trace Downstream Function:

pElecTrace.TraceDownstream(pGN, pElecTraceSettings, pCurrentStatus,
                           179998,  ESRI.ArcGIS.Geodatabase.esriElementType.esriETJunction, 
                           Miner.Interop.SetOfPhases.None, 
                           Miner.Interop.mmDirectionInfo.establishBySourceSearch, 0,
                           ESRI.ArcGIS.Geodatabase.esriElementType.esriETEdge, 
                           iJunctionBarriers,iEdgeBarriers, false,
                           out pJunctions, out pEdges);

I get The NullReferenceException (Object reference not set to an instance of an object)

My Assumption is that it is because I have declared

IMMCurrentStatus pCurrentStatus = null;

by following the mentioned Example. And It is the only Null Element in the called function.

Now the problem is that , I don't have any idea what "Current Status" really is. Neither could I find any explanation in the Documentation as to what Current Status really is or where can I retrieve its information from.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.