laptop and a wrench

Bug

The onMouseClicked method does not capture the z-values of 3D BIM data buildings in ArcGIS AppStudio.

ArcGIS AppStudio
Bug ID Number BUG-000160232
SubmittedJuly 27, 2023
Last ModifiedAugust 16, 2024
Applies toArcGIS AppStudio
Version found5.5
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

To capture the Z value, use the SceneView.screenToLocation (x, y) method and the onScreenToLocationCompleted event handler instead. SceneView { id: sceneView anchors.fill: parent onMouseClicked: { var location = sceneView.screenToLocation(mouse.x, mouse.y); } onScreenToLocationCompleted: { var hasZValue = location.hasZ; var zValue = location.z; } // Other scene view code... ) API References: - string screenToLocation(double screenX, double screenY) | https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-sceneview.html#screenToLocation-method - screenToLocationCompleted(Point location) | https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-sceneview.html#screenToLocationCompleted-signal

Steps to Reproduce

Bug ID: BUG-000160232

Software:

  • ArcGIS AppStudio

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options