AddLine2 Method (Block Object)

Scope: Schematic editor

Object: Block Object

Prerequisites: None

Adds a line to the block.

Usage

Block.AddLine2(ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As IVdLine

Arguments

X1

X coordinate of the line’s starting point.

Y1

Y coordinate of the line’s starting point.

X2

X coordinate of the line’s end point.

Y2

Y coordinate of the line’s end point.

Return Values

As IVdLine. The newly created Line Object.

Description

The points passed in are packed into four longs, with X1 and Y1 representing the coordinates for the line’s starting point and X2, Y2 representing the coordinates for the end point.