<?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: GetLinkDocument() broken in 2020? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387800#M35873</link>
    <description>&lt;P&gt;yes always the same. i think a find my mistake! the GetDocument() was part of another code, which is use to retrieve the project base point of all links. So all this time it wasn't the getdocument but the issue was at the BuiltInCategory.OST_ProjectBasePoint .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I change it to&amp;nbsp;&lt;SPAN&gt;basePoints = FilteredElementCollector(doc).OfClass(BasePoint).ToElements() and all works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sorry for the misinterpretation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you for all your feedback!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 16:37:54 GMT</pubDate>
    <dc:creator>Yien_Chao</dc:creator>
    <dc:date>2020-03-19T16:37:54Z</dc:date>
    <item>
      <title>GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9385210#M35866</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this command works well for all version, except Revit 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.GetLinkDocument()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/6f81c365-15d9-06b8-48ef-df84914fec60.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/6f81c365-15d9-06b8-48ef-df84914fec60.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone experienced the same?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 16:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9385210#M35866</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2020-03-18T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9385614#M35867</link>
      <description>&lt;P&gt;I have not had any issues with this and have it in several locations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using (FilteredElementCollector rvtLinks = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_RvtLinks).OfClass(typeof(RevitLinkType)))
            {
                if (rvtLinks.ToElements().Count &amp;gt; 0)
                {
                    foreach (RevitLinkType rvtLink in rvtLinks.ToElements())
                    {
                        if (rvtLink.GetLinkedFileStatus() == LinkedFileStatus.Loaded)
                        {
                            RevitLinkInstance link = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_RvtLinks).OfClass(typeof(RevitLinkInstance)).Where(x =&amp;gt; x.GetTypeId() == rvtLink.Id).First() as RevitLinkInstance;
                            dtLinks.Rows.Add(rvtLink.Name, link.GetLinkDocument());
                        }
                    }
                }
            }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Mar 2020 19:49:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9385614#M35867</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-18T19:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9385719#M35868</link>
      <description>&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;i will do some more tests&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 20:36:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9385719#M35868</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2020-03-18T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9386268#M35869</link>
      <description>&lt;P&gt;problem is i've tried to get document from many links (like 9-10), some works and some don't.&lt;/P&gt;&lt;P&gt;they are all loaded and all the worksets are open.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will look further (im in Python by the way)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 03:33:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9386268#M35869</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2020-03-19T03:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9386650#M35870</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are any of the links from BIM360?, from Revit 2019 they need to be retrieved differently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 09:25:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9386650#M35870</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-03-19T09:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387481#M35871</link>
      <description>&lt;P&gt;no its all on the server.&lt;/P&gt;&lt;P&gt;it still works fine in 2018, 2019, but somehow not perfectly in 2020.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387481#M35871</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2020-03-19T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387489#M35872</link>
      <description>&lt;P&gt;Is it always the same link(s) that cause the issue? Do you have the exception error it throws when it doesn't work?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:59:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387489#M35872</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-19T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: GetLinkDocument() broken in 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387800#M35873</link>
      <description>&lt;P&gt;yes always the same. i think a find my mistake! the GetDocument() was part of another code, which is use to retrieve the project base point of all links. So all this time it wasn't the getdocument but the issue was at the BuiltInCategory.OST_ProjectBasePoint .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I change it to&amp;nbsp;&lt;SPAN&gt;basePoints = FilteredElementCollector(doc).OfClass(BasePoint).ToElements() and all works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sorry for the misinterpretation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you for all your feedback!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 16:37:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getlinkdocument-broken-in-2020/m-p/9387800#M35873</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2020-03-19T16:37:54Z</dc:date>
    </item>
  </channel>
</rss>

