<?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: How to catch event when z changes in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1622221#M12977</link>
    <description>&lt;P&gt;The&amp;nbsp;MapViewCameraChangedEvent&amp;nbsp; catches the event when the map is moved. This can be used when in Fixed Cursor Mode on the Stereo Map. Unfortunately, the camera only returns the x and y, not the z.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 08:53:38 GMT</pubDate>
    <dc:creator>BarbaraSchneider2</dc:creator>
    <dc:date>2025-06-10T08:53:38Z</dc:date>
    <item>
      <title>How to catch event when z changes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1339114#M10565</link>
      <description>&lt;P&gt;I want to catch the event when z changes (when I scroll the mouse wheel) in the Stereo Map. In ArcMap, I used the following code in a ToolControl:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;((IEditEvents2_Event)_editor).OnCurrentZChanged += OnCurrentZChanged&lt;/LI-CODE&gt;&lt;P&gt;How can I achieve this in ArcGIS Pro? I tried the following method in a MapTool, but this only reacts when x and/or y change:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override async void OnToolMouseMove(MapViewMouseEventArgs e)&lt;/LI-CODE&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 13:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1339114#M10565</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2023-10-18T13:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch event when z changes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1596842#M12764</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200364"&gt;@BarbaraSchneider2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic12830.html" target="_blank"&gt;MapViewCameraChangedEvent Class—ArcGIS Pro&lt;/A&gt;&amp;nbsp;event provides the before and after status of the camera (PreviousCamera and CurrentCamera) and the Camera object has x, y and z properties (amongst others) so you can quickly test if&amp;nbsp;PreviousCamera.z != CurrentCamera.z (or the opposite) and implement whatever logic you need if the test is successful (the z value has changed).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 22:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1596842#M12764</guid>
      <dc:creator>SelimDissem</dc:creator>
      <dc:date>2025-03-18T22:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch event when z changes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1596948#M12766</link>
      <description>&lt;P&gt;Hi Selim,&lt;/P&gt;&lt;P&gt;thanks for your reply! I want to display the current object height (height above sea level minus DTM height) in a text box inside a dockpane, when the user moves the mouse (x,y and z) on the stereo map. This could be achieved in ArcObjects using the event OnCurrentZChanged (see above).&lt;/P&gt;&lt;P&gt;Unfortunately, MapViewCameraChangedEvent does not catch the event when the mouse (x,y,z) moves on the map (or stereo map) , it only catches the event when the map is moved.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 08:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1596948#M12766</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2025-03-19T08:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch event when z changes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1596951#M12768</link>
      <description>&lt;P&gt;I tried the OnToolMouseMoveEvent in a MapTool again (see above), and now (in ArcGIS Pro 3.4), it catches the event when the z-value of the cursor changes!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 09:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1596951#M12768</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2025-03-19T09:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch event when z changes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1622221#M12977</link>
      <description>&lt;P&gt;The&amp;nbsp;MapViewCameraChangedEvent&amp;nbsp; catches the event when the map is moved. This can be used when in Fixed Cursor Mode on the Stereo Map. Unfortunately, the camera only returns the x and y, not the z.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 08:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1622221#M12977</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2025-06-10T08:53:38Z</dc:date>
    </item>
  </channel>
</rss>

