<?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 Re: Custom Exporter - The view is not exportable (CeilingPlan) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175500#M19057</link>
    <description>&lt;P&gt;I think it has something to do with implementing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Implements Autodesk.Revit.DB.IExportContext&lt;BR /&gt;Implements IExportContext2D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if both implemented: 3D view will fail&lt;/P&gt;&lt;P&gt;if only 'IExportContext' is implemented: 2D views will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this documented like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 19:07:52 GMT</pubDate>
    <dc:creator>c_hanschen</dc:creator>
    <dc:date>2022-05-17T19:07:52Z</dc:date>
    <item>
      <title>Custom Exporter - The view is not exportable (CeilingPlan)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175430#M19056</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REVIT 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a Custom Exporter to get the Lines of a modelpattern of a Ceiling.&lt;/P&gt;&lt;P&gt;There is a Topic to get the references, but I need the actual Lines of the modelhatch.&lt;/P&gt;&lt;P&gt;I think the use of a&amp;nbsp;Custom Exporter is the only way to get them, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Custom Exporter, it runs fine on a 3D view, but 'OnPolylineSegments' is not invoked.&lt;/P&gt;&lt;P&gt;So I am trying to export a CeilingPlan, but the error message says:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The view is not exportable, such as a template view or wrong type view, for example&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#3366FF"&gt;&lt;A href="https://www.revitapidocs.com/2020/5a648f8c-62a0-d4c7-873c-8eab9f7abe7d.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2020/5a648f8c-62a0-d4c7-873c-8eab9f7abe7d.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So it is possible to export a 2D view&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#3366FF"&gt;&lt;A href="https://www.revitapidocs.com/2020/58d06458-fd6a-bdef-c457-2c52b50a70e8.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2020/58d06458-fd6a-bdef-c457-2c52b50a70e8.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;Note that currently the only 2D view types exported are&amp;nbsp;&lt;A href="https://www.revitapidocs.com/2020/2ce1075e-380e-01e7-6459-b7467c2a2414.htm" target="_blank" rel="noopener"&gt;IncludeGeometricObjects&amp;nbsp;&lt;/A&gt;FloorPlan, &lt;STRONG&gt;CeilingPlan&lt;/STRONG&gt;,Elevation, Section, Detail, EngineeringPlan, AreaPlan"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;Dim context As New RevitExporter1.MyExportContext(MyDoc)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;Dim Exporter As New CustomExporter(MyDoc, context) With {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;.IncludeGeometricObjects = True,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;.ShouldStopOnError = False,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;.Export2DGeometricObjectsIncludingPatternLines = True,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;.Export2DIncludingAnnotationObjects = True}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#3366FF"&gt;Exporter.Export(MyView)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the 'MyView', the ViewType = CeilingPlan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody a solution?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;LKSVDD architecten&lt;/P&gt;&lt;P&gt;The Netherlands&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 18:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175430#M19056</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2022-05-17T18:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Exporter - The view is not exportable (CeilingPlan)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175500#M19057</link>
      <description>&lt;P&gt;I think it has something to do with implementing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Implements Autodesk.Revit.DB.IExportContext&lt;BR /&gt;Implements IExportContext2D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if both implemented: 3D view will fail&lt;/P&gt;&lt;P&gt;if only 'IExportContext' is implemented: 2D views will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this documented like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 19:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175500#M19057</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2022-05-17T19:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Exporter - The view is not exportable (CeilingPlan)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175754#M19058</link>
      <description>&lt;P&gt;Yes it is well documented the 2D version (IExportContext2D) came about in the 2020 version. The original which could only export 3D views was around in the 2014 version (IExportContext).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since 2016 IExportContext is inherited by two different interfaces e.g.:&lt;/P&gt;&lt;P&gt;IPhotoRenderContext (directly) &amp;amp; IModelExportContext (indirectly)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what is said about those:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#800080"&gt;"This base class&lt;/FONT&gt; &lt;/EM&gt;&lt;/STRONG&gt;(IExportContext) &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#800080"&gt;contains methods that are common to both the leaf interfaces. Although it is still possible to use classes deriving directly from this base interface (for backward compatibility), future applications should implement the new leaf interfaces only."&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in other words you should only be directly using:&lt;/P&gt;&lt;P&gt;IExportContext2D (For exporting 2D views, supports some not all)&lt;/P&gt;&lt;P&gt;IModelExportContext (For exporting 3D views)&lt;/P&gt;&lt;P&gt;IPhotoRenderContext (For exporting 3D views with render information).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should only be implementing one of these above interfaces per exporter (for your purpose&amp;nbsp;IExportContext2D). If you need to export both 2D and 3D views then you will need two exporters (each implementing one of the appropriate interfaces).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the inheritance as understood from reading RevitAPI.chm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="220517.png" style="width: 485px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068462iE05AE61B1B0059D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="220517.png" alt="220517.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 21:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11175754#M19058</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-05-17T21:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Exporter - The view is not exportable (CeilingPlan)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11176326#M19059</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;, Thanks for your&amp;nbsp;explanation, this helps a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still find it confusing that Revit shows a message "The view is not exportable", it should (also) mention something like "Or use the right Class for 2D/3D (&lt;SPAN&gt;IExportContext2D&amp;nbsp;/&lt;/SPAN&gt;&lt;SPAN&gt;IModelExportContext)&lt;/SPAN&gt;" or something like that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;LKSVDD architecten&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Netherlands&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 05:43:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/custom-exporter-the-view-is-not-exportable-ceilingplan/m-p/11176326#M19059</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2022-05-18T05:43:07Z</dc:date>
    </item>
  </channel>
</rss>

