<?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: export IFC revit 2016 in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/export-ifc-revit-2016/m-p/5911375#M69262</link>
    <description>&lt;P&gt;solved!&lt;/P&gt;&lt;P&gt;IFC Export does not require "views"&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 09:14:22 GMT</pubDate>
    <dc:creator>office</dc:creator>
    <dc:date>2015-11-17T09:14:22Z</dc:date>
    <item>
      <title>export IFC revit 2016</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/export-ifc-revit-2016/m-p/5910734#M69261</link>
      <description>&lt;P&gt;hi i am trying to export a revit 2016 file to ifc.&lt;/P&gt;&lt;PRE&gt; &lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;clr&lt;BR /&gt; &lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;math&lt;BR /&gt; &lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;os&lt;BR /&gt; clr.&lt;SPAN&gt;AddReference&lt;/SPAN&gt;(&lt;SPAN&gt;'RevitAPI'&lt;/SPAN&gt;)&amp;nbsp;&lt;BR /&gt; clr.&lt;SPAN&gt;AddReference&lt;/SPAN&gt;(&lt;SPAN&gt;'RevitAPIUI'&lt;/SPAN&gt;)&amp;nbsp;&lt;BR /&gt; &lt;SPAN&gt;from&lt;/SPAN&gt;&amp;nbsp;Autodesk.Revit.DB&amp;nbsp;&lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;*&amp;nbsp;&lt;BR /&gt; &lt;BR /&gt; app = __revit__.Application&lt;BR /&gt; doc = __revit__.ActiveUIDocument.Document&lt;BR /&gt; uidoc = __revit__.ActiveUIDocument&lt;BR /&gt; &lt;BR /&gt; revitPath = doc.PathName&lt;BR /&gt; ifcPath = revitPath.&lt;SPAN&gt;replace&lt;/SPAN&gt;(&lt;SPAN&gt;"rvt"&lt;/SPAN&gt;,&lt;SPAN&gt;"ifc"&lt;/SPAN&gt;)&lt;BR /&gt; splitted = ifcPath.&lt;SPAN&gt;split&lt;/SPAN&gt;(&lt;SPAN&gt;"\\"&lt;/SPAN&gt;)&lt;BR /&gt; ifcFile = splitted[-&lt;SPAN&gt;1&lt;/SPAN&gt;]&lt;BR /&gt; filelength =&amp;nbsp;&lt;SPAN&gt;len&lt;/SPAN&gt;(ifcFile)&lt;BR /&gt; nudePath = ifcPath[:filelength*(-&lt;SPAN&gt;1&lt;/SPAN&gt;)]&lt;BR /&gt; ifcName = ifcFile.&lt;SPAN&gt;replace&lt;/SPAN&gt;(&lt;SPAN&gt;".ifc"&lt;/SPAN&gt;,&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;BR /&gt; &lt;BR /&gt; views =&amp;nbsp;&lt;SPAN&gt;ViewSet&lt;/SPAN&gt;()&lt;BR /&gt; view = uidoc.ActiveView&lt;BR /&gt; views.&lt;SPAN&gt;Insert&lt;/SPAN&gt;(view)&lt;BR /&gt; ifcOptions =&amp;nbsp;&lt;SPAN&gt;IFCExportOptions&lt;/SPAN&gt;()&lt;BR /&gt; ifcOptions.FileVersion = IFCVersion.IFC2x3&lt;BR /&gt; &lt;BR /&gt; ifcOut = doc.&lt;SPAN&gt;Export&lt;/SPAN&gt;(nudePath, ifcName, views, ifcOptions) &lt;/PRE&gt;&lt;P&gt;actually the code is straightforward according to revit API documentation Document.Export Method(String, String, IFCExportOptions).&lt;/P&gt;&lt;P&gt;so far so good. the code is running but giving me following error:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/201077i2853A81586E38CB2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="bild.png" title="bild.png" /&gt;&lt;/P&gt;&lt;P&gt;how can i avoid the expectation of FBXExportOptions????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:07:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/export-ifc-revit-2016/m-p/5910734#M69261</guid>
      <dc:creator>office</dc:creator>
      <dc:date>2015-11-16T22:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: export IFC revit 2016</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/export-ifc-revit-2016/m-p/5911375#M69262</link>
      <description>&lt;P&gt;solved!&lt;/P&gt;&lt;P&gt;IFC Export does not require "views"&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 09:14:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/export-ifc-revit-2016/m-p/5911375#M69262</guid>
      <dc:creator>office</dc:creator>
      <dc:date>2015-11-17T09:14:22Z</dc:date>
    </item>
  </channel>
</rss>

