I'm using a transformation matrix to adjust objects scale.
''Definition of the matrix
Dim ScaleMatrix(0 To 15) As Double
ScaleMatrix(0) = X_ScaleFactorScaleMatrix(1) = 0ScaleMatrix(2) = 0ScaleMatrix(3) = 0ScaleMatrix(4) = 0ScaleMatrix(5) = Y_ScaleFactorScaleMatrix(6) = 0ScaleMatrix(7) = 0ScaleMatrix(8) = 0ScaleMatrix(9) = 0ScaleMatrix(10) = Z_ScaleFactorScaleMatrix(11) = 0ScaleMatrix(12) = 0ScaleMatrix(13) = 0ScaleMatrix(14) = 0ScaleMatrix(15) = 1
Dim acScaleMatrixt3d As Matrix3d = New Matrix3d(ScaleMatrix)
''Perform scale of a polyline
If X_ScaleFactor = Y_ScaleFactor all works fine, but if X_ScaleFactor <> Y_ScaleFactor (e.g. X_ScaleFactor = 2 and Y_ScaleFactor = 4 I get the following exception: eCannotScaleNonUniformly.
It isn't possible to define different scale factors for X and Y axis? It seems a strange thing.
Thanks in advance.
Go to Solution.
Polylines don't allow non-uniform scaling because they can have arc segments which would become ellipise segments if the scaling is not uniform and ellipse segments are not supported by polylines.
You'd have the same problem trying to non-uniformly scale an arc or a circle.
Yes artc2, later I discovered that polylines do not accept this type of scaling.
Thanks & regards.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.