autodesk forge – How to convert between coordinates in Revit and those in APS viewer
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.clientToWorldwhich will get the local coordinates of the place that you click.viewer.model.getData().globalOffsetto offset theviewer.clientToWorldin line with the following answer: Transforming coordinates from Revit to Viewer.- Using the Geolocation extension functions
lmvToLonLatto convert theviewer.clientToWorldcoordinates 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
Read more here: Source link
