Skip to content
Stephen S. Mitchell edited this page Sep 23, 2025 · 3 revisions

Line

← Back to Classes | Documentation Home | Methods Index | Properties Index

  • Namespace: AlibreScript.API
  • Kind: Class

Properties

End

Type: Object The end point as a sketchpoint object

EndPoint

Type: Object The end point of the line [x, y]

IsReference

Type: Object True if the line is a reference line, false if it is a regular line

Length

Type: Object The length of the line in script units

Start

Type: Object The start point as a sketchpoint object

StartPoint

Type: Object The start point of the line [x, y]

Methods

Line

Creates a new 2D line

def Line(start_point, end_point, is_reference):
    """
    Creates a new 2D line

    Args:
        start_point (list): Location of the start point [x, y]
        end_point (list): Location of the end point [x, y]
        is_reference (bool): True if a reference line

    """
Clone this wiki locally