AnsweredAssumed Answered

IMapDpcument namespace error

Question asked by jnautiyal_UDConline on May 21, 2018
Latest reply on May 22, 2018 by MBranscomb-esristaff

I am trying to access .mxd using below mentioned code but i am getting an error saying that type or namespace name IMapDocument could not be found I am using visual studio 2017 and i have added Esri.ArcGISRuntime package


IMapDocument mapDoc = new MapDocumentClass();    if (mapDoc.IsPresent[mxdPath] && mapDoc.IsMapDocument[mxdPath] && !mapDoc.IsPasswordProtected[mxdPath])    {        mapDoc.Open(mxdPath);        IMap map = mapDoc.Map[0];        ArcMap.Document.ActiveView = map as IActiveView;        mapDoc.Close();        }