Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.WorldScale


Document.WorldScale

Property WorldScale As Double

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.