Files
make-cad/docs/api/Sketch.md
T
2026-06-13 03:13:26 +08:00

603 B

Sketch

Class Definition

class Sketch(curves: Iterable[Edge | Wire] | None = None, *, name: Optional[str] = None, plane: Any = 'XY', sketch_id: Optional[str] = None)

Source: sketch.py

Import Surface

  • top-level: from simplecadapi import Sketch

Description

Declarative constrained sketch container.

Use make_sketch_rsketch(...), make_sketch_point_rsketchref(...), add_line_rsketch(...), and constrain_*_rsketch(...) as the canonical API for building sketch profiles. The legacy curves constructor remains only for reading already-built wire/edge containers.