<?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: changing Mtext value of a selected MultiLeader in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12453747#M6188</link>
    <description>&lt;P&gt;You could have found it yourself (if you'd tried).&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var ml = (MLeader)tr.GetObject(entId, OpenMode.ForWrite);
if (ml.ContentType == ContentType.MTextContent)
{
    var mtext = ml.MText;
    var txt = mtext.Contents;
    mtext.Contents = txt.Replace("x", "XX");
    mtext.Rotation += Math.PI / 2.0;
    ml.MText = mtext;
}
tr.Commit()&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Dec 2023 16:29:15 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2023-12-20T16:29:15Z</dc:date>
    <item>
      <title>changing Mtext value of a selected MultiLeader</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12452092#M6185</link>
      <description>&lt;P&gt;Hi, How can I change Mtext value of a selected MultiLeader by .NET ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 22:32:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12452092#M6185</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-12-19T22:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing Mtext value of a selected MultiLeader</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12452142#M6186</link>
      <description>&lt;P&gt;Quick example:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;            using (Transaction tr = db.TransactionManager.StartTransaction())
            {
                var ml = (MLeader)tr.GetObject(entId, OpenMode.ForWrite);
                if (ml.ContentType == ContentType.MTextContent)
                {
                    var mtext = ml.MText;
                    var txt = mtext.Contents;
                    mtext.Contents = txt.Replace("x", "XX");
                    ml.MText = mtext;
                    tr.Commit();
                }
            }
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Dec 2023 23:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12452142#M6186</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2023-12-19T23:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: changing Mtext value of a selected MultiLeader</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12453643#M6187</link>
      <description>&lt;P&gt;Thank you So much Jeff&lt;/P&gt;&lt;P&gt;You have always helped me.&lt;/P&gt;&lt;P&gt;another quick question,&amp;nbsp; Can we change Mtext rotation of a mleader by your code as well?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 15:47:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12453643#M6187</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-12-20T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: changing Mtext value of a selected MultiLeader</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12453747#M6188</link>
      <description>&lt;P&gt;You could have found it yourself (if you'd tried).&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var ml = (MLeader)tr.GetObject(entId, OpenMode.ForWrite);
if (ml.ContentType == ContentType.MTextContent)
{
    var mtext = ml.MText;
    var txt = mtext.Contents;
    mtext.Contents = txt.Replace("x", "XX");
    mtext.Rotation += Math.PI / 2.0;
    ml.MText = mtext;
}
tr.Commit()&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Dec 2023 16:29:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12453747#M6188</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-12-20T16:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing Mtext value of a selected MultiLeader</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12454753#M6189</link>
      <description>Thank You Gile, &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 20 Dec 2023 23:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-value-of-a-selected-multileader/m-p/12454753#M6189</guid>
      <dc:creator>mehdi-guida</dc:creator>
      <dc:date>2023-12-20T23:51:25Z</dc:date>
    </item>
  </channel>
</rss>

