Message 1 of 5
Not applicable
09-10-2020
02:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi team,
I am using the doc.ExportImage(imageExportOptions) method to export an image.
The issue is when imageExportOptions.ExportRange is set to SetOfViews, it doesn't export any image at all. I have already added the view i would like to use by doing:
imageExportOptions.SetViewsAndSheets(new List<ElementId> { theView.Id })No error is thrown, except when I tried to retrieve the exported image, it says they could not find the file.
However, if I set imageExportOptions.ExportRange to CurrentView or VisibleRegionOfCurrentView, it works perfectly.
So the question is, why does using SetOfViews not work? Thanks in advance.
Solved! Go to Solution.