Is there a way in Scripter to scale an object, while maintaining its aspect ratio? In my case, I batch process grids to contour maps, and i want the color scale to be at a specific place on the plot document. With the code below i can position and shrink it. But the aspect ratio of the color scale is different in each documents, depending on the level file I loaded, so shrinking it this way sometimes gives odd-looking results...
Dim DiscreteColorScale As Object
Set DiscreteColorScale = ContourLayer.ColorScale
Plot.Selection.Left = 25.8
Plot.Selection.Top = 20.0
Plot.Selection.Width = 0.8
Plot.Selection.Height = 6
Please sign in to leave a comment.