<?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 Text Style Set Background, Color, Arrow Style in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3621896#M80435</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working with creating text types for awhile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using C#: - Revit 2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                        // Create a duplicate
                        Element ele = textNote.TextNoteType.Duplicate(txtType);
                        TextNoteType noteType = ele as TextNoteType;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can easily change Font Type to Arial Narrow along with almost everything else.&lt;/P&gt;&lt;PRE&gt;noteType.get_Parameter("Text Font").Set("Arial Narrow");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find any information on the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Background?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Color?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Keep Readable option?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Project Leader Arrowhead Style?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Sep 2012 00:28:54 GMT</pubDate>
    <dc:creator>mfleming.stantec</dc:creator>
    <dc:date>2012-09-17T00:28:54Z</dc:date>
    <item>
      <title>Text Style Set Background, Color, Arrow Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3621896#M80435</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working with creating text types for awhile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using C#: - Revit 2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                        // Create a duplicate
                        Element ele = textNote.TextNoteType.Duplicate(txtType);
                        TextNoteType noteType = ele as TextNoteType;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can easily change Font Type to Arial Narrow along with almost everything else.&lt;/P&gt;&lt;PRE&gt;noteType.get_Parameter("Text Font").Set("Arial Narrow");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find any information on the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Background?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Color?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Keep Readable option?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;How do I set Text Style Project Leader Arrowhead Style?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2012 00:28:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3621896#M80435</guid>
      <dc:creator>mfleming.stantec</dc:creator>
      <dc:date>2012-09-17T00:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Text Style Set Background, Color, Arrow Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3622000#M80436</link>
      <description>&lt;P&gt;Received info on Text Style Background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Text Background 1 = Transparent or 0 =Opaque&lt;BR /&gt;noteType.get_Parameter("Background").Set(1);&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2012 04:48:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3622000#M80436</guid>
      <dc:creator>mfleming.stantec</dc:creator>
      <dc:date>2012-09-17T04:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Text Style Set Background, Color, Arrow Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3625384#M80437</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; How do I set Text Style Background?&lt;BR /&gt; In the previous update, you mentioned the mothod to call the line.&lt;BR /&gt; noteType.get_Parameter("Background").Set(1);&lt;BR /&gt; Actually this doesn't help. I checked that for any color, the text style object's "Background“ Parameter value is always 1. Revit API cannot set specific color as the text style back ground.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;How do I set Text Style Color?&lt;BR /&gt; Text color can be set by changing the text style object's "Color" parameter value. The color value in the RGB value in decimal. &lt;BR /&gt; for example: noteType.get_Parameter("Color").Set(16744448); //16744448 = (R=155 G=128 B=0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;How do I set Text Style Keep Readable option?&lt;BR /&gt; Directly chang ethe text object's "Keep Readable" parameter value to 1. Note this parameter doesn't belong to the text type, but text element itself. &lt;BR /&gt; For example: &lt;BR /&gt; textnote.get_Parameter("Keep Readable").Set(1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;How do I set Text Style Project Leader Arrowhead Style?&lt;BR /&gt; noteType.get_Parameter("Leader Arrowhead").set(headTypeElementId) //Here input the head type element's ElementId.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 10:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/3625384#M80437</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2012-09-19T10:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Text Style Set Background, Color, Arrow Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/4325048#M80438</link>
      <description>&lt;P&gt;Ahh... you had me pulling my hair out until I realised that your colour value was incorrect!&lt;/P&gt;&lt;P&gt;Color(R=155, G=128, B=0) actually equals 32923 (and NOT&amp;nbsp;&lt;SPAN&gt;16744448)... this is confirmed with RevitLookup utlity in Revit 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For those interested you can convert a "Color" object to the int that Revit requires with ColorTranslator.ToWin32(color)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 06:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/4325048#M80438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-10T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Text Style Set Background, Color, Arrow Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/7047932#M80439</link>
      <description>&lt;P&gt;What about font width?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 21:25:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/text-style-set-background-color-arrow-style/m-p/7047932#M80439</guid>
      <dc:creator>dbehner</dc:creator>
      <dc:date>2017-04-27T21:25:19Z</dc:date>
    </item>
  </channel>
</rss>

