CreateLine

Use this method to draw a line given the coordinates of the start point and end point.

Input Parameters

        startX, startY    Coordinate of the start point of the line.
        endX, endY      Coordinate of the end  point of the line.

Output Parameters

        Creates and returns the line.

Description

        Using the given points as the start and end points, creates a line on the active sketch. Applies the AutoConstraint for the created line.