.NET
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

mirrored text problem

0 REPLIES 0
Reply
Message 1 of 1
sudarsann
276 Views, 0 Replies

mirrored text problem

Hi

Linear or Rotated dimension which needs to be mirrorred. I am using the following code for creating the dimension and its mirrored dimension. The problem is that the dimension text getting mirrored (reversed) in the mirrored dimension. I have tried using  Autodesk.AutoCAD.ApplicationServices.Application.SetSystemVariable("MIRRTEXT", 0); but it still shows mirrored text. Can somebody please help. Here's my code:

The problem is not only dimension text but also Text & Mtext.

I am using Autocad map 3D-2011 version.

 

For creating dimension:

                    RotatedDimension acRotDim1 = new RotatedDimension();
                    acRotDim1.XLine1Point = new Point3d(0, 0, 0);
                    acRotDim1.XLine2Point = new Point3d(X.X , X.Y , 0);
                    acRotDim1.Rotation = 0.0;
                    acRotDim1.DimLinePoint = new Point3d(0, -200, 0);
                    acRotDim1.DimensionStyle = acCurDb.Dimstyle;

                    // Add the new object to Model space and the transaction
                    acBlkTblRec.AppendEntity(acRotDim1);
                    acTrans.AddNewlyCreatedDBObject(acRotDim1, true);

 

 

For mirroring:

        private void Mirror(Transaction t, BlockTableRecord btr,Entity e)
        {
            // Create a copy of the original entity
            Entity eCopy = e.Clone() as Entity;
            
            // Define the mirror line
            Point3d acPtFrom = new Point3d(A69.X, A69.Y, 0);
            Point3d acPtTo = new Point3d(A71.X, A71.Y, 0);
            Line3d acLine3d = new Line3d(acPtFrom, acPtTo);

            // Mirror the entity
            eCopy.TransformBy(Matrix3d.Mirroring(acLine3d));
           
            // Add the new object to the block table record and the transaction
            btr.AppendEntity(eCopy);
            t.AddNewlyCreatedDBObject(eCopy, true);
        }

 

Regards

Sudarsan

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

ā€Boost