<?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: C#)DBText alignment error when openning ReadDwgFile Method have modified DBT in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/8034117#M34678</link>
    <description>&lt;P&gt;Hodw do you solve that? I&amp;nbsp;met this problem. I find that the position property not updated correcty after&amp;nbsp;I change the&amp;nbsp; textstring.&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 03:00:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-30T03:00:57Z</dc:date>
    <item>
      <title>C#)DBText alignment error when openning ReadDwgFile Method have modified DBText</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/6546086#M34676</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please attachment video.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DBtext alignment&amp;nbsp;&lt;SPAN&gt; is not right when DBText update by ReadDwgFile Method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Open the drawing can be seen that the change position when DBText TextEdit mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ex) DBText Change Method&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;public void ChangeDBTExt
{
          Database acCurDB = new Database(false, false);
          acCurDB.ReadDwgFile(filePath, FileOpenMode.OpenForReadAndAllShare, false, "");
          acCurDB.CloseInput(true);

          using (Transaction acTrans = acdoc.TransactionManager.StartTransaction())
          {
               DBText dbtext = acTrans.GetObject(MyFocusedHandle, OpenMode.ForRead) as DBText;
               dbText.UpgradeOpen();
               dbText.TextString = MyString;
               //dbText.AdjustAlignment(acCurDB);
                    
               acTrans.Commit();
           }             
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I searched a site to calculate mid alignment (&lt;A href="http://www.acadnetwork.com/index.php?topic=311.0" target="_blank"&gt;http://www.acadnetwork.com/index.php?topic=311.0&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but this method also fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will you have any way to solve this problem? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 04:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/6546086#M34676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T04:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: C#)DBText alignment error when openning ReadDwgFile Method have modified DBT</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/6546115#M34677</link>
      <description>&lt;P&gt;I solved that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 05:31:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/6546115#M34677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T05:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: C#)DBText alignment error when openning ReadDwgFile Method have modified DBT</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/8034117#M34678</link>
      <description>&lt;P&gt;Hodw do you solve that? I&amp;nbsp;met this problem. I find that the position property not updated correcty after&amp;nbsp;I change the&amp;nbsp; textstring.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 03:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-dbtext-alignment-error-when-openning-readdwgfile-method-have/m-p/8034117#M34678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-30T03:00:57Z</dc:date>
    </item>
  </channel>
</rss>

