<?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: Get all linked DWFx files from in Revit document in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775276#M71029</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a smal buildable sample now, will send it as soon as possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2015 07:18:06 GMT</pubDate>
    <dc:creator>daniel</dc:creator>
    <dc:date>2015-08-18T07:18:06Z</dc:date>
    <item>
      <title>Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5769622#M71027</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to list all links in a document using filteredelementcollectors..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the RVT links (revit and ifc), throug the BuiltInCategory,&amp;nbsp;&lt;/P&gt;&lt;P&gt;DWG links also works fine using the "ofClass(typeof(importInstance)" filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that DWFx and pointclouds also should be listed under this filter?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems not to.. I can't get them through&amp;nbsp;that filter, and I can't see any other type to use (by google or api documentation)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any tips?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are DWFx markups an own class? category ??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tnx&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 13:24:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5769622#M71027</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2015-08-13T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5773293#M71028</link>
      <description>&lt;P&gt;Dear Daniel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please attach a sample file with just one or two links and almost no other content, and tell us exactly what results you would expect to see?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please include everything required to load the file with no warnings, detached from central, all support files included, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&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>Sun, 16 Aug 2015 19:57:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5773293#M71028</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-08-16T19:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775276#M71029</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a smal buildable sample now, will send it as soon as possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 07:18:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775276#M71029</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2015-08-18T07:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775411#M71030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While working on the small sample, I found the error.&lt;/P&gt;&lt;P&gt;It's kind of simple. DWFx does not get linked, even&amp;nbsp;though they&amp;nbsp;appear to be so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I changed from:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; dwgLinks = fecDwgLinks.OfClass(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;typeof&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ImportInstance&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)).ToElements().Cast&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ImportInstance&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;().Where(f=&amp;gt; f.IsLinked);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;to &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; dwgLinks = fecDwgLinks.OfClass(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;typeof&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ImportInstance&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)).ToElements().Cast&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ImportInstance&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Things worked fine. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;I have not tried it on pointClouds, but I guess it will work just fine. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;\Daniel &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 09:36:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775411#M71030</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2015-08-18T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775415#M71031</link>
      <description>&lt;P&gt;Dear Daniel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on solving it, and many thanks for letting us know!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot imagine how often problems get resolved by attempting to create a minimal reproducible sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please post the entire filtered element collector implementation to retrieve the DWF links?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surely just asking for &lt;FONT face="Consolas" size="2" color="#0000ff"&gt;typeof&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;ImportInstance&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&amp;nbsp;will return other links as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also let us know how it goes with the point clouds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&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>Tue, 18 Aug 2015 09:44:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775415#M71031</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-08-18T09:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775459#M71032</link>
      <description>&lt;P&gt;It does return other links aswell, but that is how I want it.&lt;/P&gt;&lt;P&gt;I am creating a tool, which lists all the links.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the collected elements, I just use the category name, which contains the extension name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; namearray = importlink.Category.Name.Split(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;'.'&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; name = namearray.FirstOrDefault();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; extension = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.Empty;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (namearray.LastOrDefault() != &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;extension = namearray.Last();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;then I have created an Enum, wich i group a list on.. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;GroupingEnum&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; lType = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;GroupingEnum&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Unknown;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (extension.ToLower().Contains(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"dwg"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;lType = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;GroupingEnum&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.Dwg;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (extension.ToLower().Contains(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"dwf"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;lType = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;GroupingEnum&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.Dwf;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;this is used to group a list, so that it is easy to chose the wanted elements. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Daniel &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 10:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5775459#M71032</guid>
      <dc:creator>daniel</dc:creator>
      <dc:date>2015-08-18T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get all linked DWFx files from in Revit document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5776117#M71033</link>
      <description>&lt;P&gt;Muy maja, Daniel!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I summarised the result here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/08/batch-processing-dwfx-links-and-future-proofing.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/08/batch-processing-dwfx-links-and-future-proofing.html#3&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>Tue, 18 Aug 2015 15:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-all-linked-dwfx-files-from-in-revit-document/m-p/5776117#M71033</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-08-18T15:55:30Z</dc:date>
    </item>
  </channel>
</rss>

