I’m trying to convert the coordinates that I get for a given location in a Revit file to those in APS viewer for the same file uploaded into an APS bucket, however I am unable to find any methods which match the two.
I’ve tried using the following methods:
viewer.clientToWorld
which will get the local coordinates of the place that you click.viewer.model.getData().globalOffset
to offset theviewer.clientToWorld
in line with the following answer: Transforming coordinates from Revit to Viewer.- Using the Geolocation extension functions
lmvToLonLat
to convert theviewer.clientToWorld
coordinates to Longitude and Latitude.
None of these methods match up to the coordinates for the same location in Revit. The three types of coordinates we have are:
- N/S and E/W in metres
- N/S and E/W in feet
- Longitude and Latitude coordinates