Coordinates of PNG export

Coordinates of PNG export

Anonymous
Not applicable
2,718 Views
3 Replies
Message 1 of 4

Coordinates of PNG export

Anonymous
Not applicable

I am using the ExortImage function to export a PNG of the current view of a floor plan and would like to get the coordinates of that export. I tried using the outline feature of the active view (supposed to be given in inches), but it does nto seem to correctly correspond to either the size of the building or the image even after scaling. How would I go about getting this information?

 

Thanks.

0 Likes
2,719 Views
3 Replies
Replies (3)
Message 2 of 4

Joe.Ye
Alumni
Alumni
Hi

This question is not clear. Can you give more information what do you want to get? and Why the result getting from Outline property doesn't seem to correctly correspond to either the size of the building or the image even after scaling?


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 4

Anonymous
Not applicable

I'm not familiar with the ExportImage function, but I do know that the View.Outline property gives the min / max coords of the view in feet (not inches) scaled according to the view's scale value (i.e. paper space coordinates).

 

Try using feet as your base unit (and view scale if required ) and see if it starts making more sense.

0 Likes
Message 4 of 4

Joe.Ye
Alumni
Alumni

 

Each Revit view has a mapping UIView object. You can get the view's two corners in the model coordinates by UIView.GetZoomCorners() .  Hope this is the answer.

 

 


______________________________________________________________

If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes