<?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 Shared Parameters and Multi-Category | Auto update in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535402#M15718</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm creating an add-in that adds annotation labels to pipes, ducts, etc.&amp;nbsp;&lt;BR /&gt;And I need to display the length of these elements.&amp;nbsp;&lt;BR /&gt;I know that I can create separate annotations for each type (pipe, duct, ...):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_0-1667812442826.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136892i9CD865B5107E44BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_0-1667812442826.png" alt="jejeno2544_0-1667812442826.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_1-1667812457597.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136896iD13AA846D7514011/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_1-1667812457597.png" alt="jejeno2544_1-1667812457597.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_2-1667812482266.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136897iFD603A2C8BD2A0BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_2-1667812482266.png" alt="jejeno2544_2-1667812482266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As a result, I get a lot of files.&lt;BR /&gt;&lt;BR /&gt;But I want to have one common Multi-Category tag.&lt;BR /&gt;I've created a custom shared parameter and set the name to CustomLength.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_0-1667815889999.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136912iAF793128703654F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_0-1667815889999.png" alt="jejeno2544_0-1667815889999.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The problem is that I need to manually set this parameter, and when I resize the pipe, this value is not updated automatically.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to create a Multi-Category - CustomLength tag that takes the information from the Length element and automatically updates if we make any changes to that element?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Thanks for any ideas.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 07 Nov 2022 10:11:37 GMT</pubDate>
    <dc:creator>jejeno2544</dc:creator>
    <dc:date>2022-11-07T10:11:37Z</dc:date>
    <item>
      <title>Shared Parameters and Multi-Category | Auto update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535402#M15718</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm creating an add-in that adds annotation labels to pipes, ducts, etc.&amp;nbsp;&lt;BR /&gt;And I need to display the length of these elements.&amp;nbsp;&lt;BR /&gt;I know that I can create separate annotations for each type (pipe, duct, ...):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_0-1667812442826.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136892i9CD865B5107E44BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_0-1667812442826.png" alt="jejeno2544_0-1667812442826.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_1-1667812457597.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136896iD13AA846D7514011/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_1-1667812457597.png" alt="jejeno2544_1-1667812457597.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_2-1667812482266.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136897iFD603A2C8BD2A0BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_2-1667812482266.png" alt="jejeno2544_2-1667812482266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As a result, I get a lot of files.&lt;BR /&gt;&lt;BR /&gt;But I want to have one common Multi-Category tag.&lt;BR /&gt;I've created a custom shared parameter and set the name to CustomLength.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jejeno2544_0-1667815889999.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1136912iAF793128703654F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jejeno2544_0-1667815889999.png" alt="jejeno2544_0-1667815889999.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The problem is that I need to manually set this parameter, and when I resize the pipe, this value is not updated automatically.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to create a Multi-Category - CustomLength tag that takes the information from the Length element and automatically updates if we make any changes to that element?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Thanks for any ideas.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Nov 2022 10:11:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535402#M15718</guid>
      <dc:creator>jejeno2544</dc:creator>
      <dc:date>2022-11-07T10:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Parameters and Multi-Category | Auto update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535731#M15719</link>
      <description>&lt;P&gt;You should explore how to achieve what you need manually in the end user interface first. The API will almost never provide any functionality beyond that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One little API artefact that I found is the&amp;nbsp;PostableCommand enumeration member:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE id="memberList" class="members" frame="lhs"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;SPAN class="selflink"&gt;MultiCategoryTag&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;Attaches tags to elements of multiple categories, based on a shared parameter.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2023/f6ccdc1b-6ac3-9c49-d0bb-8a7d1877eab0.htm" target="_blank"&gt;https://www.revitapidocs.com/2023/f6ccdc1b-6ac3-9c49-d0bb-8a7d1877eab0.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It mentions a shared parameter that apparently plays some role in the multi-category tagging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 12:53:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535731#M15719</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-11-07T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Parameters and Multi-Category | Auto update</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535738#M15720</link>
      <description>&lt;P&gt;IUpdater works perfectly for this case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For example, every time an element with the types Pipe, Duct, and Conduit is created or modified a code runs to update the CustomLength parameter using the build-in Length of the element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://help.autodesk.com/view/RVT/2021/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Advanced_Topics_Dynamic_Model_Update_Implementing_IUpdater_html" target="_blank"&gt;https://help.autodesk.com/view/RVT/2021/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Advanced_Topics_Dynamic_Model_Update_Implementing_IUpdater_html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 12:57:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/shared-parameters-and-multi-category-auto-update/m-p/11535738#M15720</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2022-11-07T12:57:07Z</dc:date>
    </item>
  </channel>
</rss>

