<?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: Changing a Cloud Revit Link to Local Revit Link RevitLinkType.LoadFrom in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8413565#M46165</link>
    <description>&lt;P&gt;Dear David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The development team reply:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's supposed to work.&amp;nbsp;Please submit a complete, minimal, self-contained reproducible case for the development team to reproduce and analyse the problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I don't know if this next suggestion will work, but as a workaround&amp;nbsp;you could try making an ExternalResourceReference object using ExternalResourceReference.CreateLocalResource() and then calling the version of LoadFrom() which takes an ExternalResourceReference instead of a ModelPath.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 14:27:45 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2018-11-20T14:27:45Z</dc:date>
    <item>
      <title>Changing a Cloud Revit Link to Local Revit Link RevitLinkType.LoadFrom</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8412654#M46163</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to change the paths of Revit Linked models from a cloud location to a local path location.&lt;/P&gt;
&lt;P&gt;I'm using the following code:&lt;/P&gt;
&lt;PRE&gt;RevitLinkType.LoadFrom(ModelPath, new WorksetConfiguration())&lt;/PRE&gt;
&lt;P&gt;When RevitLinkType is derived from a cloud model I receive:&lt;/P&gt;
&lt;P&gt;I receive the error: An internal error has occurred.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When RevitLinkType is derived from a local path the model is reloaded.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8412654#M46163</guid>
      <dc:creator>david_rock</dc:creator>
      <dc:date>2018-11-20T07:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Cloud Revit Link to Local Revit Link RevitLinkType.LoadFrom</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8412901#M46164</link>
      <description>&lt;P&gt;Dear David, I am asking the development team for you... hang on. Cheers, Jeremy (&lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1542707463021100" target="_blank"&gt;personal link&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 09:52:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8412901#M46164</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-11-20T09:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Cloud Revit Link to Local Revit Link RevitLinkType.LoadFrom</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8413565#M46165</link>
      <description>&lt;P&gt;Dear David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The development team reply:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's supposed to work.&amp;nbsp;Please submit a complete, minimal, self-contained reproducible case for the development team to reproduce and analyse the problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I don't know if this next suggestion will work, but as a workaround&amp;nbsp;you could try making an ExternalResourceReference object using ExternalResourceReference.CreateLocalResource() and then calling the version of LoadFrom() which takes an ExternalResourceReference instead of a ModelPath.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 14:27:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8413565#M46165</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-11-20T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Cloud Revit Link to Local Revit Link RevitLinkType.LoadFrom</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8419814#M46166</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;I tried using:&lt;/P&gt;
&lt;PRE&gt;ExternalResourceReference.CreateLocalResource()&lt;/PRE&gt;
&lt;P&gt;And&amp;nbsp;it worked....&lt;/P&gt;
&lt;PRE&gt;If objRevitLinkType.IsFromLocalPath Then
    objRevitLinkType.LoadFrom(objRockitLinkItem.objModelPath, Nothing)
Else
    Dim objExternalResourceType As ExternalResourceType = ExternalResourceTypes.BuiltInExternalResourceTypes.RevitLink
    Dim objExternalResourceReference As ExternalResourceReference = ExternalResourceReference.CreateLocalResource(activeDBdoc, objExternalResourceType, objRockitLinkItem.objModelPath, PathType.Absolute)
    objRevitLinkType.LoadFrom(objExternalResourceReference, Nothing)
End If&lt;/PRE&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;kind Regards&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 03:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-a-cloud-revit-link-to-local-revit-link-revitlinktype/m-p/8419814#M46166</guid>
      <dc:creator>david_rock</dc:creator>
      <dc:date>2018-11-23T03:58:51Z</dc:date>
    </item>
  </channel>
</rss>

