Prod.: Engine, ver.: 6017, ID: 60001058, Wish : Display a drawing with different x,y scale factor.

Wish : Display a drawing with different x,y scale factor.

Article60001058
TypeWish
ProductEngine
Version6017
Date Added1/8/2010
FixedYes [3/11/2010]
Submitted byMario Perino
Keywords

Subject

Display a drawing with different x,y scale factor.

Summary

Display a drawing with different scale factor. Also Ruler scale not change according World2View matrix scale.

Solution

This can be done by changing the World2ViewMatrix property of document as follow:

   Matrix m = new Matrix();
   //the Y values are scaling by 2.5
   m.ScaleMatrix(1.0d,2.5d,1.0d);
   doc.World2ViewMatrix = m;
   doc.Redraw(true);

In version 6018 , in order not to strech the vdText and vdMtext objects a new property StrechText was added in vdRenderGlobalProperties.
Specifies if vdText and vdMtext entities will be streched when the selected WorldToView matrix has different x,y scales.
This property is applied into Horizontal or Vertical vdMetext and vdText objects that belong into a Layout entities collection or are sub entities of a vdDimension object.
Default value is true.

Example:

doc.GlobalRenderProperties.StrechText = false;
Matrix m = new Matrix();
m.ScaleMatrix(1.0d, 2.5d, 1.0d);
doc.World2ViewMatrix = m;
doc.Redraw(true);

In version 6018 Ruler displaying values was fixed to follow the selected World2View matrix x,y scales