<?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 to edit IndependentTag.TagText's default? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8510618#M45027</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that's easy.&lt;/P&gt;
&lt;P&gt;It depends on the label parameter used in the IndependentTag family.&lt;/P&gt;
&lt;P&gt;Obviously, it reflects the diameter by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want another parameter to be reflected in that IndependentTag family, just modify the tag family.&lt;/P&gt;
&lt;P&gt;It's a matter of content - and how to use a shared parameter in tag families.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 16:24:22 GMT</pubDate>
    <dc:creator>Revitalizer</dc:creator>
    <dc:date>2019-01-09T16:24:22Z</dc:date>
    <item>
      <title>How to edit IndependentTag.TagText's default?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8509334#M45026</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to bring the values from Parameters to tag on the View of Plans.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sample code(Code Region 16-5: Creating an IndependentTag: &lt;A href="https://help.autodesk.com/cloudhelp/2018/ENU/Revit-API/Revit_API_Developers_Guide/Revit_Geometric_Elements/Annotation_Elements/Tags.html" target="_blank"&gt;https://help.autodesk.com/cloudhelp/2018/ENU/Revit-API/Revit_API_Developers_Guide/Revit_Geometric_Elements/Annotation_Elements/Tags.html&lt;/A&gt;) gives me the good example, however, I'm trying to implement on Pipe. In that case, the TagText's value is set up by Size as a default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to edit&amp;nbsp;the value for Parameter.Set("Hello"), and TagText isn't changed but the value of Parameter on Properties has changed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="images_01.png" style="width: 772px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/588752i766F4E8AC2F79617/image-size/large?v=v2&amp;amp;px=999" role="button" title="images_01.png" alt="images_01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;PipeType type = (e as Pipe).PipeType;&lt;BR /&gt; Parameter foundParameter_01 = type.LookupParameter("Type Size");&lt;BR /&gt; bool result = foundParameter_01.Set(value + "Hello");&lt;/P&gt;
&lt;P&gt;IndependentTag newTag = IndependentTag.Create(doc, doc.ActiveView.Id, reference, true, tagMode, tagorn, xyzMid);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you guys have any idea to tag the value I'd like to insert?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 06:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8509334#M45026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-09T06:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit IndependentTag.TagText's default?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8510618#M45027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that's easy.&lt;/P&gt;
&lt;P&gt;It depends on the label parameter used in the IndependentTag family.&lt;/P&gt;
&lt;P&gt;Obviously, it reflects the diameter by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want another parameter to be reflected in that IndependentTag family, just modify the tag family.&lt;/P&gt;
&lt;P&gt;It's a matter of content - and how to use a shared parameter in tag families.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8510618#M45027</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2019-01-09T16:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit IndependentTag.TagText's default?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8512069#M45028</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I have following questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. TagText can't be modified cuz it's Read-Only. Then, I thought modifying the Parameter name could be the good way to show the TagText on the model.&amp;nbsp;I thought that(as below) is the code to change Parameter for printing the TagText and to set the value.&lt;/P&gt;
&lt;P&gt;Parameter foundParameter = type.LookupParameter("Type Size");&lt;/P&gt;
&lt;P&gt;bool result = foundParameter.Set(value + "Hello");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. It works for Wall, but no to Pipe, which I need. So, can you give me the short example to modify the Tag family?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 04:45:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8512069#M45028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-10T04:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit IndependentTag.TagText's default?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8512402#M45029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you need to edit the tag family &lt;STRONG&gt;&lt;EM&gt;manually.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In fact, the family doesn't know your (string) parameter yet, so you need to add it and assign it to a label's content.&lt;/P&gt;
&lt;P&gt;By hand.&lt;/P&gt;
&lt;P&gt;It's an end user question. See also:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Revit-Model/files/GUID-35D8527F-F602-4DCB-A059-1BF9BAD96649-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Revit-Model/files/GUID-35D8527F-F602-4DCB-A059-1BF9BAD96649-htm.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The point is:&lt;/P&gt;
&lt;P&gt;A tag reflects one or more parameters of a given source element.&lt;/P&gt;
&lt;P&gt;If you want it to display an extra parameter, this parameter must be added to both source and target (via shared parameter).&lt;/P&gt;
&lt;P&gt;In the tag family, the label needs to be modified to display this extra parameter.&lt;/P&gt;
&lt;P&gt;Note that you can define several types in the tag family which can display different information.&lt;/P&gt;
&lt;P&gt;Doing so, you need to make sure that the IndependentTag instance has the correct type assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 08:56:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-edit-independenttag-tagtext-s-default/m-p/8512402#M45029</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2019-01-10T08:56:41Z</dc:date>
    </item>
  </channel>
</rss>

