<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3623752830795747390</id><updated>2012-02-16T10:11:43.853-05:00</updated><category term='instance parameter'/><category term='interior'/><category term='type parameter'/><category term='walls'/><category term='slope'/><category term='vg'/><category term='function'/><category term='annotations'/><category term='parameters'/><category term='exterior'/><category term='roofs'/><category term='visibility graphics'/><category term='design option'/><category term='main model'/><category term='doors'/><title type='text'>Revit API Coding</title><subtitle type='html'>A series of posts and observations about programming in Revit, Revit Architecture usage and optimization.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-3342683948298980988</id><published>2011-04-25T17:17:00.000-04:00</published><updated>2011-04-25T17:17:51.632-04:00</updated><title type='text'>Retrieving elements that are not only in the project, but in the model.</title><content type='html'>For instance, the following Filtered Element Collector will gather all of the types of fascia in the project:&lt;br /&gt;&lt;br /&gt;&lt;div style="background: white; color: black; font-family: Lucida Console; font-size: 10pt;"&gt;&lt;div style="margin: 0px;"&gt;&lt;span style="color: teal;"&gt;FilteredElementCollector&lt;/span&gt; collectorCoreFascia = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;FilteredElementCollector&lt;/span&gt;(m_doc).OfCategory(&lt;span style="color: teal;"&gt;BuiltInCategory&lt;/span&gt;.OST_Fascia).WherePasses(filter);&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&lt;span style="color: teal;"&gt;IList&lt;/span&gt;&amp;lt;&lt;span style="color: teal;"&gt;Element&lt;/span&gt;&amp;gt; coreFascia = collectorCoreFascia.ToElements();&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;This will get every single type of fascia, whether it's in the model or not.&amp;nbsp; To get only the pieces that are in the model, we'll check it for a  &lt;br /&gt;&lt;span style="background: none repeat scroll 0% 0% white; color: black; font-family: Lucida Console; font-size: 10pt;"&gt;&lt;br /&gt;PhaseCreated != &lt;span style="color: blue;"&gt;null&lt;/span&gt;&lt;br /&gt;&lt;/span&gt; inside of our loop:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="background: white; color: black; font-family: Lucida Console; font-size: 10pt;"&gt; &lt;div style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: teal;"&gt;Element&lt;/span&gt; eCoreFascia  &lt;span style="color: blue;"&gt;in&lt;/span&gt; coreFascia)&lt;/div&gt;&lt;div style="margin: 0px;"&gt;{&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:TrackMoves/&gt;   &lt;w:TrackFormatting/&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:DoNotPromoteQF/&gt;   &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;    &lt;w:SplitPgBreakAndParaMark/&gt;    &lt;w:DontVertAlignCellWithSp/&gt;    &lt;w:DontBreakConstrainedForcedTables/&gt;    &lt;w:DontVertAlignInTxbx/&gt;    &lt;w:Word11KerningPairs/&gt;    &lt;w:CachedColBalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathPr&gt;    &lt;m:mathFont m:val="Cambria Math"/&gt;    &lt;m:brkBin m:val="before"/&gt;    &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;    &lt;m:smallFrac m:val="off"/&gt;    &lt;m:dispDef/&gt;    &lt;m:lMargin m:val="0"/&gt;    &lt;m:rMargin m:val="0"/&gt;    &lt;m:defJc m:val="centerGroup"/&gt;    &lt;m:wrapIndent m:val="1440"/&gt;    &lt;m:intLim m:val="subSup"/&gt;    &lt;m:naryLim m:val="undOvr"/&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"  DefSemiHidden="true" DefQFormat="false" DefPriority="99"  LatentStyleCount="267"&gt;   &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;   &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;   &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;   &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;   &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;   &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;   &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;   &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;   &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"   UnhideWhenUsed="false" Name="Table Grid"/&gt;   &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;   &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;   &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;   &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;   &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;   &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;   &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;   &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;   &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;   &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;   &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;   &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt; /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}&lt;/style&gt; &lt;![endif]--&gt;  &lt;/div&gt;&lt;div class="MsoNormal" style="text-autospace: none;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;"&gt; (&lt;span style="color: blue;"&gt;null&lt;/span&gt; != eCore.Category &amp;amp;&amp;amp; 0 &amp;lt; eCore.Parameters.Size &amp;amp;&amp;amp; (eCore.Category.HasMaterialQuantities || &lt;span style="color: blue;"&gt;null&lt;/span&gt; != eCore.PhaseCreated) )&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&amp;nbsp; {&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&amp;nbsp;(do something)&lt;/div&gt;&lt;div style="margin: 0px;"&gt;&amp;nbsp; }&lt;/div&gt;&lt;div style="margin: 0px;"&gt;} &lt;/div&gt;&lt;div style="margin: 0px;"&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-3342683948298980988?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/3342683948298980988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/04/retrieving-elements-that-are-not-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/3342683948298980988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/3342683948298980988'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/04/retrieving-elements-that-are-not-only.html' title='Retrieving elements that are not only in the project, but in the model.'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-3323208119890279750</id><published>2011-03-10T11:19:00.001-05:00</published><updated>2011-03-10T11:25:17.790-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='type parameter'/><category scheme='http://www.blogger.com/atom/ns#' term='parameters'/><category scheme='http://www.blogger.com/atom/ns#' term='instance parameter'/><title type='text'>Order of Parameters</title><content type='html'>I've been working on a project in which I retrieve all of the Instance and Type Parameters from an object and I've noticed something odd.&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;foreach (Parameter para in eCoreWall.Parameters)&lt;br /&gt;{&lt;br /&gt;  results += Util.GetParameterInformation(para, m_doc);&lt;br /&gt;}&amp;nbsp;&lt;/pre&gt;&lt;br /&gt;Each time I pull the parameters, they are listed in a different order.&amp;nbsp; Anyone know why?&lt;br /&gt;Here's an abbreviated example:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;1st Time-&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Area: 27.72 SF&lt;br /&gt;Length: 59.00&lt;br /&gt;Function: Exterior&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;2nd Time-&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Length: 59.00&lt;br /&gt;Area: 27.72 SF&lt;br /&gt;Function: Exterior&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-3323208119890279750?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/3323208119890279750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/03/order-of-parameters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/3323208119890279750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/3323208119890279750'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/03/order-of-parameters.html' title='Order of Parameters'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-6793457631016731479</id><published>2011-02-07T14:55:00.007-05:00</published><updated>2011-03-10T11:24:39.357-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visibility graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='vg'/><title type='text'>Using Visiblity Graphics (VG) to Hide and Display Walls by Function</title><content type='html'>Changing the visibility of certain objects is quite easy with the use of Revit's &lt;i&gt;&lt;b&gt;Visibility Graphic Overrides for 3D Views.&lt;/b&gt;&lt;/i&gt; The easiest way to access it is by pressing 'V' then 'G' or by going to View&amp;gt;Graphics&amp;gt;Visibility/Graphics.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMO_Ga_2I/AAAAAAAAAEA/HlWvD5lzHXU/s1600/house_walls.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMO_Ga_2I/AAAAAAAAAEA/HlWvD5lzHXU/s200/house_walls.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Exterior and Interior Walls&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMPM2ySDI/AAAAAAAAAEE/prgIxz-Cc-8/s1600/house_walls_ext.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMPM2ySDI/AAAAAAAAAEE/prgIxz-Cc-8/s200/house_walls_ext.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Exterior Walls&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMPoTHeQI/AAAAAAAAAEI/vgjWusWQmwE/s1600/house_walls_int.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMPoTHeQI/AAAAAAAAAEI/vgjWusWQmwE/s200/house_walls_int.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Interior Walls&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_dke0vUSUvYg/TVBMP9VkyyI/AAAAAAAAAEM/UYYqofabTyM/s1600/vg.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://2.bp.blogspot.com/_dke0vUSUvYg/TVBMP9VkyyI/AAAAAAAAAEM/UYYqofabTyM/s200/vg.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Visibility Graphics 'Filters'&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_dke0vUSUvYg/TVBMQPn-CmI/AAAAAAAAAEQ/oPzWWgWfMFE/s1600/vg_ext.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://2.bp.blogspot.com/_dke0vUSUvYg/TVBMQPn-CmI/AAAAAAAAAEQ/oPzWWgWfMFE/s200/vg_ext.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Exterior Walls Filter&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMQS4TBII/AAAAAAAAAEU/v1_GmC4_fiU/s1600/vg_fnd.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMQS4TBII/AAAAAAAAAEU/v1_GmC4_fiU/s200/vg_fnd.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Foundation Walls Filter&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_dke0vUSUvYg/TVBMQn4ejRI/AAAAAAAAAEY/tBCRCNZkjag/s1600/vg_int.gif" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="118" src="http://4.bp.blogspot.com/_dke0vUSUvYg/TVBMQn4ejRI/AAAAAAAAAEY/tBCRCNZkjag/s200/vg_int.gif" width="200" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Interior  Walls Filter&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-6793457631016731479?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/6793457631016731479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/02/using-visiblity-graphics-vg-to-hide-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/6793457631016731479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/6793457631016731479'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/02/using-visiblity-graphics-vg-to-hide-and.html' title='Using Visiblity Graphics (VG) to Hide and Display Walls by Function'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_dke0vUSUvYg/TVBMO_Ga_2I/AAAAAAAAAEA/HlWvD5lzHXU/s72-c/house_walls.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-4111606945523945915</id><published>2011-02-07T13:53:00.002-05:00</published><updated>2011-02-07T14:00:42.130-05:00</updated><title type='text'>Revit Extension</title><content type='html'>So, I'm installing &lt;a href="http://www.extensions4revit.com/n/e4r"&gt;Revit Extensions&lt;/a&gt; and the Extension SDK today- looking forward to learning even more about the inner-workings of Revit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-4111606945523945915?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/4111606945523945915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/02/revit-extension.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/4111606945523945915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/4111606945523945915'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/02/revit-extension.html' title='Revit Extension'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-3817642385742308116</id><published>2011-01-21T14:13:00.000-05:00</published><updated>2011-01-21T14:16:42.010-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='roofs'/><category scheme='http://www.blogger.com/atom/ns#' term='slope'/><category scheme='http://www.blogger.com/atom/ns#' term='annotations'/><title type='text'>Spot Slope Markers</title><content type='html'>&lt;div class="separator" style="float: left; margin: 0pt 20px 20px 0pt; text-align: left;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://i.ytimg.com/vi/0o7vziHQwJk/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/0o7vziHQwJk?f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/0o7vziHQwJk?f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;This is an odd occurrence that we encountered today.  When adding slope marker annotations in elevation views, we've noticed that it will pick up the slopes of not only the roof surfaces, but also the adjoining hips and valleys.&lt;br /&gt;&lt;br /&gt;Is there any way to make them only pick up the surfaces? Otherwise, it takes a few clicks of the TAB button to find the right one. Not that it's a big deal, but it makes the user double-think the annotation which should be automatic.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-3817642385742308116?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/3817642385742308116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/01/this-is-odd-occurrence-that-we.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/3817642385742308116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/3817642385742308116'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/01/this-is-odd-occurrence-that-we.html' title='Spot Slope Markers'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-7170884444335493377</id><published>2011-01-13T16:09:00.000-05:00</published><updated>2011-01-13T16:14:48.208-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='parameters'/><category scheme='http://www.blogger.com/atom/ns#' term='interior'/><category scheme='http://www.blogger.com/atom/ns#' term='doors'/><category scheme='http://www.blogger.com/atom/ns#' term='exterior'/><title type='text'>Door Functions and Names</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_dke0vUSUvYg/TS9lRr_4I8I/AAAAAAAAADI/DKi_IOs5wsg/s1600/section.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="187" src="http://4.bp.blogspot.com/_dke0vUSUvYg/TS9lRr_4I8I/AAAAAAAAADI/DKi_IOs5wsg/s200/section.gif" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;Another part of my material collection process it to gather all doors and group them by Exterior and Interior. I had a bit of trouble getting the door functions- it wasn't the same as the walls. Doors are family instances inside the project document, so in addition to the base family parameters, each has its own family type instance parameters.&lt;br /&gt;&lt;br /&gt;By default, a door has its function set to 0 which is Interior (1 is Exterior).  If you ever create a type catalog for a door family, remember to use 0 and 1 instead of Interior/Exterior!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Again, this doesn't work and results in an error:&lt;br /&gt;&lt;pre class="prettyprint"&gt;Parameter doorFunc = e.get_Parameter(BuiltInParameter.FUNCTION_PARAM);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This returns the door's function- Interior or Exterior:&lt;br /&gt;&lt;pre class="prettyprint"&gt;static public string GetDoorFunction(Element e)&lt;br /&gt;{&lt;br /&gt; Parameter param = e.ObjectType.get_Parameter(BuiltInParameter.FUNCTION_PARAM);&lt;br /&gt; string doorFuncVal = param.AsInteger().ToString();&lt;br /&gt; return doorFuncVal;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I noticed that 'ObjectType' is deprecated, but I'm not having any luck with using the ElementId/ElementType right now.&lt;br /&gt;&lt;br /&gt;And to get a door's family name:&lt;br /&gt;&lt;pre class="prettyprint"&gt;static public string GetDoorType(Element e)&lt;br /&gt;{&lt;br /&gt; FamilyInstance fi = e as FamilyInstance;&lt;br /&gt; string value = fi.Symbol.Family.Name;&lt;br /&gt; return value;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;And the result:&lt;br /&gt;&lt;pre class="prettyprint lang-html"&gt;BASE Interior Doors:&lt;br /&gt;**********&lt;br /&gt;Single swing, 2468&lt;br /&gt;Single swing, 2468&lt;br /&gt;Bi-Fold 2 Panel (TC), 2068&lt;br /&gt;Double bifold, 4068&lt;br /&gt;Single swing, 1668&lt;br /&gt;Single Swing, 2068 &lt;br /&gt;&lt;br /&gt;BASE Exterior Doors:&lt;br /&gt;**********&lt;br /&gt;double slider, 6068 SGD&lt;br /&gt;garage door_16ft, 1680&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-7170884444335493377?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/7170884444335493377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/01/door-functions-and-names.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/7170884444335493377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/7170884444335493377'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/01/door-functions-and-names.html' title='Door Functions and Names'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_dke0vUSUvYg/TS9lRr_4I8I/AAAAAAAAADI/DKi_IOs5wsg/s72-c/section.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-8667124615856779282</id><published>2011-01-13T09:00:00.000-05:00</published><updated>2011-01-13T16:15:19.001-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='main model'/><category scheme='http://www.blogger.com/atom/ns#' term='design option'/><category scheme='http://www.blogger.com/atom/ns#' term='walls'/><title type='text'>Retrieving Classes and Categories from the 'Main Model'</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/_dke0vUSUvYg/TS8RMi0uqtI/AAAAAAAAADE/7uOLZz1P_98/s1600/snow.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://2.bp.blogspot.com/_dke0vUSUvYg/TS8RMi0uqtI/AAAAAAAAADE/7uOLZz1P_98/s200/snow.jpg" width="150" /&gt;&lt;/a&gt;&lt;/div&gt;We just got another 5 or 6 inches of snow over the last couple of days.&amp;nbsp; After the foot or so that we had over Christmas (that quickly melted once it got up to the 60's for a day!) I believe this is probably the most snow we've had this early for quite some time. &lt;br /&gt;&lt;br /&gt;I'm working on a material collection project in Revit right now.&amp;nbsp; Part of this collection hinges on&amp;nbsp; obtaining a plus-minus report that lists all elements and their properties for each 'option set' in the house.&lt;br /&gt;&lt;br /&gt;Revit has a 'DesignOption' field for each element, whether it be a system family or a custom family, that defaults to 'Main Model.'&amp;nbsp; Once the item is placed into a design option, this is obviously changed to the design option id in the database. Here I get an IList&amp;lt;T&amp;gt; of the walls in the main model:&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;/*Walls in Main Model*/&lt;br /&gt;BuiltInParameter bip = BuiltInParameter.DESIGN_OPTION_PARAM;&lt;br /&gt;ParameterValueProvider provider = new ParameterValueProvider(new ElementId(bip));&lt;br /&gt;FilterStringRuleEvaluator evaluator = new FilterStringEquals();&lt;br /&gt;FilterRule rule = new FilterStringRule(provider, evaluator, "Main Model", false);&lt;br /&gt;ElementParameterFilter filter = new ElementParameterFilter(rule);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FilteredElementCollector collectorCoreWalls = new &lt;br /&gt;    FilteredElementCollector(m_doc).OfClass(typeof(Wall)).WherePasses(filter);&lt;br /&gt;IList&amp;lt;Element&amp;gt; coreWalls = collectorCoreWalls.ToElements();&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The same can be done for Floors (&lt;i&gt;&lt;b&gt;Floor&lt;/b&gt;&lt;/i&gt;), Roofs (&lt;i&gt;&lt;b&gt;RoofBase&lt;/b&gt;&lt;/i&gt;), Ceilings and Floors (&lt;i&gt;&lt;b&gt;CeilingAndFloor&lt;/b&gt;&lt;/i&gt;) and others.&lt;br /&gt;&lt;br /&gt;Next post I'll show how to loop through Design Option Elements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-8667124615856779282?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/8667124615856779282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/01/retrieving-classes-and-categories-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/8667124615856779282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/8667124615856779282'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/01/retrieving-classes-and-categories-from.html' title='Retrieving Classes and Categories from the &apos;Main Model&apos;'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_dke0vUSUvYg/TS8RMi0uqtI/AAAAAAAAADE/7uOLZz1P_98/s72-c/snow.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3623752830795747390.post-6918955318266137094</id><published>2011-01-11T11:18:00.000-05:00</published><updated>2011-01-13T16:15:35.005-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='parameters'/><category scheme='http://www.blogger.com/atom/ns#' term='walls'/><title type='text'>Retrieving a wall's Function Parameter (BuiltInParameter.FUNCTION_PARAM)</title><content type='html'>For part of a large Revit material-gathering project I'm working on, I need to retrieve a wall's function.  Walls can be assigned six functions from within their type properties:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Interior&lt;/li&gt;&lt;li&gt;Exterior&lt;/li&gt;&lt;li&gt;Foundation&lt;/li&gt;&lt;li&gt;Retaining&lt;/li&gt;&lt;li&gt;Soffit&lt;/li&gt;&lt;li&gt;Core-Shaft&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;At first I thought it would be fairly straight-forward, and I'd just do this grab the valuestring of the 'FUNCTION_PARAM' like so:&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;eWall.get_Parameter("Function").AsValueString()&lt;/pre&gt;&lt;br /&gt;But that gave me a NULL value and crashed Revit. The approach that worked for me was this:&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;static public string IsExterior(Element e, Document doc)&lt;br /&gt;{&lt;br /&gt;    ElementId id = e.GetTypeId();&lt;br /&gt;    ElementType wallType = doc.get_Element(id) as ElementType;&lt;br /&gt;&lt;br /&gt;    Parameter wallFunction = wallType.get_Parameter&lt;br /&gt;        (BuiltInParameter.FUNCTION_PARAM);&lt;br /&gt;    WallFunction value  = (WallFunction)wallFunction.AsInteger();&lt;br /&gt;&lt;br /&gt;    return value.ToString();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;Thanks to &lt;a href="http://thebuildingcoder.typepad.com/blog/2010/01/south-facing-walls.html" target="_blank" title="South Facing Walls"&gt;Jeremy Tammik's SDK example&lt;/a&gt; for setting me straight.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3623752830795747390-6918955318266137094?l=revitcoding.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://revitcoding.blogspot.com/feeds/6918955318266137094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://revitcoding.blogspot.com/2011/01/retrieving-walls-function-parameter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/6918955318266137094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3623752830795747390/posts/default/6918955318266137094'/><link rel='alternate' type='text/html' href='http://revitcoding.blogspot.com/2011/01/retrieving-walls-function-parameter.html' title='Retrieving a wall&apos;s Function Parameter (BuiltInParameter.FUNCTION_PARAM)'/><author><name>Kenny Redman</name><uri>http://www.blogger.com/profile/18036423345857513498</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://1.bp.blogspot.com/-yvVnqa9IRI0/Th2QY1AigmI/AAAAAAAAAGQ/-Nyq1RTOXMw/s220/K-Logo.png'/></author><thr:total>0</thr:total></entry></feed>
