Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ImageExport model coordinate

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
352 Views, 2 Replies

ImageExport model coordinate

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) ?

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Any ideas?

Message 3 of 3
jeremytammik
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report