<?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: Open IFC through API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453156#M64051</link>
    <description>&lt;P&gt;You should definitely understand your needs from an end user point of view before even starting to think about the programmatic solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Revit API almost only supports functionality that is available through the UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should therefore research the optimal workflow and best practices to address your task at hand manually through the user interface first of all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do so, please discuss and analyse it with an application engineer, product usage expert, or product support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have got that part sorted out, it is time to step into the programming environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&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;</description>
    <pubDate>Thu, 21 Jul 2016 19:42:26 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2016-07-21T19:42:26Z</dc:date>
    <item>
      <title>Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6451258#M64046</link>
      <description>&lt;P&gt;When I click "open IFC" and choose a file, the model from the loaded file appears in the project view. Is there a way to this through the API? If it's not possible, maybe I could at least somehow create a family from the IFC file and add it to the project?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 23:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6451258#M64046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-20T23:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452161#M64047</link>
      <description>&lt;P&gt;Please read the Revit API help file first of all before asking any questions whatsoever.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It provides the following answer right away:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  Application.OpenIFCDocument Method (String)&lt;/PRE&gt;
&lt;P&gt;Another way to open an IFC file programmatically is to simply launch Revit.exe and specify the filename in the command line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/07/ifc-import-and-conversion-journal-script.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/07/ifc-import-and-conversion-journal-script.html&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;</description>
      <pubDate>Thu, 21 Jul 2016 12:54:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452161#M64047</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-07-21T12:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452333#M64048</link>
      <description>&lt;P&gt;Thank You for the answer. Well, I had tried the OpenIFCDocument method, but it didn't add a new family to the project. Once I use OpenIFCDocument, what should I do to see the family from the IFC file in the project browser.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:59:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452333#M64048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-21T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452497#M64049</link>
      <description>&lt;P&gt;"Family" is a pure Revit concept.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IFC knows nothing about families and never will.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An IFC file can define a project, not a family.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, if you open an IFC file, it will appear in the project view and never as a family.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:54:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452497#M64049</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-07-21T14:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452755#M64050</link>
      <description>&lt;P&gt;I'm sorry. I guess I wasn't very precise in describing my problem. I wanted to open IFC file in Revit and be able to add and modify parameters of the model from the IFC file. That is why I wanted to have it as a family in a project. I tried using OpenIFCDocument, but it doesn't open a new project in Revit. OpenAndActivateDocument doesn't work for IFC. In fact I'm new to Revit and I don't even know if what I'm trying to achieve is possible &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 16:18:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6452755#M64050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-21T16:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453156#M64051</link>
      <description>&lt;P&gt;You should definitely understand your needs from an end user point of view before even starting to think about the programmatic solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Revit API almost only supports functionality that is available through the UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should therefore research the optimal workflow and best practices to address your task at hand manually through the user interface first of all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do so, please discuss and analyse it with an application engineer, product usage expert, or product support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have got that part sorted out, it is time to step into the programming environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&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;</description>
      <pubDate>Thu, 21 Jul 2016 19:42:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453156#M64051</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-07-21T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453431#M64052</link>
      <description>&lt;P&gt;Hi Jeremy, hope you're well. &amp;nbsp;For once, you post a reply that I totally disagree with. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a reply that disagrees with your statements in turn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Family is a pure Revit concept"&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;IFC knows nothing about families and never will." ???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IFC has classes derived from an IfcTypeProduct which are to all practical purposes the same as an Revit Family, and this concept is understand in various BIM software. &amp;nbsp;You can read the description here. &amp;nbsp;&lt;A href="http://www.buildingsmart-tech.org/ifc/IFC4/final/html/link/ifctypeproduct.htm" target="_blank"&gt;http://www.buildingsmart-tech.org/ifc/IFC4/final/html/link/ifctypeproduct.htm&lt;/A&gt; &amp;nbsp;Note this was introduced in IFC2x which as I understand it was released circa 2000, a similar time to early development of Revit? &amp;nbsp;If a family is a revit concept, I'm not sure how Bentley recognizes anything in a .rfa file&amp;nbsp;&lt;A href="http://communities.bentley.com/products/building/building_analysis___design/f/5917/t/87255" target="_blank"&gt;http://communities.bentley.com/products/building/building_analysis___design/f/5917/t/87255&amp;nbsp;&lt;/A&gt;&amp;nbsp; I am pretty sure that manufacturers have expressed object libraries in various forms including CAD prior to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Types as a concept in Revit (variations of a master parameric definition) is not typically implemented in IFC developments but hopefully this changes soon. &amp;nbsp;IFC4 offers this and I am working on some object library projects that wish to utilize this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;An IFC file can define a project, not a family."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is again incorrect. &amp;nbsp;IFC4 added a new context, the IfcProjectLibrary&amp;nbsp;&lt;A href="http://www.buildingsmart-tech.org/ifc/IFC4/final/html/link/ifcprojectlibrary.htm" target="_blank"&gt;http://www.buildingsmart-tech.org/ifc/IFC4/final/html/link/ifcprojectlibrary.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is appropriate for exchanging data in the form of object libraries and the like as per it's definition. &amp;nbsp;It would not contain project and instance elements. &amp;nbsp;I don't believe Revit supports this context in it's native importer or exporter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Therefore, if you open an IFC file, it will appear in the project view and never as a family."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This might be true at this point in time, but I would hope it might change at some point in time if Autodesk wants to support openBIM workflows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To reply to the original question, Geometry Gym offers a 3rd party importer that does generate families and create parameters based on types in IfcProject and IfcProjectLibrary. &amp;nbsp;&lt;A href="http://geometrygym.blogspot.com.au/search/label/Revit" target="_blank"&gt;http://geometrygym.blogspot.com.au/search/label/Revit&lt;/A&gt; &amp;nbsp;This is primarily from the user interface, however if you require from the API then I can refactor the method slightly and provide it as a public method in the dll. &amp;nbsp;An alternative would be to edit the open source importer and make it recognize these ifc concepts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I look forward to discussing further,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jon&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 22:32:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453431#M64052</guid>
      <dc:creator>GeomGym</dc:creator>
      <dc:date>2016-07-21T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453763#M64053</link>
      <description>&lt;P&gt;Dear Jon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for picking this up and pointing out my errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I am well, leaving for vacation tomorrow, rather a lot of last minute stuff, can use a break &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I totally agree with your disagreement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was not aware of this powerful aspect of the IFC structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You explanation comes in very handy!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking of writing a bit about IFC anyway, and also mention your IFC C# class library, so I can add this aspect there as well.&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;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 07:13:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453763#M64053</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-07-22T07:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453768#M64054</link>
      <description>Thank You for the reply. I'll certainly check out theese links.</description>
      <pubDate>Fri, 22 Jul 2016 07:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6453768#M64054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T07:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6454195#M64055</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I published a summary of parts of our conversation on The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/07/ifc-import-and-open-source.html#4" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/07/ifc-import-and-open-source.html#4&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;</description>
      <pubDate>Fri, 22 Jul 2016 12:58:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/6454195#M64055</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-07-22T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/9699376#M64056</link>
      <description>&lt;P&gt;Dear Both,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar question, Hope can get your experience.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I can open the IFC file by Revit UI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I'm trying to open IFC file by Revit API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;==&amp;gt; currently, i use&amp;nbsp; "&lt;SPAN style="font-family: inherit;"&gt;Document ifcdoc = app.OpenIFCDocument(path);" to open IFC file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;But i can't see it load or active in Revit Window.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Could you please help share the extra step to show my document into Revit Window. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 09:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/9699376#M64056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-19T09:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Open IFC through API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/9699591#M64057</link>
      <description>&lt;P&gt;Does that call return a valid `ifcdoc` variable representing the loaded document?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the loaded IFC document show up in RevitLookup, e.g., in the Application Documents collection?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/8a32ffe0-7e80-e85c-78aa-1af48ace4d74.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/8a32ffe0-7e80-e85c-78aa-1af48ace4d74.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, and it is not visible on screen, you may need to open and activate it as described above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you set the&amp;nbsp;IFCImportOptions.Action to open or link the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2014/04/whats-new-in-the-revit-2015-api.html#3.08" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2014/04/whats-new-in-the-revit-2015-api.html#3.08&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 12:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/open-ifc-through-api/m-p/9699591#M64057</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-08-19T12:22:18Z</dc:date>
    </item>
  </channel>
</rss>

