<?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 mesh data export to json in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8459164#M45549</link>
    <description>&lt;P&gt;I try to get the geometry info from ***.rvt, to a json data ,which can I load to draw geometry by three.js.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This page:&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/07/adn-mesh-data-custom-exporter-to-json.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2013/07/adn-mesh-data-custom-exporter-to-json.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Him had show me how to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, the demo is right and work well by some changes from revit 2015or6 to 2019.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/files/curvedwall.rvt" target="_blank"&gt;https://thebuildingcoder.typepad.com/files/curvedwall.rvt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this reivt file work well in my computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I do with other revit file, error comes from the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;exporter.Export(view)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which the error say: cannot devide by zero&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS:The view is not null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone tell any ideas?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 09:15:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-11T09:15:38Z</dc:date>
    <item>
      <title>mesh data export to json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8459164#M45549</link>
      <description>&lt;P&gt;I try to get the geometry info from ***.rvt, to a json data ,which can I load to draw geometry by three.js.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This page:&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/07/adn-mesh-data-custom-exporter-to-json.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2013/07/adn-mesh-data-custom-exporter-to-json.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Him had show me how to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, the demo is right and work well by some changes from revit 2015or6 to 2019.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/files/curvedwall.rvt" target="_blank"&gt;https://thebuildingcoder.typepad.com/files/curvedwall.rvt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this reivt file work well in my computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I do with other revit file, error comes from the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;exporter.Export(view)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which the error say: cannot devide by zero&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS:The view is not null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone tell any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:15:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8459164#M45549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T09:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: mesh data export to json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8462025#M45550</link>
      <description>&lt;P&gt;Run the add-in in the debugger and see for yourself which line of code is causing the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will probably be able to see how to fix it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&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>Wed, 12 Dec 2018 07:57:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8462025#M45550</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-12-12T07:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: mesh data export to json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8462159#M45551</link>
      <description>&lt;P&gt;It is not a good way to find the error by the debugger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The debugger will just raise a error top of the logic.Which I mean,it would not show the error in&amp;nbsp;CustomExportContext.&lt;/P&gt;
&lt;P&gt;of course,may be I do the debugger not the right way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally I add the try catch and get the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the file xxx.rvt you show before is different from the file I actually use. which I mean:&lt;/P&gt;
&lt;P&gt;the&amp;nbsp;CustomExportContext just started and go into the elementbegin and then,to the elementend.&lt;/P&gt;
&lt;P&gt;the&amp;nbsp;Complete methd will do x/0 ,which show the error top: cannot devide by zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now ,may I had solved this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much,Thanks for your demo about the use of CustomExportContext.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 08:59:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8462159#M45551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-12T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: mesh data export to json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8462231#M45552</link>
      <description>&lt;P&gt;Glad to hear you resolved your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, rather belatedly, may I point out that others ran into the same problem in the past:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2016/07/exporting-rvt-bims-to-webgl-and-forge.html#3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2016/07/exporting-rvt-bims-to-webgl-and-forge.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The exception thrown by the internal custom exporter implementation can simply be caught and ignored:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/CustomExporterAdnMeshJson/commit/23a95aad8f4a3cca85a72b32e2b699bde1d46bcb" target="_blank"&gt;https://github.com/jeremytammik/CustomExporterAdnMeshJson/commit/23a95aad8f4a3cca85a72b32e2b699bde1d46bcb&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 09:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8462231#M45552</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-12-12T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: mesh data export to json</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8465564#M45553</link>
      <description>&lt;P&gt;Shared for posterity by The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2018/12/dynamo-symbol-vs-type-and-exporter-exception.html#5" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2018/12/dynamo-symbol-vs-type-and-exporter-exception.html#5&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&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, 13 Dec 2018 12:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/mesh-data-export-to-json/m-p/8465564#M45553</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-12-13T12:19:01Z</dc:date>
    </item>
  </channel>
</rss>

