Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm 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?
Thanks
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
Solved! Go to Solution.