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) ?
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:
Does that help?
Best regards,
Jeremy
Can't find what you're looking for? Ask the community or share your knowledge.