Search code examples
revit-apiautodeskrevit

How to get Revit export image coordinates or reference point?


I want to have a reference point or to know the coordinates of any point on an exported Image (from any view) from Revit.

For example in the attached image exported from Revit, I'd like to know the bounding box of the picture or the middle point of the picture (in X,Y coordinates) or any other reference point.

Plan image

Is there a way to extract the bounding box coordinates of the picture?


Solution

  • I would suggest defining two diagonally opposite points in your image file that you can identify precisely in your Revit model. Determine their image pixel coordinates, export their Revit model coordinates, and use this information to determine the appropriate scaling and translation.

    The RoomEditorApp Revit add-in and its corresponding roomedit CouchDb web interface demonstrate exporting an SVG image from Revit, scaling it for display in a web browser, and transformation and calculation of exact coordinates back and forth between two environments.