<?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 Method 'TextWidth' of object 'IAcadMLeader' failed in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/method-textwidth-of-object-iacadmleader-failed/m-p/11381418#M2255</link>
    <description>&lt;P&gt;why am i getting an error when adding text to an mleader.&amp;nbsp; This was working for me before but now its is not, I'm not sure what changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code is below.&amp;nbsp; fails&amp;nbsp;at oML.TextString = "test"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oML As AcadMLeader&lt;/P&gt;&lt;P&gt;mleaderpoints(0) = 996.9788: mleaderpoints(1) = -683.8893: mleaderpoints(2) = 0&lt;BR /&gt;mleaderpoints(3) = 1055.7743: mleaderpoints(4) = -609.7153: mleaderpoints(5) = 0&lt;BR /&gt;Set oML = acaddoc.ModelSpace.AddMLeader(mleaderpoints, 0)&lt;BR /&gt;oML.TextString = "test"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 18:13:01 GMT</pubDate>
    <dc:creator>jeremye86</dc:creator>
    <dc:date>2022-08-25T18:13:01Z</dc:date>
    <item>
      <title>Method 'TextWidth' of object 'IAcadMLeader' failed</title>
      <link>https://forums.autodesk.com/t5/vba-forum/method-textwidth-of-object-iacadmleader-failed/m-p/11381418#M2255</link>
      <description>&lt;P&gt;why am i getting an error when adding text to an mleader.&amp;nbsp; This was working for me before but now its is not, I'm not sure what changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code is below.&amp;nbsp; fails&amp;nbsp;at oML.TextString = "test"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oML As AcadMLeader&lt;/P&gt;&lt;P&gt;mleaderpoints(0) = 996.9788: mleaderpoints(1) = -683.8893: mleaderpoints(2) = 0&lt;BR /&gt;mleaderpoints(3) = 1055.7743: mleaderpoints(4) = -609.7153: mleaderpoints(5) = 0&lt;BR /&gt;Set oML = acaddoc.ModelSpace.AddMLeader(mleaderpoints, 0)&lt;BR /&gt;oML.TextString = "test"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 18:13:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/method-textwidth-of-object-iacadmleader-failed/m-p/11381418#M2255</guid>
      <dc:creator>jeremye86</dc:creator>
      <dc:date>2022-08-25T18:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Method 'TextWidth' of object 'IAcadMLeader' failed</title>
      <link>https://forums.autodesk.com/t5/vba-forum/method-textwidth-of-object-iacadmleader-failed/m-p/11381958#M2256</link>
      <description>&lt;P&gt;i figured it out.&amp;nbsp; I just had to change the default mleaderstyle.&amp;nbsp; &amp;nbsp;It was set to a style that did not have text.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 22:23:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/method-textwidth-of-object-iacadmleader-failed/m-p/11381958#M2256</guid>
      <dc:creator>jeremye86</dc:creator>
      <dc:date>2022-08-25T22:23:57Z</dc:date>
    </item>
  </channel>
</rss>

