Constraint Sketch
27 nodes
On this page 27
Angle
FunctionThe angle between two lines, in degrees.
Angle
Constraint Sketch: Constraint Sketch
a: Sketch Curve
b: Sketch Curve
degrees: Number
name: Textvoid Angle(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b,
double degrees,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Curve | — | |
| b | Sketch Curve | — | |
| degrees | Number | — | |
| name | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Arc
FunctionAn arc counter-clockwise from its start to its end about its centre.
Arc -> Sketch Curve
Constraint Sketch: Constraint Sketch
cx: Number
cy: Number
startX: Number
startY: Number
endX: Number
endY: NumberSketchCurve Arc(
ConstraintSketch Constraint Sketch,
double cx,
double cy,
double startX,
double startY,
double endX,
double endY)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| cx | Number | — | |
| cy | Number | — | |
| startX | Number | — | |
| startY | Number | — | |
| endX | Number | — | |
| endY | Number | — |
Returns
| result | Sketch Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Build
FunctionSolves the sketch and builds its solid. The model reports what did not solve through ConstraintModel.Groups rather than throwing.
Build(Constraint Sketch: Constraint Sketch) -> Constraint Model
ConstraintModel Build(ConstraintSketch Constraint Sketch)
Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — |
Returns
| result | Constraint Model |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Circle
FunctionA circle.
Circle -> Sketch Curve
Constraint Sketch: Constraint Sketch
cx: Number
cy: Number
radius: NumberSketchCurve Circle(
ConstraintSketch Constraint Sketch,
double cx,
double cy,
double radius)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| cx | Number | — | |
| cy | Number | — | |
| radius | Number | — |
Returns
| result | Sketch Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Coincident
FunctionTwo points at the same place.
Coincident
Constraint Sketch: Constraint Sketch
a: Sketch Point
b: Sketch Pointvoid Coincident(
ConstraintSketch Constraint Sketch,
SketchPoint a,
SketchPoint b)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Point | — | |
| b | Sketch Point | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Diameter
FunctionThe diameter of a circle or arc.
Diameter
Constraint Sketch: Constraint Sketch
circle: Sketch Curve
value: Number
name: Textvoid Diameter(
ConstraintSketch Constraint Sketch,
SketchCurve circle,
double value,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| circle | Sketch Curve | — | |
| value | Number | — | |
| name | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Distance
FunctionThe distance between two points; with a name, it can be changed later through ConstraintCad.SetDimension.
Distance
Constraint Sketch: Constraint Sketch
a: Sketch Point
b: Sketch Point
value: Number
name: Textvoid Distance(
ConstraintSketch Constraint Sketch,
SketchPoint a,
SketchPoint b,
double value,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Point | — | |
| b | Sketch Point | — | |
| value | Number | — | |
| name | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Equal Length
FunctionTwo lines of equal length.
EqualLength
Constraint Sketch: Constraint Sketch
a: Sketch Curve
b: Sketch Curvevoid EqualLength(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Curve | — | |
| b | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Equal Radius
FunctionTwo circles or arcs of equal radius.
EqualRadius
Constraint Sketch: Constraint Sketch
a: Sketch Curve
b: Sketch Curvevoid EqualRadius(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Curve | — | |
| b | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Extrude
FunctionExtrudes the sketch's closed regions along the workplane's normal; the depth is a dimension like any other.
Extrude
Constraint Sketch: Constraint Sketch
depth: Number
name: Textvoid Extrude(
ConstraintSketch Constraint Sketch,
double depth,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| depth | Number | — | |
| name | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Origin
FunctionThe sketch origin, which is fixed.
Origin(Constraint Sketch: Constraint Sketch) -> Sketch Point
SketchPoint Origin(ConstraintSketch Constraint Sketch)
Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — |
Returns
| result | Sketch Point |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Horizontal
FunctionA line parallel to the workplane's X axis.
Horizontal
Constraint Sketch: Constraint Sketch
line: Sketch Curvevoid Horizontal(
ConstraintSketch Constraint Sketch,
SketchCurve line)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| line | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Lathe
FunctionTurns the sketch's closed regions a full turn about a construction line.
Lathe(Constraint Sketch: Constraint Sketch, axis: Sketch Curve)
void Lathe(ConstraintSketch Constraint Sketch, SketchCurve axis)
Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| axis | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Length
FunctionThe length of a line segment.
Length
Constraint Sketch: Constraint Sketch
line: Sketch Curve
value: Number
name: Textvoid Length(
ConstraintSketch Constraint Sketch,
SketchCurve line,
double value,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| line | Sketch Curve | — | |
| value | Number | — | |
| name | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Line
FunctionA line segment; a construction line takes part in constraints and serves as a lathe axis but bounds no region.
Line -> Sketch Curve
Constraint Sketch: Constraint Sketch
x1: Number
y1: Number
x2: Number
y2: Number
construction: TruthSketchCurve Line(
ConstraintSketch Constraint Sketch,
double x1,
double y1,
double x2,
double y2,
bool construction = false)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| x1 | Number | — | |
| y1 | Number | — | |
| x2 | Number | — | |
| y2 | Number | — | |
| construction | Truth | False |
Returns
| result | Sketch Curve |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Midpoint
FunctionA point at a line's midpoint.
Midpoint
Constraint Sketch: Constraint Sketch
point: Sketch Point
line: Sketch Curvevoid Midpoint(
ConstraintSketch Constraint Sketch,
SketchPoint point,
SketchCurve line)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| point | Sketch Point | — | |
| line | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
On Circle
FunctionA point on a circle or arc.
OnCircle
Constraint Sketch: Constraint Sketch
point: Sketch Point
circle: Sketch Curvevoid OnCircle(
ConstraintSketch Constraint Sketch,
SketchPoint point,
SketchCurve circle)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| point | Sketch Point | — | |
| circle | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
On Line
FunctionA point on a line (extended without end).
OnLine
Constraint Sketch: Constraint Sketch
point: Sketch Point
line: Sketch Curvevoid OnLine(
ConstraintSketch Constraint Sketch,
SketchPoint point,
SketchCurve line)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| point | Sketch Point | — | |
| line | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Parallel
FunctionTwo parallel lines.
Parallel
Constraint Sketch: Constraint Sketch
a: Sketch Curve
b: Sketch Curvevoid Parallel(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Curve | — | |
| b | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Perpendicular
FunctionTwo perpendicular lines.
Perpendicular
Constraint Sketch: Constraint Sketch
a: Sketch Curve
b: Sketch Curvevoid Perpendicular(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| a | Sketch Curve | — | |
| b | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Point
FunctionA datum point.
Point -> Sketch Point
Constraint Sketch: Constraint Sketch
x: Number
y: NumberSketchPoint Point(
ConstraintSketch Constraint Sketch,
double x,
double y)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| x | Number | — | |
| y | Number | — |
Returns
| result | Sketch Point |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Polygon
FunctionA closed polygon of lines with coincident corners, through the points in order.
Polygon -> Sketch Curve Array
Constraint Sketch: Constraint Sketch
xs: Number Array
ys: Number ArraySketchCurve[] Polygon(
ConstraintSketch Constraint Sketch,
double[] xs,
double[] ys)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| xs | Number Array | — | |
| ys | Number Array | — |
Returns
| result | Sketch Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Rectangle
FunctionA closed rectangle of four lines with coincident corners, horizontal and vertical, counter-clockwise from the bottom edge.
Rectangle -> Sketch Curve Array
Constraint Sketch: Constraint Sketch
x1: Number
y1: Number
x2: Number
y2: NumberSketchCurve[] Rectangle(
ConstraintSketch Constraint Sketch,
double x1,
double y1,
double x2,
double y2)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| x1 | Number | — | |
| y1 | Number | — | |
| x2 | Number | — | |
| y2 | Number | — |
Returns
| result | Sketch Curve Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Revolve
FunctionTurns the sketch's closed regions about a construction line by an angle in degrees.
Revolve
Constraint Sketch: Constraint Sketch
axis: Sketch Curve
degrees: Numbervoid Revolve(
ConstraintSketch Constraint Sketch,
SketchCurve axis,
double degrees)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| axis | Sketch Curve | — | |
| degrees | Number | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Tangent
FunctionAn arc tangent to a line at the point they share, which a ConstraintSketch.Coincident must make them share.
Tangent
Constraint Sketch: Constraint Sketch
arc: Sketch Curve
line: Sketch Curvevoid Tangent(
ConstraintSketch Constraint Sketch,
SketchCurve arc,
SketchCurve line)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| arc | Sketch Curve | — | |
| line | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Vertical
FunctionA line parallel to the workplane's Y axis.
Vertical
Constraint Sketch: Constraint Sketch
line: Sketch Curvevoid Vertical(
ConstraintSketch Constraint Sketch,
SketchCurve line)Parameters
| name | type | default | description |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| line | Sketch Curve | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD
Begin
FunctionStarts a sketch in the XY workplane.
Begin() -> Constraint Sketch
ConstraintSketch Begin()
Returns
| result | Constraint Sketch |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Constraint Sketch
- Package
- CAD