<?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: DBText and Dimension text entities are mirrored in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664549#M65931</link>
    <description>Any help regarding the dimension text mirror problem will be very much appreciated.</description>
    <pubDate>Wed, 21 Apr 2010 04:05:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-04-21T04:05:34Z</dc:date>
    <item>
      <title>DBText and Dimension text entities are mirrored</title>
      <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664546#M65928</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using the function listed below for mirroring a collection of entities. I don't want the DBText entities and the Dimension texts to be mirrored. But they are always mirrored, even after setting the system variable 'MirrorText' to 0. Please somebody let me know what I am doing wrong.&lt;BR /&gt;
&lt;BR /&gt;
I am using AutoCAD 2007 and Visual Studio 2005.&lt;BR /&gt;
&lt;BR /&gt;
Public Shared Sub MirrorVertically(ByVal ObjIds As ArrayList, ByVal MirrorPt As Point3d, ByVal Delete As Boolean)&lt;BR /&gt;
    Dim Doc As Document = Acad.DocumentManager.MdiActiveDocument&lt;BR /&gt;
    Dim DB As Database = Doc.Database&lt;BR /&gt;
    Dim ED As Editor = Doc.Editor&lt;BR /&gt;
    Dim TR As Transaction = Doc.TransactionManager.StartTransaction()&lt;BR /&gt;
    Dim BT As BlockTable = CType(TR.GetObject(DB.BlockTableId, OpenMode.ForRead), BlockTable)&lt;BR /&gt;
    Dim BTR As BlockTableRecord&lt;BR /&gt;
&lt;BR /&gt;
    Try&lt;BR /&gt;
        BTR = CType(TR.GetObject(BT(BlockTableRecord.ModelSpace), OpenMode.ForWrite), BlockTableRecord)&lt;BR /&gt;
        For Each objId As ObjectId In ObjIds&lt;BR /&gt;
            Dim obj As Object = TR.GetObject(objId, OpenMode.ForWrite)&lt;BR /&gt;
            Dim ent As Entity = CType(obj, Entity)&lt;BR /&gt;
            Dim MirrorLine As New Line3d(MirrorPt, New Point3d(MirrorPt.X, MirrorPt.Y + 10, MirrorPt.Z))&lt;BR /&gt;
            Dim MirrorMatrix As Matrix3d = Matrix3d.Mirroring(MirrorLine)&lt;BR /&gt;
            If Delete Then&lt;BR /&gt;
                ent.TransformBy(MirrorMatrix)&lt;BR /&gt;
            Else&lt;BR /&gt;
                Dim ent1 As Entity = ent.Clone&lt;BR /&gt;
                ent1.TransformBy(MirrorMatrix)&lt;BR /&gt;
                BTR.AppendEntity(ent1)&lt;BR /&gt;
                TR.AddNewlyCreatedDBObject(ent1, True)&lt;BR /&gt;
            End If&lt;BR /&gt;
        Next&lt;BR /&gt;
        TR.Commit()&lt;BR /&gt;
    Catch ex As Autodesk.AutoCAD.Runtime.Exception&lt;BR /&gt;
        MsgBox(ex.Message)&lt;BR /&gt;
    Finally&lt;BR /&gt;
        TR.Dispose()&lt;BR /&gt;
    End Try&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Bala</description>
      <pubDate>Mon, 12 Apr 2010 06:58:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664546#M65928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-12T06:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: DBText and Dimension text entities are mirrored</title>
      <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664547#M65929</link>
      <description>This is sort of a long way around the problem, but you can check if the DBObject is of type DBText - if it is, set DBText.IsMirroredInX and DBText.IsMirroredInY accordingly.</description>
      <pubDate>Mon, 12 Apr 2010 14:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664547#M65929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-12T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: DBText and Dimension text entities are mirrored</title>
      <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664548#M65930</link>
      <description>Thanks for your reply. It solves the DBText problem.&lt;BR /&gt;
Any method for Dimension entities? The text in dimensions are also mirrored.</description>
      <pubDate>Tue, 13 Apr 2010 12:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664548#M65930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-13T12:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: DBText and Dimension text entities are mirrored</title>
      <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664549#M65931</link>
      <description>Any help regarding the dimension text mirror problem will be very much appreciated.</description>
      <pubDate>Wed, 21 Apr 2010 04:05:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2664549#M65931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-21T04:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: DBText and Dimension text entities are mirrored</title>
      <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2692600#M65932</link>
      <description>&lt;P&gt;I've had this problem too. The answer is that you save the normal of the dimension before the mirror, then set it back to the former value after the mirror&amp;nbsp;e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim Norm as Vector3d&lt;/P&gt;&lt;P&gt;Norm = myDim.Normal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'(do the mirroring here)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myDim.Normal = Norm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked nicely for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacqui&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2010 06:54:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2692600#M65932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-07T06:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: DBText and Dimension text entities are mirrored</title>
      <link>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2695394#M65933</link>
      <description>&lt;P&gt;Thanks a lot. It works now.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 09:47:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dbtext-and-dimension-text-entities-are-mirrored/m-p/2695394#M65933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-11T09:47:01Z</dc:date>
    </item>
  </channel>
</rss>

