Object Model Reference : Classes : D : Document : Properties : Document.WorldScale |
Property WorldScale As Double
Member of Document
The WorldScale property returns or specifies the drawing scale for a document. The drawing scale represents the document world scale; for example, 1:2 is a drawing scale where one drawing unit represents two world units.
The following VBA example sets the drawing scale to 2:1 and creates a 2" × 2" rectangle, which is represented as a 1" × 1" rectangle in CorelDRAW.
Sub Test() |
ActiveDocument.WorldScale = 0.5 |
ActiveDocument.ActiveLayer.CreateRectangle 0, 0, 2, 2 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.