<?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 Getting parameters assigned to a label in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9487270#M34571</link>
    <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm interested in getting a list of all the parameter names associated with a label. I'm able to get the labels.&amp;nbsp; I'm able to get the parameters OF the label.&amp;nbsp; I've scoured Revit Lookup but can't seem to find the parameters ASSIGNED to the label.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't even need the actual parameters, just the parameter name strings, "Detail Number" etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like it should be easy...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 644px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/764134iC93E2540294EF5D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 19:24:35 GMT</pubDate>
    <dc:creator>CADdaddy.com</dc:creator>
    <dc:date>2020-05-02T19:24:35Z</dc:date>
    <item>
      <title>Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9487270#M34571</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm interested in getting a list of all the parameter names associated with a label. I'm able to get the labels.&amp;nbsp; I'm able to get the parameters OF the label.&amp;nbsp; I've scoured Revit Lookup but can't seem to find the parameters ASSIGNED to the label.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't even need the actual parameters, just the parameter name strings, "Detail Number" etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like it should be easy...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 644px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/764134iC93E2540294EF5D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 19:24:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9487270#M34571</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2020-05-02T19:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9489152#M34572</link>
      <description>&lt;P&gt;If you have access to the &lt;U&gt;Parameter&lt;/U&gt; itself, i.e., the object residing on the Revit Element and containing the parameter value, that you can easily access its name or label as well. It is defined by the parameter &lt;U&gt;Definition&lt;/U&gt; object, accessible via the &lt;U&gt;Parameter.Definition&lt;/U&gt; property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.revitapidocs.com/2020/dc30c65f-cfc4-244e-5a5c-bc333d7cd4c5.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/dc30c65f-cfc4-244e-5a5c-bc333d7cd4c5.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 06:36:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9489152#M34572</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-05-04T06:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9490937#M34573</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the prompt reply!&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I can't get (or don't know how to get) th&lt;SPAN style="font-family: inherit;"&gt;e actual parameter object.&amp;nbsp; In Revit Lookup, following the Label parameter of the TextElement leads to what appears to be a dead end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 907px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/764910i99C40276747D5B47/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 19:09:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9490937#M34573</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2020-05-04T19:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491069#M34574</link>
      <description>&lt;P&gt;As far as I know this is still not possible. I've long ago categorised it under 'you'd think it would be easy but is actually impossible.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the SharedParameterElement objects you get in a family are typically those used as parameters and not necessarily those used in a label.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 19:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491069#M34574</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-05-04T19:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491171#M34575</link>
      <description>&lt;P&gt;Wow. Shocking. I certainly hope a wish has been raised for this in the Revit Idea Station, at least.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 20:30:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491171#M34575</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-05-04T20:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491348#M34576</link>
      <description>&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it is surprising. I've added an Idea for it now within the link below, hope the idea is clear enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-ideas/list-parameters-used-in-a-label-textelement-within-a-family/idi-p/9491306" target="_blank"&gt;https://forums.autodesk.com/t5/revit-ideas/list-parameters-used-in-a-label-textelement-within-a-family/idi-p/9491306&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At one point this was definitely an item at the top of my list but my priorities changed.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 21:22:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491348#M34576</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-05-04T21:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491681#M34577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for creating the idea! I came up against this a long while back.&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/82503"&gt;@CADdaddy.com&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thought that reading these latest posts brought up was that there's a possible (terrible!) workaround.&lt;/P&gt;&lt;P&gt;Create a dud model, create an instance of the thing to be tagged, tag it with your family, set the parameters of the instance to unique values, then read the tag's TagText value, and decipher it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I told you it was terrible.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 00:06:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491681#M34577</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-05-05T00:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491760#M34578</link>
      <description>&lt;P&gt;Thank you for the confirmation.&amp;nbsp; Now I can quit wondering if I've missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to determine programmatically whether a viewport is currently displaying the drawing number on the sheet.&amp;nbsp;&amp;nbsp;Is there any other way to confirm that besides checking to labels in the family to see if one contains a pointer to the DrawingNumber parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;james&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>Tue, 05 May 2020 01:16:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491760#M34578</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2020-05-05T01:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491775#M34579</link>
      <description>&lt;P&gt;Okay....in the time it took to write may last post there've been suggestions!&amp;nbsp; Not so terrible ones!&amp;nbsp; They can work since there are usually only a couple of view title families in a project so performance won't be an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll let you know how it goes.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 01:22:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491775#M34579</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2020-05-05T01:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491843#M34580</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/82503"&gt;@CADdaddy.com&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your description helped me a little more. I don't think my 'terrible' idea will work as you are not dealing with an IndependentTag.&lt;/P&gt;&lt;P&gt;The solution may be easier though.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the viewport. From that, use GetLabelOutline to get the size of the title.&lt;/LI&gt;&lt;LI&gt;Renumber the referenced sheet number so that its number is very long.&lt;/LI&gt;&lt;LI&gt;Commit transaction (or regenerate?).&lt;/LI&gt;&lt;LI&gt;Check GetLabelOutline again to see if the size has changed. If so, it likely contains the referenced sheet number.&lt;/LI&gt;&lt;LI&gt;Roll back the transaction.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 05 May 2020 02:21:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9491843#M34580</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-05-05T02:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9497621#M34581</link>
      <description>&lt;P&gt;Wow, Matthew, you are certainly the master of insane-but-tantalizingly-possible workarounds.&amp;nbsp; I'll give it a go!&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 23:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9497621#M34581</guid>
      <dc:creator>james.levieux</dc:creator>
      <dc:date>2020-05-06T23:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9497781#M34582</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7672376"&gt;@james.levieux&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Haha, thanks James.&lt;/P&gt;&lt;P&gt;The Revit API is vast, but sometimes not vast enough.&lt;/P&gt;&lt;P&gt;I can't take credit for inventing the temporary transaction trick, but there are many uses for it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know how you get on!&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 01:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9497781#M34582</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-05-07T01:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9499755#M34583</link>
      <description>&lt;P&gt;This works in preliminary tests.&amp;nbsp; Thanks a million.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private bool dwgNumVisibleOnSheet(Viewport viewport)
{ 
    //method to determine if drawing number is displayed by the viewport on the sheet.

    //This is needed in the case where the title is not hidden but, either the Drawing 
    //Title component family does NOT include a label that points to the
    //Detail Number parameter OR the label that points to the Detail
    //Number is HIDDEN in the type.

    //This method was written as a workaround because it appears to be 
    //impossible to acquire whether a label pointing to the Detail Number exists 
    //in a Drawing Title component family by  directly inspecting the contents
    //using doc.EditFamily.

    //get current size of label outline
    double curOutline = viewport.GetLabelOutline().GetDiagonalLength();

    //temporary transaction to acquire new size after changing the Detail Number 
    //to a large size that will (hopefully) certainly change the boundary no matter the size
    //of the view or the justification of the text
    Transaction trans = new Transaction(viewport.Document);
    trans.Start("testingDrawingNumberVisible");
        Parameter vp = viewport.get_Parameter(BuiltInParameter.VIEWPORT_DETAIL_NUMBER);
        string str100 = "----------------------------------------------------------------------------------------------------";
        vp.Set(str100 + "Revision Narrative Test String" + str100);
        viewport.Document.Regenerate();
        Double newOutline = viewport.GetLabelOutline().GetDiagonalLength();
    trans.RollBack();

    //compare sizes
    if (curOutline==newOutline) return false;
    return true;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 17:03:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9499755#M34583</guid>
      <dc:creator>james.levieux</dc:creator>
      <dc:date>2020-05-07T17:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9500191#M34584</link>
      <description>&lt;P&gt;Looking good to me... very creative approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on solving such an unsolvable task!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 20:28:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9500191#M34584</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-05-07T20:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9500226#M34585</link>
      <description>&lt;P&gt;Nice one &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7672376"&gt;@james.levieux&lt;/a&gt;! Glad you got it sorted; thanks for sharing your working.&lt;/P&gt;&lt;P&gt;You may also be able to make assumptions about other viewports based on their type. It may also be worth adding the existing detail number into the temporary string in case you want to check more than one (it may need to be unique?) in a loop.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 20:48:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9500226#M34585</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-05-07T20:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9500367#M34586</link>
      <description>&lt;P&gt;As an alternative suggestion:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your company template you have:&lt;/P&gt;&lt;P&gt;1) A number of system family view ports defined each of which reference:&lt;/P&gt;&lt;P&gt;2) A single annotation symbol family from a limited set of annotation families loaded into your project or in your library external to the project.&lt;/P&gt;&lt;P&gt;3) Item (1) above also contains a built in type parameter named 'Show Title' (Yes/No/When Multiple Viewports)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for each viewport you should know which (1) is set for it, which leads to which (2) is defined for that (1) along with what the parameter value of (3) is for (1). Therefore the visibility of the title parameter on a sheet can be known based on knowing your content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it isn't your content library then you create a settings mapping for a third party to indicate if a particular item from (2) above contains Sheet Number. We have around ten system families defined for viewport (ten yes/no's for contains Sheet Number).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 22:17:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9500367#M34586</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-05-07T22:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9502683#M34587</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use the same test string every time because the value always gets rolled back before the next viewport is tested.&amp;nbsp; There will never be a duplication.&amp;nbsp; I should probably put it all in a try/catch statement to &lt;U&gt;ensure&lt;/U&gt; it gets rolled back in the event of an unexpected error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Definitely not air tight though.&amp;nbsp; Somebody could use a left justified Drawing Number label in a very wide viewport where the line is longer than my text string.&amp;nbsp; Also, needing to regen to check every viewport type could be a significant dragfor some projects.&amp;nbsp; I've seen a lot of firms who use a separate viewport type for every 1/2" of viewport width (they don't use the stretchy line).&amp;nbsp; That could be the deal breaker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 19:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9502683#M34587</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2020-05-08T19:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameters assigned to a label</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9505444#M34588</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;I think your air-tightness and performance issues can all be mitigated.&lt;/P&gt;&lt;P&gt;Do it all within one transaction, make the strings unique, and make your string longer...you need to allow for wordwrap too. (Adding spaces to the test string will help wordwrap; best to avoid them.)&lt;BR /&gt;Quasi-code in VB.NET:&lt;/P&gt;&lt;P&gt;dim currOutlineDict as new Dictionary(of Viewport, Double)&lt;/P&gt;&lt;P&gt;Using trans as new Transaction(doc,"Temp Trans")&lt;/P&gt;&lt;P&gt;trans.start&lt;/P&gt;&lt;P&gt;For each viewport as ViewPort in Viewports&lt;/P&gt;&lt;P&gt;&amp;nbsp; dim failViewports as new &amp;nbsp;list (of viewport)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim curOutline =...&lt;/P&gt;&lt;P&gt;&amp;nbsp; currOutlineDict.Add(Viewport, curOutline)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Set viewport text here.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token keyword"&gt;&amp;nbsp; dim &lt;/SPAN&gt;str100&amp;nbsp; as string&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" ' The letter W is wide.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;vp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;str100 &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;viewport.Id.tostring() &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt; str100&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;doc.regenerate&lt;/P&gt;&lt;P&gt;For each viewport as ViewPort in Viewports&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim newOutline =...&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim currOutline= currOutlineDict.item(viewport)&lt;/P&gt;&lt;P&gt;&amp;nbsp; If currOutline = newOutline&amp;nbsp;then&amp;nbsp;'Introduce FUZZ check here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; failViewports.add(viewport)&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;trans.rollback&lt;/P&gt;&lt;P&gt;end using&lt;/P&gt;&lt;P&gt;return failViewports&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 21:02:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameters-assigned-to-a-label/m-p/9505444#M34588</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-05-10T21:02:11Z</dc:date>
    </item>
  </channel>
</rss>

