Add_Dim
MethodAdd_Dim (Method)
Adds a linear dimension into the drawing
Syntax:
Function Add_Dim(x1 As Single, y1 As Single, x2 As Single, y2 As Single, OffsetD As Single, xDir As Single, yDir As Single, vItemProperties As Object, vRetHandles As Object, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short) As Boolean
The Add_Dim method syntax consists of the following:
Parameter |
Data Type |
Description |
x1 |
Single |
The x coordinate of the line's start point |
y1 |
Single |
The y coordinate of the line's start point |
x2 |
Single |
The x coordinate of the line's end point |
y2 |
Single |
The y coordinate of the line's end point |
OffsetD |
Single |
The dimension distance from the line |
xDir |
Single |
The x coordinate of a point to determine the direction of the dimension line |
yDir |
Single |
The y coordinate of a point to determine the direction of the dimension line |
vItemProperties |
Object |
A string array of properties for the new object |
vRetHandles |
Object |
Returns an integer array with the handles of the new objects |
iClr |
Short |
The color index number |
iWidth |
Short |
The pen width |
iStyle |
Short |
The line type |
iLayer |
Short |
The layer number |
Return value:
Boolean - True on success, false on error.