<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is ArcObjects IMxDocument.CurrentLocation equivalent in Pro SDK? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867875#M5044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fayu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Just to clarify there is no IMxDocument, but there is the MapView class which might give you what you need.&amp;nbsp; If you use&amp;nbsp;MapView.Active you will get the current active MapView, or null if there is no Map View open.&amp;nbsp; Once you have the active MapView you can look at the &lt;A href="http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic12032.html"&gt;Camera property&lt;/A&gt; to get the location in 2D where the camera defines its viewing location using X and Y. &amp;nbsp;This will be the center point of the 2D view’s extent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Wolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2018 03:56:50 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2018-04-27T03:56:50Z</dc:date>
    <item>
      <title>What is ArcObjects IMxDocument.CurrentLocation equivalent in Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867872#M5041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to know the mouse location in a map tool using Pro SDK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 23:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867872#M5041</guid>
      <dc:creator>FayuLai</dc:creator>
      <dc:date>2018-04-20T23:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is ArcObjects IMxDocument.CurrentLocation equivalent in Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867873#M5042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fayu,&lt;/P&gt;&lt;P&gt;At present, there is not an equivalent to IMxDocument.CurrentLocation. You will need to capture the position within a mouse event such as the following, using the ClientToMap method:&lt;BR /&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-MapExploration#create-a-tool-to-the-return-coordinates-of-the-point-clicked-in-the-map"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-MapExploration#create-a-tool-to-the-return-coordinates-of-the-point-clicked-in-the-map&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 23:18:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867873#M5042</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-25T23:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is ArcObjects IMxDocument.CurrentLocation equivalent in Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867874#M5043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Chris!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 23:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867874#M5043</guid>
      <dc:creator>FayuLai</dc:creator>
      <dc:date>2018-04-26T23:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is ArcObjects IMxDocument.CurrentLocation equivalent in Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867875#M5044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fayu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Just to clarify there is no IMxDocument, but there is the MapView class which might give you what you need.&amp;nbsp; If you use&amp;nbsp;MapView.Active you will get the current active MapView, or null if there is no Map View open.&amp;nbsp; Once you have the active MapView you can look at the &lt;A href="http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic12032.html"&gt;Camera property&lt;/A&gt; to get the location in 2D where the camera defines its viewing location using X and Y. &amp;nbsp;This will be the center point of the 2D view’s extent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Wolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 03:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-is-arcobjects-imxdocument-currentlocation/m-p/867875#M5044</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2018-04-27T03:56:50Z</dc:date>
    </item>
  </channel>
</rss>

