<?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 Changing mtext Next word Formatting width in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-next-word-formatting-width/m-p/5237531#M42807</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;writing a program to scale a drawing and when it encounters MTEXT it leaves the width factor at the previous value. I tried changing the width property but it does not change and it doesn't throw an error. Is there another property that handles this?&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;&lt;PRE&gt;                  For Each id In ids

                        Dim ent As Entity = TryCast(tr.GetObject(id, OpenMode.ForRead, False), Entity)
                        If ent Is Nothing Then Return
                        If Not ent.IsWriteEnabled Then ent.UpgradeOpen()

                        ent.TransformBy(Matrix3d.Scaling(convertVal, ptLL))

                        If TypeOf ent Is DatabaseServices.MText Then
                            Dim mt As MText = ent
                            mt.Width = mt.Width * convertVal
                        End If
                    Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Aug 2014 17:21:21 GMT</pubDate>
    <dc:creator>GeeHaa</dc:creator>
    <dc:date>2014-08-27T17:21:21Z</dc:date>
    <item>
      <title>Changing mtext Next word Formatting width</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-next-word-formatting-width/m-p/5237531#M42807</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;writing a program to scale a drawing and when it encounters MTEXT it leaves the width factor at the previous value. I tried changing the width property but it does not change and it doesn't throw an error. Is there another property that handles this?&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;&lt;PRE&gt;                  For Each id In ids

                        Dim ent As Entity = TryCast(tr.GetObject(id, OpenMode.ForRead, False), Entity)
                        If ent Is Nothing Then Return
                        If Not ent.IsWriteEnabled Then ent.UpgradeOpen()

                        ent.TransformBy(Matrix3d.Scaling(convertVal, ptLL))

                        If TypeOf ent Is DatabaseServices.MText Then
                            Dim mt As MText = ent
                            mt.Width = mt.Width * convertVal
                        End If
                    Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 17:21:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-next-word-formatting-width/m-p/5237531#M42807</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2014-08-27T17:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing mtext Next word Formatting width</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-mtext-next-word-formatting-width/m-p/5240061#M42808</link>
      <description>&lt;P&gt;It seems in order for the width to be changed the columnType has to be set to NoColumns. If this is set the MTEXT Object Scales without having to change the width. I'm not sure if this is OK to do but it seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                    For Each id In ids
                        Dim ent As Entity = TryCast(tr.GetObject(id, OpenMode.ForRead, False), Entity)
                        If ent Is Nothing Then Return
                        If Not ent.IsWriteEnabled Then ent.UpgradeOpen()
                        ent.TransformBy(Matrix3d.Scaling(convertVal, ptLL))
                        If TypeOf ent Is DatabaseServices.MText Then
                            Dim mt As MText = ent
                            If mt.ColumnType &amp;lt;&amp;gt; ColumnType.NoColumns Then
                                If mt.ColumnCount = 1 Then
                                    mt.ColumnType = ColumnType.NoColumns
                                End If
                            End If
                        End If

                    Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:34:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-mtext-next-word-formatting-width/m-p/5240061#M42808</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2014-08-28T15:34:48Z</dc:date>
    </item>
  </channel>
</rss>

