<?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: How should I change? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4316273#M79186</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get some help and reasonable answers here you must be a bit more specific. Are you getting a compiler error or what's the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: It would be nice, if topic of the discussion thread would give a clear hint what is the issue...now it doesn't tell anything to anybody...&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2013 07:36:56 GMT</pubDate>
    <dc:creator>ollikat</dc:creator>
    <dc:date>2013-07-02T07:36:56Z</dc:date>
    <item>
      <title>How should I change?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4316251#M79185</link>
      <description>&lt;P&gt;Revit 2008 API&amp;nbsp;&lt;/P&gt;&lt;P&gt;private void GetWallOpenInfo()&lt;BR /&gt;{&lt;BR /&gt;// 창문을 구한다.&lt;BR /&gt;Document doc = _commandData.Application.ActiveDocument;&lt;BR /&gt;ElementFilterIterator eIter = doc.get_Elements(typeof(FamilyInstance));&lt;/P&gt;&lt;P&gt;_wallOpenInfo = new Dictionary&amp;lt;FamilyInstance, string&amp;gt;();&lt;/P&gt;&lt;P&gt;while (eIter.MoveNext())&lt;BR /&gt;{&lt;BR /&gt;FamilyInstance family = eIter.Current as FamilyInstance;&lt;BR /&gt;if (family.Category.Equals(doc.Settings.Categories.get_Item(BuiltInCategory.OST_Doors)) ||&lt;BR /&gt;family.Category.Equals(doc.Settings.Categories.get_Item(BuiltInCategory.OST_Windows)))&lt;BR /&gt;{&lt;BR /&gt;if (!_wallOpenInfo.ContainsKey(family))&lt;BR /&gt;_wallOpenInfo.Add(family, family.Host.UniqueId);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2014 Revit API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private void GetWallOpenInfo()&lt;BR /&gt;{&lt;BR /&gt;// 창문을 구한다.&lt;BR /&gt;Document doc = _commandData.Application.ActiveUIDocument.Document;&lt;BR /&gt;//ElementFilterIterator eIter = doc.get_Elements(typeof(FamilyInstance));&lt;BR /&gt;FilteredElementIterator eIter = doc.GetElement(typeof(FamilyInstance));&lt;/P&gt;&lt;P&gt;_wallOpenInfo = new Dictionary&amp;lt;FamilyInstance, string&amp;gt;();&lt;/P&gt;&lt;P&gt;while (eIter.MoveNext())&lt;BR /&gt;{&lt;BR /&gt;FamilyInstance family = eIter.Current as FamilyInstance;&lt;BR /&gt;if (family.Category.Equals(doc.Settings.Categories.get_Item(BuiltInCategory.OST_Doors)) ||&lt;BR /&gt;family.Category.Equals(doc.Settings.Categories.get_Item(BuiltInCategory.OST_Windows)))&lt;BR /&gt;{&lt;BR /&gt;if (!_wallOpenInfo.ContainsKey(family))&lt;BR /&gt;_wallOpenInfo.Add(family, family.Host.UniqueId);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 07:06:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4316251#M79185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-02T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: How should I change?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4316273#M79186</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get some help and reasonable answers here you must be a bit more specific. Are you getting a compiler error or what's the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: It would be nice, if topic of the discussion thread would give a clear hint what is the issue...now it doesn't tell anything to anybody...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 07:36:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4316273#M79186</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2013-07-02T07:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How should I change?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4318396#M79187</link>
      <description>&lt;P&gt;Probably instead&lt;/P&gt;
&lt;P&gt;FilteredElementIterator eIter = doc.GetElement(typeof(FamilyInstance));&lt;/P&gt;
&lt;P&gt;if (family.Category.Equals(doc.Settings.Categories.get_Item(BuiltInCategory.OST_Doors)) || family.Category.Equals(doc.Settings.Categories.get_Item(BuiltInCategory.OST_Windows)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to&lt;/P&gt;
&lt;P&gt;FilteredElementIterator eIter = new FilteredElementIterator(doc);&lt;/P&gt;
&lt;P&gt;eIter.OfClass(typeof(FamilyInstance));&lt;/P&gt;
&lt;P&gt;ElementCategoryFilter filterDoor = new ElementCategoryFilter(BuiltInCategory.OST_Doors);&lt;BR /&gt;ElementCategoryFilter filterWindow = new ElementCategoryFilter(BuiltInCategory.OST_Windows);&lt;BR /&gt;&lt;SPAN&gt;LogicalOrFilter&lt;/SPAN&gt; orFilter = new(filterDoor, filterWindow)&lt;/P&gt;
&lt;P&gt;eIter.WherePasses(orFilter)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 13:26:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4318396#M79187</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2013-07-03T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How should I change?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4319369#M79188</link>
      <description>sorry;;&lt;BR /&gt;ElementFilterIterator eIter = doc.get_Elements(typeof(FamilyInstance));&lt;BR /&gt;%get_Elements%&lt;BR /&gt;You can not take advantage of.</description>
      <pubDate>Thu, 04 Jul 2013 08:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-should-i-change/m-p/4319369#M79188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-04T08:29:01Z</dc:date>
    </item>
  </channel>
</rss>

