<?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: Hide a schedule column if it is empty in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12190366#M10051</link>
    <description>&lt;P&gt;Yes, I am familiar with what you described, but in my case the element will always have a unique value.&lt;/P&gt;&lt;P&gt;Also, the various options mean that these columns have some values and I don't need to hide them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the advice.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 08:50:11 GMT</pubDate>
    <dc:creator>dorer69044</dc:creator>
    <dc:date>2023-08-23T08:50:11Z</dc:date>
    <item>
      <title>Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12187808#M10046</link>
      <description>&lt;P&gt;I have a schedule in which one column can be empty some of the time and filled some of the time.&lt;/P&gt;&lt;P&gt;For example, that column is "Mark" and I want to implement the following scenario:&lt;BR /&gt;1) If all rows have no "Mark" value, then hide it.&lt;BR /&gt;2) If one or more rows have a value, show that column.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dorer69044_0-1692699290727.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1256339i59A1097BAD1431E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dorer69044_0-1692699290727.png" alt="dorer69044_0-1692699290727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I know it can be done with an API.&lt;BR /&gt;Manually check each element and show or hide the column based on that information.&lt;BR /&gt;Perhaps Revit has a mechanism to skip checking each element?&lt;BR /&gt;&lt;BR /&gt;Thanks for any advice!!!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:25:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12187808#M10046</guid>
      <dc:creator>dorer69044</dc:creator>
      <dc:date>2023-08-22T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12187835#M10047</link>
      <description>&lt;P&gt;I am not aware of any non-API functionality to achieve that.&amp;nbsp;Please also note that this discussion forum is dedicated to programming Revit using the Revit API. If you are searching for help to solve your issue manually from an end user point of view without the API, you will probably have more success and address more knowledgeable people for that aspect of things in the non-API Revit product support discussion forums:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not-for/td-p/5607765" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not-for/td-p/5607765&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:37:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12187835#M10047</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-08-22T10:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12189097#M10048</link>
      <description>&lt;P&gt;Yes, I need from the API side, but I know a way where I manually check each element.GetParamter("Mark") and based on that information create or not create a column.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But maybe there are already properties for the schedule column or something like that that would help skip that manual work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;About manual I mean:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;bool hasValue = false;
foreach (var element in elements) 
{
   var parameterValue = element.GetParameter("Mark")?.AsString;
   if (!string.IsNullOrEmpty(parameterValue))
   {
      hasValue = true;
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 18:48:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12189097#M10048</guid>
      <dc:creator>dorer69044</dc:creator>
      <dc:date>2023-08-22T18:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12189106#M10049</link>
      <description>&lt;P&gt;I suspect the approach you describe is the best way to go. I doubt that Revit has any further-going support for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 18:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12189106#M10049</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-08-22T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12189571#M10050</link>
      <description>&lt;P&gt;There isn't always a one to one relationship between rows in a schedule and elements represented in a schedule. In your example the count is one but it could be they are grouped. Depends on aspects such as 'itemise every instance.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think therefore rather than iterating the elements you should be iterating the schedule rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to check if below forms a solution:&lt;/P&gt;&lt;P&gt;With&amp;nbsp;ScheduleDefinition.IsItemized = false you have the below where if there is a combination of empty and populated cells within a column it will use '&amp;lt;varies&amp;gt;'&lt;/P&gt;&lt;P&gt;This is a localised string but can also be set via&lt;/P&gt;&lt;P&gt;ScheduleField.MultipleValuesCustomText with&amp;nbsp;&amp;nbsp;ScheduleField.MultipleValuesDisplayType = Custom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text value should be readable via&amp;nbsp;TableView.GetCellText or TableSectionData.GetCellText&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RPTHOMAS108_0-1692746184778.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1256661i28BA643AEA6A0BED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RPTHOMAS108_0-1692746184778.png" alt="RPTHOMAS108_0-1692746184778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However you'll have to check this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 23:23:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12189571#M10050</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2023-08-22T23:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12190366#M10051</link>
      <description>&lt;P&gt;Yes, I am familiar with what you described, but in my case the element will always have a unique value.&lt;/P&gt;&lt;P&gt;Also, the various options mean that these columns have some values and I don't need to hide them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the advice.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:50:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12190366#M10051</guid>
      <dc:creator>dorer69044</dc:creator>
      <dc:date>2023-08-23T08:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a schedule column if it is empty</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12195298#M10052</link>
      <description>&lt;P&gt;You mean the elements in the schedule you are dealing with have a unique value (itemize all instances).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Who is to say what another similar schedule you create for a temporary purpose contains?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 23:26:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/hide-a-schedule-column-if-it-is-empty/m-p/12195298#M10052</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2023-08-24T23:26:01Z</dc:date>
    </item>
  </channel>
</rss>

