ImageExport model coordinate

ImageExport model coordinate

Anonymous
Not applicable
647 Views
2 Replies
Message 1 of 3

ImageExport model coordinate

Anonymous
Not applicable

Hello,

I currently have a view with mutiple filled regions and I would like to compute their coordinate in the png once exported.

So, is there a way to get the image export coordinate of a view in the model space instead of the paper space (Outline property) ?

0 Likes
648 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Any ideas?

0 Likes
Message 3 of 3

jeremytammik
Autodesk
Autodesk

Dear Romain,

 

Thank you for your query and sorry for the delay in replying.

 

I cannot comment on the final image export coordinate part of your question, but the UIView class provides a possibility to convert between Revit model and the Windows screen display coordinate systems:

 

https://apidocs.co/apps/revit/2019/2a070256-00f0-5cab-1412-bee5bbfcfc5e.htm

 

I used that functionality to create my own Windows tooltip that queries properties of the Revit database elements at the current Windows cursor position:

 

http://thebuildingcoder.typepad.com/blog/2017/01/uiview-windows-coordinate-referenceintersector-tool...

 

Does that help?

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes