<?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: Link IFC Files stored in BIM360 using RevitLinkType.CreateFromIFC in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126836#M10603</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I searched StackOverflow for your for CreateFromIFC:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/search?q=CreateFromIFC" target="_blank"&gt;https://stackoverflow.com/search?q=CreateFromIFC&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That turned up the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 class="fs-headline1 ow-break-word mb8 flex--item fl1"&gt;&lt;A class="question-hyperlink" href="https://stackoverflow.com/questions/74344678/how-to-link-ifc-with-revit-design-automation" target="_blank"&gt;&lt;FONT size="4"&gt;How to link IFC with Revit Design-Automation&lt;/FONT&gt;&lt;/A&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/74344678/how-to-link-ifc-with-revit-design-automation/74352672#74352672" target="_blank"&gt;https://stackoverflow.com/questions/74344678/how-to-link-ifc-with-revit-design-automation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that APS-related issues are discussed more on StackOverflow than here in the desktop-focused forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 07:18:10 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2023-07-26T07:18:10Z</dc:date>
    <item>
      <title>Link IFC Files stored in BIM360 using RevitLinkType.CreateFromIFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126096#M10601</link>
      <description>&lt;P&gt;Good day everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the title says, I'm using Revit 2022, and some other different software.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have access to APS information, and hence I can access ModelGUIDs published using the Get_Items method from APS. When it's a Revit Cloud model I can access to the ModelGUID and then pass it into Revit API, something that looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;link_model_id=Guid.Parse(model_guid)

link_path=ModelPathUtils.ConvertCloudGUIDsToCloudPath(ModelPathUtils.CloudRegionUS,project_id,link_model_id)

link_load_result = RevitLinkType.Create(doc,link_path, RevitLinkOptions(False))

doc.GetElement(link_load_result.ElementId).AttachmentType=AttachmentType.Attachment

RevitLinkInstance.Create(doc,link_load_result.ElementId)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to link those files now, as just plain IFC files that are already being stored on BIM360, It can be done manually, but since we have hundreds of those models I want to run a program that checks all the links, their status, if there's a new IFC file that's not linked, to add it, if one was delete it, to delete it so there are no errors when opening those Revit Cloudshared Models.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, for this method:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;public&lt;/SPAN&gt; &lt;SPAN class=""&gt;static&lt;/SPAN&gt; &lt;A href="https://www.revitapidocs.com/2022/f846bfb0-b047-9332-567f-75ae880d8359.htm" target="_blank" rel="noopener"&gt;LinkLoadResult&lt;/A&gt; &lt;SPAN class=""&gt;CreateFromIFC&lt;/SPAN&gt;(
	&lt;A href="https://www.revitapidocs.com/2022/db03274b-a107-aa32-9034-f3e0df4bb1ec.htm" target="_blank" rel="noopener"&gt;Document&lt;/A&gt; &lt;SPAN class=""&gt;document&lt;/SPAN&gt;,
	&lt;SPAN class=""&gt;string&lt;/SPAN&gt; &lt;SPAN class=""&gt;ifcFilePath&lt;/SPAN&gt;,
	&lt;SPAN class=""&gt;string&lt;/SPAN&gt; &lt;SPAN class=""&gt;revitLinkedFilePath&lt;/SPAN&gt;,
	&lt;SPAN class=""&gt;bool&lt;/SPAN&gt; &lt;SPAN class=""&gt;recreateLink&lt;/SPAN&gt;,
	&lt;A href="https://www.revitapidocs.com/2022/3f710983-5a4d-d515-a633-12b06a419b30.htm" target="_blank" rel="noopener"&gt;RevitLinkOptions&lt;/A&gt; &lt;SPAN class=""&gt;options&lt;/SPAN&gt;
)&lt;/PRE&gt;&lt;P&gt;Or this one:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;public&lt;/SPAN&gt; &lt;SPAN class=""&gt;static&lt;/SPAN&gt; &lt;A href="https://www.revitapidocs.com/2022/f846bfb0-b047-9332-567f-75ae880d8359.htm" target="_blank" rel="noopener"&gt;LinkLoadResult&lt;/A&gt; &lt;SPAN class=""&gt;CreateFromIFC&lt;/SPAN&gt;(
	&lt;A href="https://www.revitapidocs.com/2022/db03274b-a107-aa32-9034-f3e0df4bb1ec.htm" target="_blank" rel="noopener"&gt;Document&lt;/A&gt; &lt;SPAN class=""&gt;document&lt;/SPAN&gt;,
	&lt;A href="https://www.revitapidocs.com/2022/ffad9c15-8fc9-fbfd-f328-101533f4cf74.htm" target="_blank" rel="noopener"&gt;ExternalResourceReference&lt;/A&gt; &lt;SPAN class=""&gt;resourceReference&lt;/SPAN&gt;,
	&lt;SPAN class=""&gt;string&lt;/SPAN&gt; &lt;SPAN class=""&gt;revitLinkedFilePath&lt;/SPAN&gt;,
	&lt;SPAN class=""&gt;bool&lt;/SPAN&gt; &lt;SPAN class=""&gt;recreateLink&lt;/SPAN&gt;,
	&lt;A href="https://www.revitapidocs.com/2022/3f710983-5a4d-d515-a633-12b06a419b30.htm" target="_blank" rel="noopener"&gt;RevitLinkOptions&lt;/A&gt; &lt;SPAN class=""&gt;options&lt;/SPAN&gt;
)&lt;/PRE&gt;&lt;P&gt;I'm really not sure how to use the ExternalResourceReference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried inspecting the element on BIM360 using APS API, but there's no GUID for IFCs. How can I link and manage those files from BIM360?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help and hope you have a nice day!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 21:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126096#M10601</guid>
      <dc:creator>victor.bastidas</dc:creator>
      <dc:date>2023-07-25T21:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Link IFC Files stored in BIM360 using RevitLinkType.CreateFromIFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126804#M10602</link>
      <description>&lt;P&gt;Sorry to have to mention this, but I believe that some pretty fundamental improvements and simplifications were made in the connection between the Windows desktop Revit API, BIM360, and other APS components in the last year or two. Hence it would probably save you a lot of time and effort if it were possible to use the Revit 2024 API instead of Revit 2022. I have not worked much in that area myself, so I cannot answer your question off-hand, though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:06:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126804#M10602</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-07-26T07:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Link IFC Files stored in BIM360 using RevitLinkType.CreateFromIFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126836#M10603</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I searched StackOverflow for your for CreateFromIFC:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/search?q=CreateFromIFC" target="_blank"&gt;https://stackoverflow.com/search?q=CreateFromIFC&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That turned up the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 class="fs-headline1 ow-break-word mb8 flex--item fl1"&gt;&lt;A class="question-hyperlink" href="https://stackoverflow.com/questions/74344678/how-to-link-ifc-with-revit-design-automation" target="_blank"&gt;&lt;FONT size="4"&gt;How to link IFC with Revit Design-Automation&lt;/FONT&gt;&lt;/A&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/74344678/how-to-link-ifc-with-revit-design-automation/74352672#74352672" target="_blank"&gt;https://stackoverflow.com/questions/74344678/how-to-link-ifc-with-revit-design-automation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that APS-related issues are discussed more on StackOverflow than here in the desktop-focused forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:18:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12126836#M10603</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-07-26T07:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Link IFC Files stored in BIM360 using RevitLinkType.CreateFromIFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12127742#M10604</link>
      <description>&lt;P&gt;Hi Jeremy!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At our company, we have rolled out Revit 2022 for current projects, up until last year we were using Revit 2020, so we're always using an older Revit version (since projects take a lot of time to be developed). Hopefully this will be easier when we roll our 2024 Revit version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, I had already looked at implementations on stackoverflow, I couldn't find one that used the external reference, since that one is declared on Revit API I decided I'd ask around here &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In those questions on StackOverflow they're referring to relative paths to the file, that's why they can use a "local resource" with this method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ConvertUserVisiblePathToModelPath&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess, summarizing my question is how to obtain that:&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://www.revitapidocs.com/2022/ffad9c15-8fc9-fbfd-f328-101533f4cf74.htm" target="_blank" rel="noopener"&gt;ExternalResourceReference&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;from APS items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All it says on Revit API is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;"resourceReference&lt;/SPAN&gt;Type:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.revitapidocs.com/2022/ffad9c15-8fc9-fbfd-f328-101533f4cf74.htm" target="_blank" rel="noopener"&gt;Autodesk.Revit.DB ExternalResourceReference&lt;/A&gt;&lt;BR /&gt;An external resource reference describing the source of the IFC file used in creation."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can obtain properties from files in BIM360 it and pass it to Revit, I'm actually using get requests on Revit with a FastAPI server integration that has access to APS, but I can't figure out what &lt;A href="https://www.revitapidocs.com/2022/ffad9c15-8fc9-fbfd-f328-101533f4cf74.htm" target="_blank" rel="noopener"&gt;ExternalResourceReference&lt;/A&gt;&amp;nbsp;I should obtain from APS to link it on Revit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that this&lt;STRONG&gt; &lt;A href="https://www.revitapidocs.com/2022/d31add6f-c574-2303-630c-95801988941d.htm" target="_blank" rel="noopener"&gt;method&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;still refers to a local path, I'd assume that maybe there's no possibility to link IFC files from BIM360 using Revit API 2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment, we'll keep using our older workflow, which was to obtain those IFC Files, Create Revit Cloud Models off of those IFC Files and then link those IFC RVT models into a model container in Revit. (But you can see, it adds more complexity and possibility of errors).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for having a look, Jeremy! Hopefully this reply broadens my intention on creating those IFC links.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. Will you be at any of the September DevCons?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 13:48:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/link-ifc-files-stored-in-bim360-using-revitlinktype/m-p/12127742#M10604</guid>
      <dc:creator>victor.bastidas</dc:creator>
      <dc:date>2023-07-26T13:48:15Z</dc:date>
    </item>
  </channel>
</rss>

