Create lines
create_linesDraws straight 2D lines in an Archicad project with begin/end points in meters, optional pen, line type, weight, arrows, and story placement; ideal for drafting or zone boundaries.
Instructions
Draws straight 2D lines (one undo step). Each line: begin/end points in meters plus optional pen, colorOverridePen, lineType, lineWeight (mm), category, zoneBoundary and arrows. Unspecified settings come from the Line tool defaults. Elements go into the database of the ACTIVE window: on a floor plan the given storyIndex (default: current story), otherwise the open section / elevation / detail / worksheet / layout (a 3D window cannot hold 2D elements). For connected segments prefer create_polylines. Returns [{guid, type} | {error}] in input order; one failing item does not stop the others. Change them later with modify_elements using the same field names; read them back with get_element_details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Lines to draw |