acad-polylines

Installation
SKILL.md

AutoCAD Polylines

Use this skill when creating, reading, or modifying polylines — lightweight polylines (Polyline / LWPOLYLINE), 2D polylines (Polyline2d), 3D polylines (Polyline3d), vertex manipulation, bulge values, and curve extraction.

Polyline (Lightweight / LWPOLYLINE)

Creating a Polyline

Polyline polyline = new Polyline();
polyline.Layer = layerName;

for (int i = 0; i < points.Count; i++)
{
    Point2d pt = points[i];
    double bulge = i < bulges.Count ? bulges[i] : 0.0;
    polyline.AddVertexAt(i, pt, bulge, 0.0, 0.0);
    // AddVertexAt(index, point, bulge, startWidth, endWidth)
}
Installs
3
GitHub Stars
4
First Seen
May 15, 2026