Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.CreateDimension


CorelScript.CreateDimension

Function CreateDimension(x1 As Long, y1 As Long, x2 As Long, y2 As Long, X3 As Long, Y3 As Long, Style As Long, WitnessExtension As Long, WitnessGap As Long, LabelGap As Long) As Long

Description

Member of CorelScript

The CreateDimension method creates a horizontal, vertical or slanted dimension line.

Parameter
Description
x1
Specifies the x-coordinate of the starting point of the dimension line
y1
Specifies the y-coordinate of the starting point of the dimension line
x2
Specifies the x-coordinate of the ending point of the dimension line
y2
Specifies the y-coordinate of the ending point of the dimension line
X3
Specifies the x-coordinate of the position of the dimension text
Y3
Specifies the y-coordinate of the position of the dimension text
Style
Specifies the dimension-line style:
 
0 = vertical
 
1 = horizontal
 
2 = slanted
WitnessExtension
Specifies the length of the extension line that protrudes beyond the dimension line
WitnessGap
Specifies the distance between the snapped-to object and the extension line
LabelGap
Specifies the amount of space between the text and the dimension line

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.