<?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 formatting in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12115185#M8037</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I used below code to put line bearing in a cell of table.&lt;/P&gt;&lt;P&gt;lines_table.SetTextString(i + 2, 1, "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId " + line_table_items[i].Split('|')[5].Trim(new char[] { '(', ')' }) + "&amp;gt;%).Angle&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;\\f \"%au5\"&amp;gt;%"&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;the result is :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mehdiguida_0-1689866916480.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1242889i93142A484992A73C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mehdiguida_0-1689866916480.png" alt="mehdiguida_0-1689866916480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What changes in my code can remove spaces and replace&amp;nbsp; ° instead of d in bearing value ? (like&amp;nbsp; image below , probably some changes needed in green codes)&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="mehdiguida_1-1689866916481.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1242890i1CCAF92AFDCE4625/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mehdiguida_1-1689866916481.png" alt="mehdiguida_1-1689866916481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 15:31:10 GMT</pubDate>
    <dc:creator>mehdi-guida</dc:creator>
    <dc:date>2023-07-20T15:31:10Z</dc:date>
    <item>
      <title>text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12115185#M8037</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I used below code to put line bearing in a cell of table.&lt;/P&gt;&lt;P&gt;lines_table.SetTextString(i + 2, 1, "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId " + line_table_items[i].Split('|')[5].Trim(new char[] { '(', ')' }) + "&amp;gt;%).Angle&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;\\f \"%au5\"&amp;gt;%"&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;the result is :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mehdiguida_0-1689866916480.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1242889i93142A484992A73C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mehdiguida_0-1689866916480.png" alt="mehdiguida_0-1689866916480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What changes in my code can remove spaces and replace&amp;nbsp; ° instead of d in bearing value ? (like&amp;nbsp; image below , probably some changes needed in green codes)&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="mehdiguida_1-1689866916481.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1242890i1CCAF92AFDCE4625/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mehdiguida_1-1689866916481.png" alt="mehdiguida_1-1689866916481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:31:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12115185#M8037</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-07-20T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12115984#M8038</link>
      <description>&lt;P&gt;Field tags are %%, may be confusing the %%d used for the degree symbol. It might be worth a try to open the Field itself, after you’ve added it to the table, and use the &amp;nbsp;“Format” property&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 22:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12115984#M8038</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2023-07-20T22:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12116059#M8039</link>
      <description>&lt;P&gt;It looks like you are getting the bearing from the Angle property of a line. I would first set a string variable to that value and the do a Replace, substituting U+0021 for the "d". Then build the field string with the edited variable value instead of the Angle property.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 23:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12116059#M8039</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-07-20T23:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12116091#M8040</link>
      <description>&lt;P&gt;You are right, I pulled out bearing of line and put it in a table cell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't know how to do your idea :((&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 23:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12116091#M8040</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-07-20T23:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12117535#M8041</link>
      <description>&lt;P&gt;Something like this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;string fieldVal = "%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId " + line_table_items[i].Split('|')[5].Trim(new char[] { '(', ')' }) + "&amp;gt;%).Angle \\f \"%au5\"&amp;gt;%";
fieldVal.Replace("d", "\u0021");

lines_table.SetTextString(i + 2, 1, fieldVal);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12117535#M8041</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-07-21T14:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125111#M8042</link>
      <description>&lt;P&gt;Thank you for reply&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp; your code , it works but I lose dynamic property. (by dragging end of lines bearing in table doesn't change anymore). It seems some thing should be added to codes in green in my first message.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 14:22:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125111#M8042</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-07-25T14:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125297#M8043</link>
      <description>&lt;P&gt;Using Surveyor angle units is the issue. Their display is hard coded into AutoCAD so I don't believe what you want is possible using those units.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125297#M8043</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2023-07-25T15:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125319#M8044</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3391061"&gt;@mehdi-guida&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for reply&lt;/P&gt;
&lt;P&gt;When I use&amp;nbsp; your code , it works but I lose dynamic property. (by dragging end of lines bearing in table doesn't change anymore). It seems some thing should be added to codes in green in my first message.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I didn't realize that you needed that feature. As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt; mentioned, the "d" is not configurable. I gave you the only option for doing what you asked. You have to choose if you want associativity or the degree symbol. You also won't be able to get rid of the spaces. The bearing format is fixed by the surveyor's units.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your only option would be to &lt;A href="https://www.autodesk.com/company/contact-us/product-feedback" target="_blank" rel="noopener"&gt;submit feedback&lt;/A&gt; to get a new option for the surveyor's angle format.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:35:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125319#M8044</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-07-25T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125433#M8045</link>
      <description>&lt;P&gt;Thank you for respond.&lt;/P&gt;&lt;P&gt;What is below green codes language ? is it Diesel? if yes do you know if there is any command for manipulating string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lines_table.SetTextString(i + 2, 1, &lt;FONT color="#00FF00"&gt;"%&amp;lt;\\AcObjProp Object(%&amp;lt;\\_ObjId " + line_table_items[i].Split('|')[5].Trim(new char[] { '(', ')' }) + "&amp;gt;%).Angle&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;\\f \"%au5\"&amp;gt;%"&lt;/FONT&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:52:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125433#M8045</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-07-25T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: text formatting</title>
      <link>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125462#M8046</link>
      <description>&lt;P&gt;Its just the &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-ECEEF65E-C327-44B8-AFB9-C0ACA2CAEF55" target="_blank" rel="noopener"&gt;format codes&lt;/A&gt; to create mtext and fields. To see the codes that are used for a field, start the FIELD command and note the field expression at the bottom of the dialog. See below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="acad field dlg.png" style="width: 602px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1244884i1B1A6A6C754553F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="acad field dlg.png" alt="acad field dlg.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 17:03:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/text-formatting/m-p/12125462#M8046</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-07-25T17:03:15Z</dc:date>
    </item>
  </channel>
</rss>

