<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic No Image exported when using ExportRange.SetOfViews in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739567#M31928</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the &lt;STRONG&gt;doc.ExportImage(imageExportOptions)&lt;/STRONG&gt; method to export an image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is when&amp;nbsp;&lt;STRONG&gt;imageExportOptions.ExportRange&amp;nbsp;&lt;/STRONG&gt;is set to &lt;STRONG&gt;SetOfViews&lt;/STRONG&gt;, it doesn't export any image at all. I have already added the view i would like to use by doing:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;imageExportOptions.SetViewsAndSheets(new List&amp;lt;ElementId&amp;gt; { theView.Id })&lt;/LI-CODE&gt;&lt;P&gt;No error is thrown, except when I tried to retrieve the exported image, it says they &lt;STRONG&gt;could not find the file&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I set&amp;nbsp;&lt;STRONG&gt;imageExportOptions.ExportRange&amp;nbsp;&lt;/STRONG&gt;to CurrentView or&amp;nbsp;VisibleRegionOfCurrentView, it works perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is, why does using SetOfViews not work? Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 09:29:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-10T09:29:17Z</dc:date>
    <item>
      <title>No Image exported when using ExportRange.SetOfViews</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739567#M31928</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the &lt;STRONG&gt;doc.ExportImage(imageExportOptions)&lt;/STRONG&gt; method to export an image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is when&amp;nbsp;&lt;STRONG&gt;imageExportOptions.ExportRange&amp;nbsp;&lt;/STRONG&gt;is set to &lt;STRONG&gt;SetOfViews&lt;/STRONG&gt;, it doesn't export any image at all. I have already added the view i would like to use by doing:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;imageExportOptions.SetViewsAndSheets(new List&amp;lt;ElementId&amp;gt; { theView.Id })&lt;/LI-CODE&gt;&lt;P&gt;No error is thrown, except when I tried to retrieve the exported image, it says they &lt;STRONG&gt;could not find the file&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I set&amp;nbsp;&lt;STRONG&gt;imageExportOptions.ExportRange&amp;nbsp;&lt;/STRONG&gt;to CurrentView or&amp;nbsp;VisibleRegionOfCurrentView, it works perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is, why does using SetOfViews not work? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 09:29:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739567#M31928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T09:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: No Image exported when using ExportRange.SetOfViews</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739597#M31929</link>
      <description>&lt;P&gt;Dear Joel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are producing questions at a rather rapid rate...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a recent discussion and sample code snippet here in the forum making successful use of the SetOfViews option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2020/06/creating-material-texture-and-retaining-pixels.html#3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2020/06/creating-material-texture-and-retaining-pixels.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please always search for existing answers before raising a new issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 09:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739597#M31929</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-10T09:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: No Image exported when using ExportRange.SetOfViews</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739608#M31930</link>
      <description>&lt;P&gt;Uhm that's something like what I did. I don't see any answers regarding the file could not be found...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 09:55:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739608#M31930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: No Image exported when using ExportRange.SetOfViews</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739611#M31931</link>
      <description>&lt;P&gt;Search the system better. By the way, it may have a different filename extension than you expect. I heard of some mixup between jpg and png or something like that. Maybe best monitor your Windows file system, or search globally for the filename stem only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:01:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9739611#M31931</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-10T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: No Image exported when using ExportRange.SetOfViews</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9740429#M31932</link>
      <description>&lt;P&gt;Alright got it, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone wondering, when I use SetOfViews the system added the view name to the file path.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 16:17:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/no-image-exported-when-using-exportrange-setofviews/m-p/9740429#M31932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T16:17:15Z</dc:date>
    </item>
  </channel>
</rss>

