Skip to main content

Sketch

Sketch entities, references, geometric and dimensional constraints, solving, and profile lowering.

This catalog contains 47 public symbols. Select a symbol for its exact signature, parameters, return contract, errors, members, aliases, and behavior notes.

Modules

SymbolImportSummary
sketchfrom cadflow import sketchSketch domain facade.

Classes

SymbolImportSummary
Sketchfrom cadflow import SketchDeclarative constrained sketch container.
SketchConstraintfrom cadflow import SketchConstraintSerializable constraint inside a declarative sketch.
SketchConstraintDiagnosticfrom cadflow import SketchConstraintDiagnosticDiagnostic emitted by the sketch solver.
SketchDocumentfrom cadflow import SketchDocumentDesign-intent sketch with stable entity references and constraints.
SketchReffrom cadflow import SketchRefStable reference to a sketch entity or subentity.
SketchSolverBackendfrom cadflow import SketchSolverBackendBoundary implemented by a sketch constraint solver backend.
SketchSolveResultfrom cadflow import SketchSolveResultBackend-neutral result of solving a declarative sketch.
SketchSolverOptionsfrom cadflow import SketchSolverOptionsBackend-neutral options for one solve request.

Functions

SymbolImportSummary
add_arc_rsketchfrom cadflow import add_arc_rsketchAdd an arc entity to a sketch.
add_bspline_rsketchfrom cadflow import add_bspline_rsketchAdd a B-spline curve entity to a sketch.
add_circle_rsketchfrom cadflow import add_circle_rsketchAdd a named circle entity and return an updated sketch document.
add_line_rsketchfrom cadflow import add_line_rsketchAdd a named line entity and return an updated sketch document.
add_point_rsketchfrom cadflow import add_point_rsketchAdd a named point entity and return an updated sketch document.
constrain_angle_rsketchfrom cadflow import constrain_angle_rsketchAdd a driving angle constraint between two sketch lines.
constrain_coincident_rsketchfrom cadflow import constrain_coincident_rsketchConstrain two sketch points to be coincident.
constrain_collinear_rsketchfrom cadflow import constrain_collinear_rsketchConstrain two sketch lines to lie on the same infinite line.
constrain_concentric_rsketchfrom cadflow import constrain_concentric_rsketchConstrain two sketch circles to share a center.
constrain_connect_rsketchfrom cadflow import constrain_connect_rsketchAlias for constrain_coincident_rsketch using connection wording.
constrain_diameter_rsketchfrom cadflow import constrain_diameter_rsketchAdd a driving circle or arc diameter constraint.
constrain_distance_rsketchfrom cadflow import constrain_distance_rsketchAdd a driving point-to-point distance constraint.
constrain_distance_x_rsketchfrom cadflow import constrain_distance_x_rsketchAdd a driving horizontal distance constraint.
constrain_distance_y_rsketchfrom cadflow import constrain_distance_y_rsketchAdd a driving vertical distance constraint.
constrain_equal_length_rsketchfrom cadflow import constrain_equal_length_rsketchConstrain two sketch lines to have equal length.
constrain_equal_radius_rsketchfrom cadflow import constrain_equal_radius_rsketchConstrain two circles/arcs to have equal radius.
constrain_fix_rsketchfrom cadflow import constrain_fix_rsketchFix a sketch point or entity to its initial coordinates.
constrain_horizontal_rsketchfrom cadflow import constrain_horizontal_rsketchConstrain a sketch line to be horizontal.
constrain_length_rsketchfrom cadflow import constrain_length_rsketchAdd a driving length constraint to a line, arc, or B-spline.
constrain_midpoint_rsketchfrom cadflow import constrain_midpoint_rsketchConstrain a sketch point to the midpoint of a line.
constrain_parallel_rsketchfrom cadflow import constrain_parallel_rsketchConstrain two sketch lines to be parallel.
constrain_perpendicular_rsketchfrom cadflow import constrain_perpendicular_rsketchConstrain two sketch lines to be perpendicular.
constrain_point_on_rsketchfrom cadflow import constrain_point_on_rsketchConstrain a sketch point to lie on a line, circle, or circular arc.
constrain_radius_rsketchfrom cadflow import constrain_radius_rsketchAdd a driving circle or arc radius constraint.
constrain_symmetric_rsketchfrom cadflow import constrain_symmetric_rsketchConstrain two sketch points to be symmetric about a line axis.
constrain_tangent_rsketchfrom cadflow import constrain_tangent_rsketchConstrain supported curves to be tangent on an explicit branch.
constrain_vertical_rsketchfrom cadflow import constrain_vertical_rsketchConstrain a sketch line to be vertical.
get_default_sketch_solver_backendfrom cadflow import get_default_sketch_solver_backendReturn the process-wide default sketch solver backend.
get_sketch_entity_rsketchreffrom cadflow import get_sketch_entity_rsketchrefReturn a stable ref for a named sketch entity.
get_sketch_point_rsketchreffrom cadflow import get_sketch_point_rsketchrefReturn a stable ref for a sketch point or endpoint path.
get_sketch_solver_backendfrom cadflow import get_sketch_solver_backendResolve a registered backend; omitted name selects the default.
inspect_sketch_rsketchresultfrom cadflow import inspect_sketch_rsketchresultInspect sketch constraints by running the solver without recording graph nodes.
make_face_from_sketch_rfacefrom cadflow import make_face_from_sketch_rfacePromote one outer and optional inner sketch profiles to a face.
make_sketch_rsketchfrom cadflow import make_sketch_rsketchCreate an empty declarative sketch document.
make_wire_from_sketch_rwirefrom cadflow import make_wire_from_sketch_rwirePromote a sketch profile to a concrete wire, solving internally.
register_sketch_solver_backendfrom cadflow import register_sketch_solver_backendRegister a backend instance under its stable name.
set_default_sketch_solver_backendfrom cadflow import set_default_sketch_solver_backendSet the process-wide default by registered name or backend instance.
sketch_solver_backendfrom cadflow import sketch_solver_backendTemporarily select a default backend and restore it afterwards.