Skip to main content

SketchDocument

Kind: Class
Domain: Sketch
Canonical import: from cadflow import SketchDocument

Signature

class SketchDocument(engine_sketch: 'EngineSketch')

Description

Design-intent sketch with stable entity references and constraints.

Design-intent sketch with stable entity references and constraints.

Methods return a new document, matching the existing functional sketch operations. to_face() produces the compatibility OCP face; use to_native_face(model) for profiles supported by the C++ session.

Other public imports

  • from cadflow.sketch_api import SketchDocument

Parameters

NameTypeRequiredDefaultSource description
engine_sketch'EngineSketch'yes-Not explicitly described in the source docstring.

Returns

Type: Any

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Public members

MemberKindSignatureDescription
add_arcmethod(self, entity_id: 'str', start: 'SketchRef | str', end: 'SketchRef | str', center: 'SketchRef | str', *, construction: 'bool' = False) -> "'SketchDocument'"See the member signature.
add_bsplinemethod(self, entity_id: 'str', start: 'SketchRef | str', end: 'SketchRef | str', control_points: 'Sequence[Any]', degree: 'int' = 3, **kwargs: 'Any') -> "'SketchDocument'"See the member signature.
add_circlemethod(self, entity_id: 'str', center: 'SketchRef | str', radius: 'Any', *, construction: 'bool' = False) -> "'SketchDocument'"See the member signature.
add_linemethod(self, entity_id: 'str', start: 'SketchRef | str', end: 'SketchRef | str', *, construction: 'bool' = False) -> "'SketchDocument'"See the member signature.
add_pointmethod(self, point_id: 'str', x: 'Any', y: 'Any') -> "'SketchDocument'"See the member signature.
arcmethod(self, entity_id: 'str', start: 'SketchRef | str', end: 'SketchRef | str', center: 'SketchRef | str', *, construction: 'bool' = False) -> "'SketchDocument'"See the member signature.
circlemethod(self, entity_id: 'str', center: 'SketchRef | str', radius: 'Any', *, construction: 'bool' = False) -> "'SketchDocument'"See the member signature.
constrain_anglemethod(self, a, b, value, **kwargs)See the member signature.
constrain_coincidentmethod(self, a, b, **kwargs)See the member signature.
constrain_collinearmethod(self, a, b, **kwargs)See the member signature.
constrain_concentricmethod(self, a, b, **kwargs)See the member signature.
constrain_connectmethod(self, a, b, **kwargs)See the member signature.
constrain_diametermethod(self, entity, value, **kwargs)See the member signature.
constrain_distancemethod(self, a, b, value, **kwargs)See the member signature.
constrain_distance_xmethod(self, a, b, value, **kwargs)See the member signature.
constrain_distance_ymethod(self, a, b, value, **kwargs)See the member signature.
constrain_equal_lengthmethod(self, a, b, **kwargs)See the member signature.
constrain_equal_radiusmethod(self, a, b, **kwargs)See the member signature.
constrain_fixmethod(self, entity, **kwargs)See the member signature.
constrain_horizontalmethod(self, line, **kwargs)See the member signature.
constrain_lengthmethod(self, entity, value, **kwargs)See the member signature.
constrain_midpointmethod(self, point, line, **kwargs)See the member signature.
constrain_parallelmethod(self, a, b, **kwargs)See the member signature.
constrain_perpendicularmethod(self, a, b, **kwargs)See the member signature.
constrain_point_onmethod(self, point, entity, **kwargs)See the member signature.
constrain_radiusmethod(self, entity, value, **kwargs)See the member signature.
constrain_symmetricmethod(self, a, b, axis, **kwargs)See the member signature.
constrain_tangentmethod(self, a, b, **kwargs)See the member signature.
constrain_verticalmethod(self, line, **kwargs)See the member signature.
constraintsproperty-See the member signature.
createclass method(cls, name: 'str | None' = None, *, frame: 'CoordinateFrame | None' = None, sketch_id: 'str | None' = None) -> "'SketchDocument'"See the member signature.
describemethod(self) -> 'dict[str, Any]'See the member signature.
entitiesproperty-See the member signature.
frameproperty-See the member signature.
inspectmethod(self, **options: 'Any') -> 'SketchSolveResult'See the member signature.
linemethod(self, entity_id: 'str', start: 'SketchRef | str', end: 'SketchRef | str', *, construction: 'bool' = False) -> "'SketchDocument'"See the member signature.
nameproperty-See the member signature.
pointmethod(self, point_id: 'str', x: 'Any', y: 'Any') -> "'SketchDocument'"See the member signature.
point_refmethod(self, point_id: 'str') -> 'SketchRef'See the member signature.
refmethod(self, entity_id: 'str') -> 'SketchRef'See the member signature.
sketch_idproperty-See the member signature.
solvemethod(self, **options: 'Any') -> 'SketchSolveResult'See the member signature.
to_facemethod(self, **options: 'Any')See the member signature.
to_native_facemethod(self, model: 'Any', *, profile: 'int | str' = 0, **options: 'Any')Lower a single circle or polygon profile through cad.Model.
to_wiremethod(self, **options: 'Any')See the member signature.

Behavior and constraints

  • The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.

Import check

from cadflow import SketchDocument

See also