Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command reference

Browse commands by their names and default keyboard shortcuts. Entries are organized by command group and panel; ungrouped commands follow by area.

For step-by-step instructions, start with the window tour, sketching guide or solid features guide. Practical command guides below explain prerequisites, options and examples in place. Entries without a practical guide link to an overview instead. Contribute a guide, tip, demo or model link.

Expand Automation details for the command ID and parameters used by scripts, the CLI and MCP. In that notation, ? marks an optional parameter and expr means a number or an expression with units.

This catalog is generated from solidcraft-cli commands by cargo xtask book (1017 commands).

Practical guides:

SOLID › CREATE

Create Sketch

Command group: SOLID › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
planeXY|XZ|YZ| construction plane name or id | {origin?: [x,y,z] in mm, default [0,0,0], each a number or a length expression (an origin whose expressions name parameters is kept, and the sketch follows them when they change), x_dir, y_dir}| {face: [world x,y,z], body?: exact world body, index?: face index, path?: complete occurrence ids, fixed?: bool}Yessketch x, y along world +X, +Y on XY; +X, -Z on XZ; +Y, +Z on YZ; in world coordinates unless frame says otherwise; a named plane is the active component's own
offsetexprNo
flipbool | "x" | "y"Nonot on a face: sketch the plane from its other side, so the normal and the default extrude direction are reversed; a half turn about the plane's own x or y axis, true picks the one keeping the sketch's y axis upward; offset still moves along the unflipped normal
frameworld| componentNodefault; which coordinates an explicit plane is in; the reply's `frame` says which, with a `note` when the active component is moved or turned
viewopen Model view idNodefaults to focused or most recent Model
project_edgesboolNo
activate_partboolNodefault false; on a face of a body of another component than the active one: activate that component at the picked placement first, as component.activate would, and make the sketch there; it stays active afterwards and the reply's `activated` names it
nameNo
Automation details

Command ID: sketch.create

Parameters:

plane: XY|XZ|YZ (sketch x, y along world +X, +Y on XY; +X, -Z on XZ; +Y, +Z on YZ) | construction plane name or id | {origin?: [x,y,z] in mm, default [0,0,0], each a number or a length expression (an origin whose expressions name parameters is kept, and the sketch follows them when they change), x_dir, y_dir} (in world coordinates unless frame says otherwise; a named plane is the active component's own) | {face: [world x,y,z], body?: exact world body, index?: face index, path?: complete occurrence ids, fixed?: bool}; new face attachments require a unique certified source (a flat face of a sheet metal body attaches to its panel instead, in the flat pattern's coordinates), fixed:true explicitly freezes the selected plane; offset?: expr, flip?: bool | "x" | "y" (not on a face: sketch the plane from its other side, so the normal and the default extrude direction are reversed; a half turn about the plane's own x or y axis, true picks the one keeping the sketch's y axis upward; offset still moves along the unflipped normal), frame?: world (default) | component (which coordinates an explicit plane is in; the reply's `frame` says which, with a `note` when the active component is moved or turned), view?: open Model view id (defaults to focused or most recent Model), project_edges?: bool, activate_part?: bool (default false; on a face of a body of another component than the active one: activate that component at the picked placement first, as component.activate would, and make the sketch there; it stays active afterwards and the reply's `activated` names it), name?

Extrude

Command group: SOLID › CREATE

Default keyboard shortcut: E

Turn a flat sketch region into a solid, or add or remove material from an existing body. For example, a rectangle extruded 20 mm becomes a rectangular block.

Before you start

  • For a solid extrusion, finish a sketch with at least one closed region. Select the region you want, rather than an individual edge or point.
  • You can also select a planar face of an existing body instead of a sketch.
  • To add or remove material, an existing body must meet the extrusion. Choose New Body when you want an independent piece.
  • Thin Extrude uses sketch curves instead of filled regions; open chains are allowed. This is useful for a wall or a ring.

Options

ChoiceWhat it doesWhen to use it
ProfilesChooses the filled sketch regions to extrude. A loop inside another loop makes a hole.Select just the regions you need when a sketch contains several.
DistanceSets how far the shape extends. Values can include units, such as 20 mm, or a named design parameter.Make a part to a known size.
Reverse DirectionSends the extrusion to the other side of the sketch.The preview points away from the intended body.
SymmetricSplits the entered total distance equally across the sketch plane. 10 mm extends 5 mm on each side.Keep the sketch at the middle of a part.
Two SidesSets a separate end on each side. The second side takes a distance, Through All or To Object; its To Object takes a vertex, a point or a face parallel to the sketch, not yet a curved or slanted face.The sketch is between two unequal extensions.
Through AllReaches through the target body.Cut a hole that must stay open when the body becomes thicker.
To ObjectStops at a selected target face, vertex or point. An offset can stop before or beyond that target.Let the end follow another part of the design.
StartStarts at the sketch, at an offset from it, or from a selected object.Leave a gap before the extrusion begins.
Taper AngleSlopes the side walls.Make drafted sides; reduce the angle if the profile’s narrow details cannot support it.
OperationNew Body makes a separate piece; Join adds material; Cut removes it; Intersect keeps only the overlap.Choose the intended result explicitly when the automatic preview is not what you want.
Target bodiesChooses which existing bodies take part in a join, cut or intersection.Several bodies lie in the extrusion’s path.
Thin ExtrudeBuilds walls along curves; thickness and side control where the material lies. Two-sided walls can have different thicknesses.Make ribs, walls or rings without drawing both wall boundaries.

Try it: a 20 mm block

  1. Create a sketch on the XY plane and draw a closed rectangle.
  2. Finish the sketch and choose Extrude.
  3. Select the rectangular region, set Distance to 20 mm, and choose New Body.
  4. Check the preview’s direction and confirm. You should have one solid block.
  5. Edit the extrusion in the timeline to change its distance later.

Several extrusions from one sketch

One sketch can drive several features, each with its own distance:

  1. Right-click the sketch in the browser and choose Extrude. The window opens with the sketch’s regions picked and the sketch shown, even when an earlier feature uses it and has hidden it.
  2. Click the regions you don’t want this time to unpick them, set the distance, and choose Apply. The extrusion is made, and the window stays open with the sketch still shown.
  3. Pick the next region, set its distance, and Apply again. Choose OK for the last one, or press Esc when you’re done: what you applied stays.

Each Apply is its own step in the timeline and in Undo. When the window closes, the sketch is hidden again unless you showed it yourself. Revolve on the same menu works the same way.

Tips and common mistakes

  • Do check the operation before confirming. Automatic operation can join an addition or cut into an existing body; it is not a promise of a separate part.
  • Do use Through All for a cut that should follow later thickness changes.
  • Don’t expect an open outline to make a filled solid. Close it, or choose Thin Extrude for a wall.
  • Don’t assume a symmetric distance is the distance on each side. New symmetric extrusions use the total distance; older saved designs can retain their earlier convention.
  • A taper drafts both sides of a two-sided or symmetric extrude from the start plane; Taper Angle 2 gives the second of two sides its own. A thin wall on two sides or a Symmetric Offset is not tapered yet. A very steep taper can also be refused rather than creating an invalid result.

Examples and community resources

The bracket starts with a closed L-shaped profile; another extrusion removes the two holes. Its dimensions are controlled by design parameters.

ResourceWhat to exploreAuthor and licence
Editable bracket recipeA complete SolidCraft example using an extrusion, a fillet and a cut.SolidCraft contributors; MIT OR Apache-2.0.

Contribute a tip, demo, model or screenshot to add a reviewed resource beside this explanation.

See also

Revolve turns a profile around an axis. Sweep carries a profile along a path. Flange creates sheet metal with a thickness rule.

ParameterTypeRequiredDescription
distanceexprYesor through_all: true
taperangle exprNopositive: outward, so the far end is larger along the extrusion direction; negative: inward, so the far end is smaller; with direction: symmetric it drafts both halves from the start plane, with distance2 the first side
taper2angle exprNowith distance2: the second side's taper, drafted from the start plane the same way; default: taper; a second side through_all2 or to2 takes no taper yet, refused
cornerpreserve_curvature|tangent|roundNohow a taper closes a sharp corner its offset opens: each wall continues as itself, a line's plane or an arc's cone, until it meets its neighbour; each continues straight along its end tangent; or an arc about the corner. Without it, each profile preserves curvature where every curve is a line or an arc and takes tangent where another curve has a corner, and the feature's warning says so; a corner rule given is kept, and refused where the kernel cannot build it
sketchid|nameNodefault: active or last sketch
profilesall | [index] | [{curves: [ids]}]| [{point:[x,y]}]Nothe profile whose outer loop is made of exactly these curves, or pieces of them; found again on every recompute, so it follows parameter changes; islands inside are its holes; an error when no profile or several match; index and point picks are stored by their curves when that finds the same profile; a pick on a drawn profile that reference geometry, such as the projected outline of the face the sketch is on, cuts into regions takes the whole drawn profile
exact_regionsboolNoeach index or point pick is exactly the region it names, as the dialogs send
face[x,y,z]Noextrude a planar body face instead of a sketch profile
faces[[x,y,z],…]Nocoplanar faces of one body
face_bodynameNowhose face, where faces of several bodies meet at the point
fixedtrueNowith face or faces: start on the face's plane as a fixed plane, which won't follow later changes to the face; for a face whose history can't keep an attachment, such as a converted mesh's
directionpositive|negative|symmetricNodistance is total thickness, split evenly around the start plane
conventiontotal_distance|legacy_per_sideNohow a symmetric distance is read; default total_distance, split evenly around the start plane; legacy_per_side: the distance on each side, as older symmetric extrudes keep
distance2exprNoTwo Sides: a second distance on the side direction leaves free, the first side may be through_all or to; with direction: negative the first side goes against the normal and distance2 along it; a negative distance only turns its own side over
through_all2boolNoTwo Sides: the second side runs through all, instead of distance2
to2[x,y,z]NoTwo Sides: the second side ends at that vertex, point or face parallel to the sketch, instead of distance2; a curved or slanted face is not supported yet and is refused
to_offset2exprNopast it
start_offsetexprNoalong the sketch normal, also with direction: negative
symmetric_offsetboolNowith direction: symmetric and start_offset: offset both sides symmetrically away from the sketch plane, leaving a clearance gap
to_body_apartboolNoJoin To Object: keep the body the To Object pick is on apart, so the join changes only the bodies in `targets`; a call that names its targets keeps that body apart, and `false` takes it too
operationnew|join|cut|intersect|autoNocut into a body, otherwise join existing solids; new in an empty component
touchingseparate|one_bodyNowhat a join makes of pieces that share no face: separate, the default, makes each piece that touches another only along an edge or at a point a body of its own and keeps pieces that touch nothing in one body; one_body keeps every piece in one body
targets[body]NoJoin from a face, or from a sketch on a body's face, defaults to that face's body; explicit targets or participants override
nameNo
body_nameNo
thintrueNoThin: a wall along sketch curves instead of the profiles
curves[curve ids]Noopen chains and closed loops, joined where they meet end to end; default: every drawn curve of the sketch
thicknessexprYes
sidecenter|inside|outside|two_sidesNoa closed loop's inside is the area it encloses, an open chain's the side it bends toward, a straight line's the left of its first curve as drawn; default center
thickness2exprNotwo_sides: the thickness outside
Automation details

Command ID: solid.extrude

Parameters:

distance: expr (or through_all: true); taper?: angle expr (positive: outward, so the far end is larger along the extrusion direction; negative: inward, so the far end is smaller; with direction: symmetric it drafts both halves from the start plane, with distance2 the first side); taper2?: angle expr (with distance2: the second side's taper, drafted from the start plane the same way; default: taper; a second side through_all2 or to2 takes no taper yet, refused); corner?: preserve_curvature|tangent|round (how a taper closes a sharp corner its offset opens: each wall continues as itself, a line's plane or an arc's cone, until it meets its neighbour; each continues straight along its end tangent; or an arc about the corner. Without it, each profile preserves curvature where every curve is a line or an arc and takes tangent where another curve has a corner, and the feature's warning says so; a corner rule given is kept, and refused where the kernel cannot build it); sketch?: id|name (default: active or last sketch); profiles?: all | [index] | [{curves: [ids]}] (the profile whose outer loop is made of exactly these curves, or pieces of them; found again on every recompute, so it follows parameter changes; islands inside are its holes; an error when no profile or several match) | [{point:[x,y]}] (index and point picks are stored by their curves when that finds the same profile; a pick on a drawn profile that reference geometry, such as the projected outline of the face the sketch is on, cuts into regions takes the whole drawn profile); exact_regions?: bool (each index or point pick is exactly the region it names, as the dialogs send); default: every drawn profile, except that a loop inside another is its hole and a loop inside that hole is material again, and a region that closed loops crossing each other shut off but none of them holds is left out; face?: [x,y,z] (extrude a planar body face instead of a sketch profile); faces?: [[x,y,z],…] (coplanar faces of one body); face_body?: name (whose face, where faces of several bodies meet at the point); fixed?: true (with face or faces: start on the face's plane as a fixed plane, which won't follow later changes to the face; for a face whose history can't keep an attachment, such as a converted mesh's); direction?: positive|negative|symmetric (distance is total thickness, split evenly around the start plane); convention?: total_distance|legacy_per_side (how a symmetric distance is read; default total_distance, split evenly around the start plane; legacy_per_side: the distance on each side, as older symmetric extrudes keep); distance2?: expr (Two Sides: a second distance on the side direction leaves free, the first side may be through_all or to; with direction: negative the first side goes against the normal and distance2 along it; a negative distance only turns its own side over); through_all2?: bool (Two Sides: the second side runs through all, instead of distance2); to2?: [x,y,z] (Two Sides: the second side ends at that vertex, point or face parallel to the sketch, instead of distance2; a curved or slanted face is not supported yet and is refused) with to_offset2?: expr (past it); start_offset?: expr (along the sketch normal, also with direction: negative); symmetric_offset?: bool (with direction: symmetric and start_offset: offset both sides symmetrically away from the sketch plane, leaving a clearance gap); to?: [x,y,z] (To Object: a face, vertex or point; to_offset?: expr past it; extend_to_face?: bool, default false: carry the To face's surface on past its edges (a plane without end; a cylinder, cone, sphere or torus along its surface) so a profile wider than the face, or over a bore in it, ends on it instead of being refused; refused where that surface never crosses the extrusion's path over part of the profile, and not with a taper), or a plane or construction point the extrude follows when it moves: {plane: XY|name} or a plane's name (parallel to the sketch: ends on it; at a slant: the end is cut along it; along the extrusion: refused), {construct_point: name} (ends on the plane through it, parallel to the sketch); to_body_apart?: bool (Join To Object: keep the body the To Object pick is on apart, so the join changes only the bodies in `targets`; a call that names its targets keeps that body apart, and `false` takes it too); from?: [x,y,z] (From Object: start at that face or point; on a flat face at a slant the start follows the face, and a distance moves it along the extrusion), or a plane or construction point, as for `to`; operation?: new|join|cut|intersect|auto (cut into a body, otherwise join existing solids; new in an empty component); touching?: separate|one_body (what a join makes of pieces that share no face: separate, the default, makes each piece that touches another only along an edge or at a point a body of its own and keeps pieces that touch nothing in one body; one_body keeps every piece in one body); targets?: [body] (Join from a face, or from a sketch on a body's face, defaults to that face's body; explicit targets or participants override); name?; body_name?; thin?: true (Thin: a wall along sketch curves instead of the profiles) with curves?: [curve ids] (open chains and closed loops, joined where they meet end to end; default: every drawn curve of the sketch), thickness: expr, side?: center|inside|outside|two_sides (a closed loop's inside is the area it encloses, an open chain's the side it bends toward, a straight line's the left of its first curve as drawn; default center), thickness2?: expr (two_sides: the thickness outside); corners are mitred, crossing walls are one

Revolve

Command group: SOLID › CREATE

Turn a sketch profile around an axis to make a round part: a shaft, a pin, a pulley or a bushing. You draw the half-section the way it is drawn on a lathe print, and Revolve spins it.

Before you start

  • Draw a closed profile of one side of the part: the half-section, from the centre line out.
  • You need an axis to spin about: a sketch line, an origin axis, a construction axis, a straight edge, or a cylinder face.
  • The profile must stay on one side of the axis. It can touch the axis but not cross it.
  • A flat face of the part can also be used as the profile.

Options

Choice in the dialogMeaningExample or reason to choose it
ProfileThe closed area to spin.The half-section of a stepped shaft.
AxisThe line it spins around.The sketch line along the centre of the shaft, or the X axis.
TypeAngle spins by the angle you type. To Object spins until it reaches a face or point you pick in the To Object box, which replaces Direction and Angle.Angle for most parts.
DirectionOne Side spins one way. Two Sides spins a different angle each way. Symmetric splits the angle evenly both ways from the sketch. Shown for Type: Angle.Symmetric for a 90° segment centred on the sketch.
AngleHow far to spin.360 deg for a full round part.
Angle 2The angle on the other side, for Two Sides.30 deg one way, 60 deg the other.
OperationNew Body, Join, Cut or Intersect. Cut removes material from an existing body.Cut to turn a groove into an existing shaft.

Try it: a stepped pin

  1. Start a sketch on the XY plane. If the document is in mm, type in after each value (for example 0.25in). Draw this closed outline from the origin along the X axis: up 0.25 in, over 1 in, up 0.125 in, over 0.5 in, down 0.375 in back to the X axis, and close it along the axis. Click Finish Sketch.
  2. Click Revolve. Click the profile.
  3. Click Axis, then click the sketch line along the X axis. Check the Axis box: if it reads Y, you picked the wrong axis and the preview comes out flat. Pick again.
  4. Leave Type on Angle, Direction on One Side, and Angle at 360 deg. Set Operation to New Body so the pin is its own part.
  5. Click OK. You have a pin 0.5 in diameter by 1 in long with a 0.75 in diameter head 0.5 in long.
  6. For a groove, start a new sketch on the XY plane (it runs through the pin’s centre line). Draw a rectangle that cuts into the shaft, with corners at (0.4 in, 0.20 in) and (0.5 in, 0.30 in), and click Finish Sketch. Revolve it with Operation set to Cut. For the Axis, click the sketch line along the X axis, or click the round side of the pin (not the flat end); its centre line is used. The result is a groove 0.1 in wide and 0.05 in deep.

Several revolves from one sketch

Right-click a sketch and choose Revolve: the window opens with the sketch shown, even when an earlier feature uses it. Apply makes the revolve and keeps the window and the sketch for the next one, as for Extrude.

Tips and common mistakes

  • Do draw the centre line as part of the profile, or as a sketch line in the same sketch. Then picking the axis is one click and it moves with the sketch.
  • Do use Direction: Symmetric for a partial revolve that should sit centred on the sketch plane.
  • Don’t let the profile cross the axis. Keep the whole half-section on one side.
  • Don’t draw the full section of the part. Draw one half only; Revolve makes the other half.

See also

Extrude pushes a profile straight instead of spinning it. Thread adds a thread to the revolved shaft. Chamfer breaks its edges.

ParameterTypeRequiredDescription
axissketch line id | x | y| X|Y|Z| {type: world, axis: X|Y|Z}| {sketch, curve}| construction axis name| {origin, dir}| {edge|face: [x,y,z]}Yessketch axes; world; as returned by timeline.inspect; a line of another sketch, followed in that sketch; followed when edited; origin: numbers or length expressions, followed when parameters change; a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes
angleexprNodefault 360 deg
angle2exprNoTwo Sides: the other side's angle
directionsymmetricNoangle split either side, independent of axis direction
conventionsketch_normal|legacy_axis_startNodefault sketch_normal; legacy retains older angular starts
to[x,y,z]NoTo Object: turn until that face, vertex or point
sketchNo
profiles[x,y,z]Noa planar body face as the profile
face[x,y,z]Noa planar body face as the profile
face_bodynameNowhose face, where faces of several bodies meet
fixedtrueNothe face's plane as a fixed plane, as solid.extrude's
operationNo
touchingNo
targetsNo
nameNo
body_nameNo
Automation details

Command ID: solid.revolve

Parameters:

axis: sketch line id | x | y (sketch axes) | X|Y|Z (world) | {type: world, axis: X|Y|Z} (as returned by timeline.inspect) | {sketch, curve} (a line of another sketch, followed in that sketch) | construction axis name (followed when edited) | {origin, dir} (origin: numbers or length expressions, followed when parameters change) | {edge|face: [x,y,z]} (a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes); angle?: expr (default 360 deg); angle2?: expr (Two Sides: the other side's angle); direction?: symmetric (angle split either side, independent of axis direction); convention?: sketch_normal|legacy_axis_start (default sketch_normal; legacy retains older angular starts); to?: [x,y,z] (To Object: turn until that face, vertex or point); sketch?, profiles? | face: [x,y,z] (a planar body face as the profile) and face_body?: name (whose face, where faces of several bodies meet) and fixed?: true (the face's plane as a fixed plane, as solid.extrude's), operation?, touching?, targets?, name?, body_name?

Sweep

Command group: SOLID › CREATE

Drag a sketched profile along a path to make a solid of the same section all the way: bent flat bar or angle, a handle, a rail, or, with Cut, a groove that follows a curve, such as an O-ring face groove around a rounded-rectangle cover.

Before you start

  • You need a profile sketch (a closed shape) and a path: either a second sketch of connected curves, or a chain of a part’s edges. An edge path needs no second sketch.
  • You can also select a planar face of an existing body instead of a sketch.
  • Draw the profile on a plane square to the start of the path, touching the path. The profile then runs along the path from there.
  • For a plain round tube or rod, Pipe is quicker: it needs only the path and a diameter, plus a wall thickness for a hollow tube. Without a wall it makes a solid rod.

Options

Choice in the dialogMeaningExample or reason to choose it
ProfileThe closed sketch shape to sweep, or a planar face of an existing body.A 0.5 in × 0.25 in rectangle for flat bar.
PathThe curves or edges the profile follows.A line, an arc and a line for a bend.
OrientationTurn with Path: the profile turns to stay square to the path, as bent bar does. Keep as Drawn: the profile keeps the direction it was drawn in. Follow Direction: the profile stays square to the path, and the Direction you pick fixes how it turns about the path.Turn with Path for almost everything.
DirectionAn axis, sketch line or straight edge, used only with Follow Direction.The Z axis, to keep a profile upright on a path that climbs.
Rail, Second RailGuide curves the profile’s edge follows. With a rail, the profile turns and changes size to stay on it. Rails replace Orientation, Twist and End Scale; Rail Fit sets how they reshape the profile.A curve that widens a handle toward one end.
OperationNew Body when the design has no body yet; otherwise it starts at Join. Cut takes the swept shape out of the part.Cut for a groove.
Twist (Advanced)Turns the profile by this angle from the start of the path to the end. It starts at 0 deg.90 deg for a twisted bar.
End Scale (Advanced)The profile’s size at the end of the path, as a factor of its size at the start. It starts at 1.0.5 for a section that tapers to half.
Rail Fit (Advanced)With a rail: Scale grows the whole profile evenly to meet the rail; Stretch stretches it only toward the rail.Scale to keep the section’s proportions.

Try it: bend a piece of flat bar

  1. Start a sketch on the XY plane. From the origin, draw a 3 in line along X, a tangent arc of 1 in radius turning 90°, and a 2 in line. Finish the sketch.
  2. Start a sketch on the YZ plane. Draw a 0.5 in × 0.25 in rectangle centered on the origin. Finish the sketch.
  3. Click Sweep. Click Profile and pick the rectangle. Click Path and pick the three path curves.
  4. Leave Orientation on Turn with Path and click OK. The bar follows the bend, square to the path all the way round.

Tips and common mistakes

  • Do start the profile on the path, square to it. A profile away from the path sweeps offset from it.
  • Do keep bend radii bigger than the profile’s half-width, or the inside of the bend folds into itself.
  • Do use Cut for a groove of constant section along a curve, such as an O-ring face groove: sketch the groove’s section where the path starts and sweep it around.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.5 in enters 12.7 mm.

See also

Pipe sweeps a round section with only a diameter. Extrude sweeps a profile along a straight line. Revolve sweeps it around an axis.

ParameterTypeRequiredDescription
sketchprofile sketchYes
profilesNo
face[x,y,z]Noa planar body face as the profile, its edges projected into a sketch on it
face_bodynameNowhose face, where faces of several bodies meet
fixedtrueNothe face's plane as a fixed plane, as solid.extrude's
path_sketchsketchYes
path[curve ids in order; an entry {sketch, curve} is a curve of that sketch, so the path may join curves of several sketches (#16168)]Yes
path_bodybody nameNo
path_edges[points on its edges]Nothe path is a chain of that body's edges, instead of a sketch's curves
orientationperpendicular| parallel| [x,y,z]Nodefault: square to the path, turning with it; as drawn: the profile moves without turning; the path must keep crossing its plane; square to the path, its turn about the path fixed by this direction
twistangle exprNothe profile turns this much about the path over its length; within 4 turns
scaleexprNothe profile's scale at the end, linear along the path; 0.01…100
rails[{sketch?: sketch (default path_sketch), curves: [curve ids in order]}]Noguide rails, one or two, each meeting every plane square to the path once along it, from the end nearest the path's start: one rail turns the profile so its point where the rail starts stays on the rail and scales it with the rail's distance from the path; two rails carry it between them, its points where they start staying on both; rails take the default orientation, no twist and no scale, and a path without sharp corners
rail_fitscale| stretchNodefault: the profile grows and shrinks evenly; only across to the rail, between the rails
operationNo
touchingNo
targetsNo
nameNo
body_nameNo
Automation details

Command ID: solid.sweep

Parameters:

sketch: profile sketch; profiles?; face?: [x,y,z] (a planar body face as the profile, its edges projected into a sketch on it) and face_body?: name (whose face, where faces of several bodies meet) and fixed?: true (the face's plane as a fixed plane, as solid.extrude's); path_sketch: sketch; path: [curve ids in order; an entry {sketch, curve} is a curve of that sketch, so the path may join curves of several sketches (#16168)]; path_body?: body name; path_edges?: [points on its edges] (the path is a chain of that body's edges, instead of a sketch's curves); orientation?: perpendicular (default: square to the path, turning with it) | parallel (as drawn: the profile moves without turning; the path must keep crossing its plane) | [x,y,z] (square to the path, its turn about the path fixed by this direction); twist?: angle expr (the profile turns this much about the path over its length; within 4 turns); scale?: expr (the profile's scale at the end, linear along the path; 0.01…100); rails?: [{sketch?: sketch (default path_sketch), curves: [curve ids in order]}] (guide rails, one or two, each meeting every plane square to the path once along it, from the end nearest the path's start: one rail turns the profile so its point where the rail starts stays on the rail and scales it with the rail's distance from the path; two rails carry it between them, its points where they start staying on both; rails take the default orientation, no twist and no scale, and a path without sharp corners); rail_fit?: scale (default: the profile grows and shrinks evenly) | stretch (only across to the rail, between the rails); operation?, touching?, targets?, name?, body_name?

Loft

Command group: SOLID › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
sections[{sketch, profiles?} | {sketch, point: id, tip?: pointed|tangent} (the loft closes at the sketch point: pointed, the default, in an apex; tangent in a dome that reaches the point tangent to the plane through it parallel to the profile's sketch plane, not with rails) | {face: [x,y,z], body?} (a planar face of a body: its outline, which follows the face)]Yes2…50, in order; matching hole counts, no holes at an apex
rails[{sketch, curves: [ids in order]}]No1…16 guide rails from the first section to the last, through every section's outline: the loft follows them between the sections, passing through every rail; not with sections that have holes; one or two to an apex
rail_fitscale|stretchNoone or two rails; with three or more it has no effect: each section is warped between them to pass through them all; default scale: with one rail the sections grow evenly with the rail's distance from their middle, with two with the distance between the rails; stretch: only that way
operationNo
touchingNo
targetsNoJoin excludes hidden bodies from automatic targets; explicit targets or participants may include them
nameNo
body_nameNo
Automation details

Command ID: solid.loft

Parameters:

sections: [{sketch, profiles?} | {sketch, point: id, tip?: pointed|tangent} (the loft closes at the sketch point: pointed, the default, in an apex; tangent in a dome that reaches the point tangent to the plane through it parallel to the profile's sketch plane, not with rails) | {face: [x,y,z], body?} (a planar face of a body: its outline, which follows the face)] (2…50, in order; matching hole counts, no holes at an apex); rails?: [{sketch, curves: [ids in order]}] (1…16 guide rails from the first section to the last, through every section's outline: the loft follows them between the sections, passing through every rail; not with sections that have holes; one or two to an apex); rail_fit?: scale|stretch (one or two rails; with three or more it has no effect: each section is warped between them to pass through them all; default scale: with one rail the sections grow evenly with the rail's distance from their middle, with two with the distance between the rails; stretch: only that way); operation?, touching?, targets? (Join excludes hidden bodies from automatic targets; explicit targets or participants may include them), name?, body_name?

Box

Command group: SOLID › CREATE

Make a box from a length, width and height: a block of stock, a plate, a fixture base, or a block to cut features into. Place it by a corner or by its center, at a point you pick or at the X, Y and Z you type.

Before you start

  • You don’t need a sketch or a body. A box can start a new design.
  • Length runs along X, Width along Y and Height along Z.
  • Placement decides what the point is: Corner puts one corner of the box there, Center puts the middle of the box there.

Options

Choice in the dialogMeaningExample or reason to choose it
PointA vertex, edge, face or point to place the box at. Leave it empty to use X, Y and Z.A corner of another block, to stack a box on it.
Length, Width, HeightThe size of the box along X, Y and Z. Each starts at 20 mm.3 in × 2 in × 0.75 in for a plate.
PlacementIt starts at Corner. Corner: the point is the box’s low corner, and the box runs in +X, +Y and +Z from it. Center: the point is the middle of the box.Corner at the origin so the part’s dimensions start from 0, 0, 0, like a work offset on a corner. Center for a part dimensioned from its middle.
X, Y, ZWhere the point is, when none is picked.0, 0, 0.
OperationIt starts at New Body. New Body makes a separate body. Join adds it to a body it touches. Cut takes it out. Intersect keeps only the material inside both.New Body for a fresh block. Cut for a square pocket or step.

Try it: make a plate from the corner

  1. In a new design, click Box.
  2. Set Length to 3 in, Width to 2 in and Height to 0.75 in.
  3. Set Placement to Corner and leave X, Y and Z at 0. Click OK.
  4. The plate’s corner sits at the origin, so every dimension on it reads from 0, 0, 0, the way you’d set a work offset on that corner.

Tips and common mistakes

  • Do pick Corner or Center to match how the print dimensions the part. It makes later features easier to locate.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 3 in enters 76.2 mm.
  • Do use Extrude from a sketch when the outline isn’t a plain rectangle.
  • Don’t confuse Length and Width when the part has a long side. Length runs along X.

See also

Cylinder makes a round blank the same way. Bounding Solid puts a box around a part you already have.

ParameterTypeRequiredDescription
lengthexprYes
widthexprYes
heightexprYes
corner[x,y,z]No
center[x,y,z]Nonumbers in mm or length expressions; default: the origin; a box placed by its center stays centred there when its size changes
operationNo
touchingNo
targets[body]No
nameNo
body_nameNo
Automation details

Command ID: solid.box

Parameters:

length, width, height: expr; corner?: [x,y,z] | center?: [x,y,z] (numbers in mm or length expressions; default: the origin; a box placed by its center stays centred there when its size changes); operation?, touching?, targets?: [body], name?, body_name?

Cylinder

Command group: SOLID › CREATE

Make a cylinder from a diameter and a height: a round blank, a pin, or a boss standing on a face. Stand it on a face and locate it from two edges, the way a print dimensions it, and it can join the part. A cylinder on a face grows outward, so Cut only removes material where the cylinder overlaps the part; to cut into the part, leave Face empty and set the base below the face with X, Y and Z.

Before you start

  • To stand the cylinder on a part, you need a flat face for it to stand on. With no face picked, it stands at the X, Y and Z you type, along the Z axis.
  • Locate it from edges of that face the same way a print dimensions a boss from two edges. Pick an edge as Reference 1 and type its distance, then do the same for Reference 2. Both edges must be straight and must not be parallel to each other.
  • Height runs from the face out along the face’s normal, away from the part.

Options

Choice in the dialogMeaningExample or reason to choose it
FaceThe flat face (or a vertex) the cylinder stands on. Leave it empty to place it by X, Y and Z.The top face of a plate, for a boss.
Reference 1 and Distance 1An edge of the face, and how far the cylinder’s center is from it.The left edge, 0.75 in.
Reference 2 and Distance 2A second edge, and how far the center is from it.The front edge, 0.75 in.
SizeWhether you type a Diameter or a Radius.Diameter, to match the print.
DiameterThe cylinder’s diameter (or Radius, if Size is set to Radius). It starts at 20 in the design’s unit.0.500 in for a boss.
HeightHow long the cylinder is, from the face out. It starts at 20 in the design’s unit.0.25 in.
Placement, X, Y, ZWith no face picked, where the center of the cylinder’s base goes.0, 0, 0 to start a round blank at the origin.
OperationIt starts at New Body. New Body makes a separate body. Join adds it to the part. Cut takes it out of the part. Intersect keeps only the material inside both.Join for a boss. New Body for a round blank or a pin.

Try it: put a boss on a plate

  1. Make a 3 in × 2 in × 0.75 in block.
  2. Click Cylinder. Click Face and click the top face of the block.
  3. Click Reference 1, pick the left edge of the top face and set Distance 1 to 0.75 in. Click Reference 2, pick the front edge and set Distance 2 to 0.75 in.
  4. Set Diameter to 0.5 in and Height to 0.25 in. Set Operation to Join and click OK. A 0.500 in boss stands 0.25 in tall, 0.75 in from each edge.

Tips and common mistakes

  • Do use Diameter when the print gives a diameter. Switching Size between Diameter and Radius converts the value for you.
  • Do use New Body for a round blank or a dowel pin that is its own part, so it doesn’t merge with the part around it.
  • Do use Hole for a drilled or tapped hole instead of a Cut cylinder. The hole carries its callout and tap drill.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.5 in enters 12.7 mm.

See also

Hole locates a hole from edges the same way. Extrude makes a boss of any shape from a sketch. Thread adds a thread to the cylinder.

ParameterTypeRequiredDescription
radiusexprYes
diameterexprYes
heightexprYes
base[x,y,z]Nocentre of the bottom: numbers in mm or length expressions; default: the origin
axisX|Y|Z|[x,y,z]Nodefault Z
operationNo
touchingNo
targets[body]No
nameNo
body_nameNo
Automation details

Command ID: solid.cylinder

Parameters:

radius | diameter, height: expr; base?: [x,y,z] (centre of the bottom: numbers in mm or length expressions; default: the origin); axis?: X|Y|Z|[x,y,z] (default Z); references?: [{edge: [x,y,z] on a straight edge of the face it stands on, distance: expr}] (at most two, as solid.hole's: the base centre goes that far from each edge's line, in the face's plane, and follows the edges; with a numeric base only), or [{circle: [x,y,z], offset?: [x,y]}] (as solid.hole's: on the centre of a circle or arc edge square to the axis); operation?, touching?, targets?: [body], name?, body_name?

Sphere

Command group: SOLID › CREATE

Make a ball from a diameter: a tooling ball, a ball end on a shaft, or, with Cut, a ball seat or detent pocket. Place its center at a point you pick or at the X, Y and Z you type.

Before you start

  • You don’t need a sketch or a body. A sphere can start a new design.
  • The point is always the center of the sphere.
  • To cut a ball seat into a part, put the center on or near the face and use Cut. How deep the seat goes depends on how far the center sits below the face.

Options

Choice in the dialogMeaningExample or reason to choose it
PointA vertex, edge, face or point for the center. Leave it empty to use X, Y and Z.The end of a shaft, for a ball end.
SizeWhether you type a Diameter or a Radius.Diameter, to match a ball’s size.
DiameterThe sphere’s diameter (or Radius, if Size is set to Radius). It starts at 20 mm.0.500 in for a tooling ball.
Placement, X, Y, ZPlacement is always Center. X, Y and Z set the center when no point is picked.0, 0, 0.
OperationIt starts at New Body. New Body makes a separate body. Join adds it to a body it touches. Cut takes it out. Intersect keeps only the material inside both.New Body for a ball. Cut for a ball seat or a detent pocket.

Try it: cut a ball seat into a plate

  1. Make a 3 in × 2 in × 0.75 in block with its corner at the origin.
  2. Click Sphere. Set Diameter to 0.5 in.
  3. Set X to 1.5 in, Y to 1 in and Z to 0.75 in, so the center sits on the middle of the top face.
  4. Set Operation to Cut and click OK. A half-ball seat, 0.500 in across and 0.25 in deep, is cut into the top face.

Tips and common mistakes

  • Do raise the center above the face for a shallower seat. With a 0.500 in ball and the center 0.1 in above the top face, the seat is 0.15 in deep and about 0.46 in across.
  • Don’t put the center below the face for a ball seat. The pocket then goes deeper than half the ball and is narrower at the top than inside: an undercut a ball end mill can’t cut.
  • Do use Diameter when the print gives a ball diameter. Switching Size converts the value for you.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.5 in enters 12.7 mm.
  • Don’t forget a ball seat cut this way is a full sphere shape. For a drilled seat with a drill point or a flat bottom, use Hole.

See also

Cylinder and Box place the same way. Revolve makes a ball end that blends into a turned profile.

ParameterTypeRequiredDescription
radiusexprYes
diameterexprYes
center[x,y,z]Nonumbers in mm or length expressions; default: the origin
operationNo
touchingNo
targets[body]No
nameNo
body_nameNo
Automation details

Command ID: solid.sphere

Parameters:

radius | diameter: expr; center?: [x,y,z] (numbers in mm or length expressions; default: the origin); operation?, touching?, targets?: [body], name?, body_name?

Torus

Command group: SOLID › CREATE

Make a ring with a round section: an O-ring, a round handle, or, with Cut, a round-bottom groove around a shaft or boss. You set two radii and the center point.

Before you start

  • You don’t need a sketch or a body. A torus can start a new design.
  • The ring lies flat around the Z axis, centered on the point.
  • Both sizes are radii, not diameters. Major radius runs from the center to the middle of the ring’s section. Minor radius is the radius of the section itself.
  • To model an O-ring from its inside diameter (ID) and cross-section (CS): Major radius = ID ÷ 2 + CS ÷ 2, and Minor radius = CS ÷ 2.

Options

Choice in the dialogMeaningExample or reason to choose it
PointA vertex, edge, face or point for the center. Leave it empty to use X, Y and Z.The center of a boss’s end face.
Major radiusFrom the center of the ring to the middle of its section. It starts at 20 mm.0.5625 in for an O-ring 1.000 in ID × 0.125 in CS.
Minor radiusThe radius of the round section. It starts at 5 mm. Keep it smaller than Major radius.0.0625 in for a 0.125 in cross-section.
Placement, X, Y, ZPlacement is always Center. X, Y and Z set the center when no point is picked.0, 0, 0.
OperationIt starts at New Body. New Body makes a separate body. Join adds it to a body it touches. Cut takes it out. Intersect keeps only the material inside both.New Body for an O-ring. Cut for a round-bottom groove.

Try it: model an O-ring

  1. In a new design, click Torus.
  2. For an O-ring 1.000 in ID × 0.125 in CS, set Major radius to 0.5625 in and Minor radius to 0.0625 in.
  3. Leave X, Y and Z at 0 and Operation at New Body. Click OK.
  4. The ring lies flat around the Z axis: 1.000 in inside, 1.250 in outside, 0.125 in thick.

Tips and common mistakes

  • Do halve the sizes on the print. An O-ring is called out by ID and cross-section diameter; the dialog wants radii.
  • Don’t use a Cut torus for an O-ring gland. A standard gland has a flat bottom and square walls sized from the O-ring maker’s table; sketch it and use Revolve instead.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.5625 in enters 14.2875 mm.

See also

Sphere, Cylinder and Box place the same way. Revolve turns any sketched section into a ring.

ParameterTypeRequiredDescription
majorexprYes
minorexprYesradii
center[x,y,z]Nonumbers in mm or length expressions; default: the origin
operationNo
touchingNo
targets[body]No
nameNo
body_nameNo
Automation details

Command ID: solid.torus

Parameters:

major, minor: expr (radii); center?: [x,y,z] (numbers in mm or length expressions; default: the origin); operation?, touching?, targets?: [body], name?, body_name?

Cone

Command group: SOLID › CREATE

Make a cone or a tapered cylinder from two diameters and a height: a lathe center point, a tapered plug or pin, a spot-drill point, or a tapered boss. Its base circle sits at the X, Y and Z you type, and it runs up the Z axis.

Before you start

  • You don’t need a sketch or a body. A cone can start a new design.
  • Diameter is the base, at the X, Y and Z point. Top diameter is the other end, Height away along Z. A Top diameter of 0 makes a full cone that comes to a point.
  • A negative Height runs the cone down from the base instead of up. Use it to point a cone into a part from its top face.
  • To get a cone for an included angle: Height = (Diameter − Top diameter) ÷ 2 ÷ tan(half the angle). For a 60° point on a 1 in diameter, Height = 0.5 ÷ tan 30° = 0.866 in.

Options

Choice in the dialogMeaningExample or reason to choose it
DiameterThe diameter of the base circle. It starts at 20 mm and must be more than 0.1 in for a 1 in shaft.
Top diameterThe diameter of the other end. It starts at 0, a point. More than 0 makes a tapered cylinder (a frustum).0 for a center point. 0.75 in for a plug that tapers from 1 in.
HeightHow far the top is from the base, along Z. It starts at 20 mm. Negative runs it down.0.866 in for a 60° point on a 1 in diameter.
Placement, X, Y, ZPlacement is always Base Center: X, Y and Z set the center of the base circle.0, 0, 0.
OperationIt starts at New Body. New Body makes a separate body. Join adds it to a body it touches. Cut takes it out. Intersect keeps only the material inside both.Join to put a point on the end of a shaft. Cut to cut a cone shape into a face.

Try it: put a 60° point on a shaft

  1. Make a 1 in diameter, 3 in tall cylinder at the origin with Cylinder.
  2. Click Cone. Set Diameter to 1 in, Top diameter to 0 and Height to 0.866 in.
  3. Set Z to 3 in, so the base sits on the top of the shaft. Set Operation to Join and click OK.
  4. The shaft now ends in a 60° point, like a dead center.

Tips and common mistakes

  • Do work out the Height from the included angle on the print. The dialog has no angle box; use the formula above.
  • Do use Hole for a countersunk or counterbored hole. It sets the countersink angle and diameter for you.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.866 in enters 21.9964 mm.
  • Don’t set Diameter to 0. The base must have a size; put the point at the top with Top diameter 0 and use a negative Height if you need it to point down.

See also

Cylinder, Sphere and Box place the same way. Revolve turns any sketched profile, such as a Morse taper with a tang.

ParameterTypeRequiredDescription
radiusexprYes
diameterexprYes
heightexprYesthe base circle, and the top's distance along the axis; a negative height goes the other way
top_radiusexprNothe top circle; default 0: a full cone ending in an apex
top_diameterexprNothe top circle; default 0: a full cone ending in an apex
base[x,y,z]Nocentre of the base circle: numbers in mm or length expressions; default: the origin
axisX|Y|Z|[x,y,z]Nodefault Z
operationNo
touchingNo
targets[body]No
nameNo
body_nameNo
Automation details

Command ID: solid.cone

Parameters:

radius | diameter, height: expr (the base circle, and the top's distance along the axis; a negative height goes the other way); top_radius? | top_diameter?: expr (the top circle; default 0: a full cone ending in an apex); base?: [x,y,z] (centre of the base circle: numbers in mm or length expressions; default: the origin); axis?: X|Y|Z|[x,y,z] (default Z); operation?, touching?, targets?: [body], name?, body_name?

Rectangular Pattern

Command group: SOLID › CREATE

Repeat a hole, a pocket or a whole body in a row or a grid: a row of tapped holes along a rail, or a grid of vent slots. You pick what to copy, the direction, and two of how many, the spacing and the extent (first copy to last), or how many and a list of spacings.

Before you start

  • Make one of the thing you want to repeat first, such as one hole in the corner of the grid.
  • Choose what to copy with Object Type. Bodies copies whole solid bodies. Features repeats a step from the History, such as a Hole or a cut Extrude, on the same body. Components places a whole component again, such as a part in an assembly.
  • A sketch is neither. To repeat sketch curves, use the sketch’s own Rectangular Pattern, or extrude the sketch first.
  • You need a direction for each row: an origin axis, a sketch line or a straight edge of the part.

Options

Choice in the dialogMeaningExample or reason to choose it
TypeRectangular, Circular or Path. The same dialog makes all three patterns.Rectangular for rows and grids.
Object TypeBodies copies whole bodies. Features repeats History steps. Components places whole components again. If the bodies you pick make up a whole component, the dialog says so and offers a Pattern Components button that switches to Components for you.Features for holes in one plate. Components for parts in an assembly, such as a row of clamps on a fixture plate.
Objects or FeaturesWhat to repeat. With Features, pick the step in the History.The Hole feature for the first hole.
DirectionThe way the first row runs.The X axis, or the long edge of the plate.
Distance TypeWhich values set the first direction: Quantity and Spacing, Quantity and Extent, Spacing and Extent (the third is worked out), or Quantity and List.Quantity and Extent to spread 5 holes over a known length.
QuantityHow many along the first direction, counting the original. Not shown with Spacing and Extent.5 holes in the row.
SpacingCentre-to-centre distance between neighbours in the first direction. Not shown with Quantity and Extent or Quantity and List.1 in pitch.
ExtentDistance from the first copy to the last in the first direction. With Quantity and Extent the spacing is Extent ÷ (Quantity − 1). With Spacing and Extent you get as many copies as fit, with none past the end. With Center, the extent is the whole width: half of it on each side of the original.80 mm at 15 mm spacing: 6 copies, the last at 75 mm.
Spacing ListQuantity and List only: the distances from each copy to the next, separated by semicolons. They are used in turn, then from the start again. With Center, the list runs out from the original on both sides.10 mm; 20 mm; 30 mm with Quantity 5: copies at 10, 30, 60 and 70 mm.
Copy at the endSpacing and Extent only: one more copy exactly at the end of the extent when the spacing doesn’t divide it, so only the last gap is shorter.80 mm at 15 mm spacing: 7 copies, the last at 80 mm.
Direction 2The way the second row runs. Leave it empty for a single row.The Y axis for a grid.
Distance Type 2, Quantity 2, Spacing 2, Extent 2, Spacing List 2, Copy at the end 2The same for the second direction, chosen on their own. Quantity 2 at 1 means a single row.3 rows, 0.75 in apart.
Alignment and Alignment 2 (Features only)Flip direction runs the copies the other way. Center puts copies on both sides of the original: an odd Quantity splits evenly, an even Quantity puts one extra copy on one side, and Flip moves the extra copy to the other side. Quantity 4 with Center gives copies at 0, +1, −1 and +2 spacings.Flip when the row runs off the end of the part.

Try it: a 5 × 3 grid of holes

  1. Make a 6 in × 4 in × 0.5 in plate. Sketch a rectangle from the origin: type 6 in, press Tab to jump to the other side, type 4 in. Then Extrude it 0.5 in.
  2. Add one 0.25 in through hole with Hole, 1 in in from each of the two edges at the origin corner.
  3. Click Rectangular Pattern. Set Object Type to Features and click the Hole step in the History.
  4. Click Direction, then the X axis (or the long edge of the plate). Set Quantity to 5 and Spacing to 1 in.
  5. Click Direction 2, then the Y axis. Set Quantity 2 to 3 and Spacing 2 to 1 in.
  6. Click OK. The plate has 15 holes on a 1 in grid.

Tips and common mistakes

  • Do click Pattern Components when the dialog offers it and you want the component placed again. That is much faster and uses far less memory than copying every body in it. Leave Object Type on Bodies when you want separate body copies instead.
  • Do count the original in Quantity. Five holes in a row is Quantity 5, not 4.
  • Do read Spacing as hole-to-hole pitch, the way the print dimensions it. When the print gives the total length of the row, choose a Distance Type with Extent instead. When the gaps change in a repeating rhythm, use Quantity and List.
  • Do pattern the Hole feature rather than the body when the holes are all in one part. Change the hole size once and every copy follows.
  • Don’t forget to check Alignment if the copies land off the part. Flip direction or Center left on from an earlier pattern moves the whole grid.
  • Don’t leave Quantity 2 at 1 and expect a grid. With Quantity 2 at 1 you get a single row even if Direction 2 is picked.

See also

Circular Pattern repeats around an axis, such as a bolt circle. Rectangular Pattern repeats curves inside a sketch. Hole makes the first hole to pattern.

ParameterTypeRequiredDescription
features[names]Yes
bodies[names]Yes
components[names]Yes
body_name_startinteger >= 0Nodefault 1
body_name_templatestring templateNobody or feature copies, join false; {i} starts at body_name_start (default 1); {j} required for multiple new bodies per feature copy; original unchanged
dir1[x,y,z]Yes
count1Yes
spacing1Yes
dir2No
count2No
spacing2No
distance1count_spacing|count_extent|spacing_extent|count_listNo
distance2count_spacing|count_extent|spacing_extent|count_listNowhat sets each direction; default count_spacing; count_extent: count<k> and extent<k>, the distance from the first copy to the last, spacing = extent / (count - 1); spacing_extent: spacing<k> and extent<k>, as many copies as fit, none past the extent's end; count_list: count<k> and spacing_list<k>
extent1exprNo
extent2exprNogreater than zero
copy_at_end1boolNo
copy_at_end2boolNospacing_extent: one more copy exactly at the extent's end when the spacing doesn't divide it, so only the last gap is shorter
spacing_list1[expr]No
spacing_list2[expr]Nocount_list: the gaps between neighbours, each greater than zero, used in turn and from the start again: [10, 20, 30] with count 5 puts copies at 10, 30, 60 and 70; centred, out from the original on both sides
alignmentleft|center|rightNo
alignment2left|center|rightNodefault right; counts include the original
reversedboolNo
reversed2boolNoFlip
joinboolNojoin the bodies copied from and their copies where they touch or overlap; copies that touch nothing stay bodies of their own; default false
Automation details

Command ID: solid.pattern.rectangular

Parameters:

features: [names] | bodies: [names] | components: [names]; body_name_start?: integer >= 0 (default 1); body_name_template?: string template (body or feature copies, join false; {i} starts at body_name_start (default 1); {j} required for multiple new bodies per feature copy; original unchanged); dir1: [x,y,z]; count1; spacing1; dir2?, count2?, spacing2?; distance1?, distance2?: count_spacing|count_extent|spacing_extent|count_list (what sets each direction; default count_spacing; count_extent: count<k> and extent<k>, the distance from the first copy to the last, spacing = extent / (count - 1); spacing_extent: spacing<k> and extent<k>, as many copies as fit, none past the extent's end; count_list: count<k> and spacing_list<k>); extent1?, extent2?: expr (greater than zero); copy_at_end1?, copy_at_end2?: bool (spacing_extent: one more copy exactly at the extent's end when the spacing doesn't divide it, so only the last gap is shorter); spacing_list1?, spacing_list2?: [expr] (count_list: the gaps between neighbours, each greater than zero, used in turn and from the start again: [10, 20, 30] with count 5 puts copies at 10, 30, 60 and 70; centred, out from the original on both sides); alignment?, alignment2?: left|center|right (default right; counts include the original); reversed?, reversed2?: bool (Flip); join?: bool (join the bodies copied from and their copies where they touch or overlap; copies that touch nothing stay bodies of their own; default false)

Circular Pattern

Command group: SOLID › CREATE

Repeat a hole, a boss or a whole body around an axis: the bolt circle on a flange, or spokes on a hub. You pick what to copy, the axis, how many and over what angle.

Before you start

  • Make one of the thing you want to repeat first, such as one hole on the bolt circle. On a round face there are no straight edges to locate a hole from, so sketch a point where the hole goes and use Hole with Placement set to Multiple.
  • Choose what to copy with Object Type. Bodies copies whole solid bodies. Features repeats a step from the History, such as a Hole or a cut Extrude, on the same body. Components places a whole component again, such as a part in an assembly.
  • A sketch is neither. To repeat sketch curves, use the sketch’s own Circular Pattern, or extrude the sketch first.
  • You need an axis to turn about: an origin axis, a sketch line, a straight or circular edge, or a cylinder face such as the bore of the part.

Options

Choice in the dialogMeaningExample or reason to choose it
TypeRectangular, Circular or Path. The same dialog makes all three patterns.Circular for a bolt circle.
Object TypeBodies copies whole bodies. Features repeats History steps. Components places whole components again. If the bodies you pick make up a whole component, the dialog says so and offers a Pattern Components button that switches to Components for you.Features for holes in one part. Bodies for separate parts, such as loose spokes. Components for parts in an assembly, such as a row of clamps on a fixture plate.
Objects or FeaturesWhat to repeat. With Features, pick the step in the History.The Hole feature for one bolt hole.
AxisThe line the copies turn about. Clicking a round edge or a cylinder face uses its centre line.The Z axis, or the face of the centre bore.
QuantityHow many in total, counting the original.6 for a 6-hole bolt circle.
Total angleThe angle the pattern covers. At 360 deg the copies are spaced evenly all the way round. Under 360 deg, the first and last copies sit at the two ends of the angle.360 deg for a full bolt circle. 90 deg with Quantity 4 puts holes at 0, 30, 60 and 90 deg.
Alignment (Features only)Flip direction turns the pattern the other way. Center puts copies on both sides of the original: an odd Quantity splits evenly, an even Quantity puts one extra copy on one side, and Flip moves the extra copy to the other side. Quantity 4 over 90 deg with Center gives −30, 0, 30 and 60 deg.Flip a partial pattern that went the wrong way around.

Try it: a 6-hole bolt circle

  1. Make a flange: sketch a 4 in circle on the XY plane at the origin and Extrude it 0.5 in.
  2. Sketch a point on the top face, 1.5 in from the centre on the X axis (a 3 in bolt circle). Click Hole, set Placement to Multiple and pick the point. Set Diameter to 0.281 in and Extents to All, then click OK. The Hole must be finished so it shows in the History.
  3. Click Circular Pattern. Set Object Type to Features and click the Hole step in the History.
  4. Click Axis, then click the Z axis.
  5. Set Quantity to 6 and Total angle to 360 deg. Click OK. There are 6 holes, 60° apart.
  6. To make it 8 holes, edit the pattern and change Quantity to 8.

Tips and common mistakes

  • Do click Pattern Components when the dialog offers it and you want the component placed again. That is much faster and uses far less memory than copying every body in it. Leave Object Type on Bodies when you want separate body copies instead.
  • Do pattern the Hole feature rather than the body when the holes are all in one part. Change the hole size once and every copy follows.
  • Do count the original in Quantity. A 6-hole bolt circle is Quantity 6, not 5.
  • Don’t use 360 deg for a partial pattern you want to end on a copy. Under 360 deg the angle is from the first copy to the last; at 360 deg the last would land on the first, so the copies are spaced evenly instead.
  • Don’t pick the edge of the hole you are patterning as the Axis. That turns the hole about its own centre, so every copy lands on the original. Pick the Z axis or the centre bore.
  • Don’t pick the sketch you drew the hole from. Pick the Hole step, or extrude the sketch first.

See also

Rectangular Pattern repeats in rows and columns. Circular Pattern repeats curves inside a sketch. Hole makes the first hole to pattern.

ParameterTypeRequiredDescription
features[names]Yes
bodies[names]Yes
components[names]Yes
body_name_startinteger >= 0Nodefault 1
body_name_templatestring templateNobody or feature copies, join false; {i} starts at body_name_start (default 1); {j} required for multiple new bodies per feature copy; original unchanged
axisX|Y|Z | construction axis name| {origin, dir}| {edge|face: [x,y,z]}Yesfollowed when edited; origin coordinates may be length expressions; the pattern follows them; a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes
countYes
angleNodefault 360 deg; partial arcs include both ends
alignmentleft|center|rightNodefault right; original stays fixed
reversedboolNoFlip; selects the extra side for even centered counts
joinboolNojoin the bodies copied from and their copies where they touch or overlap; copies that touch nothing stay bodies of their own; default false
Automation details

Command ID: solid.pattern.circular

Parameters:

features: [names] | bodies: [names] | components: [names]; body_name_start?: integer >= 0 (default 1); body_name_template?: string template (body or feature copies, join false; {i} starts at body_name_start (default 1); {j} required for multiple new bodies per feature copy; original unchanged); axis: X|Y|Z | construction axis name (followed when edited) | {origin, dir} (origin coordinates may be length expressions; the pattern follows them) | {edge|face: [x,y,z]} (a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes); count; angle? (default 360 deg; partial arcs include both ends); alignment?: left|center|right (default right; original stays fixed); reversed?: bool (Flip; selects the extra side for even centered counts); join?: bool (join the bodies copied from and their copies where they touch or overlap; copies that touch nothing stay bodies of their own; default false)

Pattern on Path

Command group: SOLID › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
features[names]Yes
bodies[names]Yes
body_name_startinteger >= 0Nodefault 1
body_name_templatestring templateNobody or feature copies, join false; {i} starts at body_name_start (default 1); {j} required for multiple new bodies per feature copy; original unchanged
path_sketchsketchYes
path[curve ids in order]Yes
path_bodybody nameNo
path_edges[points on its edges]Nothe path is a chain of that body's edges, instead of a sketch's curves, starting at the chain's end nearest the first point, or a closed chain at its point nearest the first point
countYes
spacingYesbetween instances
distanceYesfirst to last
startexprNostart point: how far along the path the original sits, the copies measured on from there; default 0, the path's start
start_fractionexprNothe start point as 0…1 of the path's length, kept as the path changes
orientationidentical|pathNocopies keep the original's orientation, the default; copies turn with the path, keeping the original's relation to it
flipboolNorun from the path's other end
Automation details

Command ID: solid.pattern.path

Parameters:

features: [names] | bodies: [names]; body_name_start?: integer >= 0 (default 1); body_name_template?: string template (body or feature copies, join false; {i} starts at body_name_start (default 1); {j} required for multiple new bodies per feature copy; original unchanged); path_sketch: sketch; path: [curve ids in order]; path_body?: body name; path_edges?: [points on its edges] (the path is a chain of that body's edges, instead of a sketch's curves, starting at the chain's end nearest the first point, or a closed chain at its point nearest the first point); count; spacing (between instances) | distance (first to last); start?: expr (start point: how far along the path the original sits, the copies measured on from there; default 0, the path's start) | start_fraction?: expr (the start point as 0…1 of the path's length, kept as the path changes); orientation?: identical (copies keep the original's orientation, the default)|path (copies turn with the path, keeping the original's relation to it); flip?: bool (run from the path's other end)

Mirror

Command group: SOLID › CREATE

Copy bodies or features to the other side of a plane: model half of a symmetric part and mirror it, or make the left-hand version of a right-hand bracket.

Before you start

  • Make the half (or the feature) you want to copy first.
  • Choose what to copy with Object Type. Bodies copies whole solid bodies. Features repeats a step from the History, such as a Hole or a cut Extrude, on the other side of the same body.
  • A sketch is neither. To mirror sketch curves, use the sketch’s own Mirror, or extrude the sketch first.
  • You need a plane to mirror about: an origin plane (XY, XZ or YZ), a construction plane, or a flat face of the part.

Options

Choice in the dialogMeaningExample or reason to choose it
Object TypeBodies copies whole bodies. Features repeats History steps.Features to put a second pocket on the other side of the centre line. Bodies to mirror half a part.
Objects or FeaturesWhat to mirror. The box is named Objects or Features to match Object Type. With Features, pick the steps in the History; you can pick more than one.The half body, or two Hole steps at once.
Mirror PlaneThe plane the copy is reflected across.The YZ plane when the part is centred on the origin.
Operation (Bodies only)New Body keeps the copy as its own body. Join merges it with the original into one body.Join when you modelled half a part and want one solid. New Body for a left-hand and right-hand pair.

Try it: model half, mirror the rest

  1. Sketch a 2 in × 1.5 in rectangle on the XY plane with one 1.5 in short edge on the Y axis, so the 2 in side runs along X, and Extrude it 0.5 in. This is the right half of a 4 in wide block.
  2. Click Mirror. Leave Object Type on Bodies and click the block.
  3. Click Mirror Plane, then click the YZ plane.
  4. Set Operation to Join. Click OK. The block is now 4 in wide and one body.
  5. Add a hole on one side, then Mirror again with Object Type set to Features and the Hole step picked. The hole appears at the same spot on the other side.

Tips and common mistakes

  • Do draw symmetric parts centred on an origin plane. Then that plane is the mirror plane, and the halves line up.
  • Do use Join when the halves touch and should be one part. With New Body you get two bodies sitting face to face.
  • Do mirror the feature, not the body, when you just need the same hole or pocket on the other side. Change the original and the mirrored one follows.
  • Don’t expect a mirrored copy to be the same part. A mirrored right-hand bracket is a left-hand bracket, and a mirrored right-hand thread is left-hand.

See also

Mirror mirrors curves inside a sketch. Rectangular Pattern and Circular Pattern repeat features more than once.

ParameterTypeRequiredDescription
features[names]Yes
bodies[names]Yescombine?: join with the original; placements?: [[occurrence ids]] one per body to pick exact placements
planeXY|XZ|YZ|construction plane name or id|{face, body?, index?, path?, fixed?}|{origin, normal}|{origin, x_dir, y_dir}Yesfollows a picked face, a construction plane or length expressions in an explicit origin
Automation details

Command ID: solid.mirror

Parameters:

features: [names] | bodies: [names] (combine?: join with the original; placements?: [[occurrence ids]] one per body to pick exact placements); plane: XY|XZ|YZ|construction plane name or id|{face, body?, index?, path?, fixed?}|{origin, normal}|{origin, x_dir, y_dir} (follows a picked face, a construction plane or length expressions in an explicit origin)

Hole

Command group: SOLID › CREATE

Default keyboard shortcut: H

Put a hole in a solid body: a simple hole, a counterbore, a countersink or a tapped hole. You set the location, size, depth and drill point, the same things a print calls out.

Before you start

  • You need a solid body with a face to drill into. The hole goes straight into the face. A single hole can go on a flat or curved face; locating it from edges needs a flat face.
  • Locate the hole from edges of that face, the same way a print dimensions a hole from two edges. Pick an edge as Reference 1 and type its distance, then do the same for Reference 2. Both edges must be straight and must not be parallel to each other: pick one side edge and one front or back edge, not two opposite sides.
  • To drill several holes at once, sketch a point for each hole on the face first. Then open Hole, set Placement to Multiple and select the points you want. Only the points you select get a hole.

Options

Choice in the dialogMeaningExample or reason to choose it
Personal PresetsSaves the dialog settings under a name you choose (Save new), so you can reuse them. Presets are saved in your profile, so they carry over to every design. Rename and Delete manage saved presets.Save a “1/4-20 blind” preset once and pick it for every tapped hole of that size.
PlacementSingle drills one hole on the face you pick. Multiple drills a hole at each sketch point you select.Single for one hole located from edges. Multiple for a bolt pattern laid out in a sketch.
FaceThe face the hole is drilled into.Click the top face of the part.
Reference 1 and Distance 1An edge of the face, and how far the hole center is from it.The left edge, 0.75 in.
Reference 2 and Distance 2A second edge, and how far the hole center is from it.The front edge, 0.75 in.
ExtentsHow the depth is set. Distance drills to the Depth you type.Use Distance for a blind hole.
Hole TypeSimple is a straight hole. Counterbore and Countersink add a bore or a cone at the top.Counterbore for a socket head cap screw. Countersink for a flat head screw: 82° for inch screws, 90° for metric.
Hole Tap TypeSimple is a plain drilled hole with a Diameter you type. Clearance sizes the hole for a metric bolt to pass through. Tapped drills the tap drill size and shows the thread settings.Clearance for a bolt hole. Tapped for any tapped hole.
Size (Clearance)The bolt size, M1.6 to M64, from the ISO 273 clearance hole table. There are no inch sizes yet: for an inch bolt, use Simple and type the drill.M6 for an M6 cap screw.
Fit (Clearance)Close, Normal or Loose: how much room the bolt gets in the hole.Normal for most bolt holes. Close when the bolts also locate the part. Loose when the hole positions may not line up exactly.
Clearance diameter (Clearance)The hole size the table gives for that Size and Fit. Type another diameter to use your own drill.M6 Normal fills in 6.6 mm.
Screw head (Clearance with Counterbore)Sizes the counterbore for a socket head (ISO 4762) or button head (ISO 7380-1) cap screw: the head’s size plus 0.5 mm each side and below. The counterbore’s diameter and depth fill in, and you can still change them.Socket head for an M6 cap screw fills in an 11 mm counterbore 6.5 mm deep.
Profile (Tapped)The thread standard.UNC for coarse inch threads, UNF for fine inch threads.
Size (Tapped)The thread size, from a list. The Designation box shows the callout.1/4-20 UNC.
Tap drill diameter (Tapped)The drill for the tapped hole. It fills in the standard tap drill for the size, the one on a tap drill chart (the app’s messages call it “the tap maker’s drill”), and you can type a different one. The app accepts drills from the smaller of the thread’s minor diameter and the standard tap drill, up to 5% over the standard tap drill, and says the allowed range if you go outside it. For a custom metric size with no entry in the app’s tap drill table, the app fills in major diameter minus pitch, the usual rule of thumb; check a tap drill chart.1/4-20 UNC fills in 0.201 in (a #7 drill); hover the box to see 5.105 mm. Typing 0.203 in (13/64) is accepted; 0.220 in is refused because too little thread would engage.
Full thread depth (Tapped)On: the thread runs the full depth of the hole. Off: a Thread depth box appears.Turn it off for a blind tapped hole.
Thread depth (Tapped)How deep the full thread goes, separate from the drill Depth.Drill 0.625 in deep with 0.50 in of thread, so a standard tap doesn’t bottom out.
Hand (Tapped)Right or Left.Right unless the print calls for LH.
Modeled (Tapped)On: the thread groove is cut into the hole wall. Off: the thread is carried as a callout only.Leave it off unless you need to see the thread or 3D print it. A modeled thread makes the part slower to rebuild.
End (Modeled on)Square stops the thread sharp at the bottom. Fade runs it out over a length, the way a tap’s chamfered end leaves it.Fade for a realistic blind tapped hole.
Drill PointThe bottom of the hole. Angle leaves a drill point.Use Angle for a hole made with a twist drill.
DepthHow deep the hole goes.Measured to the end of the full diameter, not the tip of the drill point.
Tip AngleThe angle of the drill point. Default is 118°.118° for a standard jobber drill. 135° for most carbide and split-point drills.
Diameter (Simple)The drill size for a plain hole.Type the drill size, such as 0.201 in.

Try it: a 1/4-20 tapped hole 0.75 in from two edges

  1. Click New Sketch and choose the XY plane. Draw a 2-point rectangle from the origin, 3 in × 2 in. Click Finish Sketch.
  2. Click Extrude and set the distance to 0.75 in. Click OK.
  3. Click Hole, then click the top face.
  4. Click Reference 1, pick the left edge of the top face and set Distance 1 to 0.75 in. Click Reference 2, pick the front edge and set Distance 2 to 0.75 in.
  5. Set Hole Tap Type to Tapped, Profile to UNC and Size to 1/4-20 UNC. Check that Tap drill diameter shows 0.201 in.
  6. Turn off Full thread depth. Set Depth to 0.625 in and Thread depth to 0.50 in. Click OK.

Try it: a counterbore for an M6 socket head cap screw

  1. On the block from the first example, click Hole, then click the top face.
  2. Click Reference 1, pick the right edge of the top face and set Distance 1 to 0.75 in. Click Reference 2, pick the front edge and set Distance 2 to 0.75 in.
  3. Set Hole Type to Counterbore and Hole Tap Type to Clearance.
  4. Set Size to M6 and Fit to Normal. Check that Clearance diameter shows 6.6 mm.
  5. Set Screw head to Socket head cap screw (ISO 4762). The counterbore fills in at 11 mm across and 6.5 mm deep.
  6. Set Extents to All and click OK. The hole goes through the block with the counterbore at the top.

Tips and common mistakes

  • Do locate holes from edges the way the print dimensions them. When the part changes size, the holes keep their distances from those edges.
  • Do use Tapped and pick the size from the list instead of typing a drill diameter. The hole then carries the thread callout, and the tap drill comes from a standard tap drill chart.
  • Do check the Tap drill diameter before clicking OK. UNC and UNF sizes show it in inches; metric and pipe sizes show millimetres. If your shop runs a different drill, such as 0.203 in for 1/4-20 in steel, type it in. Hovering over the box shows the tap maker’s drill in millimetres and the accepted range, not the drill you typed.
  • Don’t turn on Modeled just to show the hole is tapped. The callout already says it.
  • Do use Clearance instead of looking up a bolt hole size. Pick the bolt and the fit, and the table gives the drill.
  • Don’t expect Edit Feature to reopen a clearance hole as Clearance. The hole keeps its diameter, not the bolt size, so it opens as Simple with that diameter. The counterbore keeps its size.
  • Do turn off Full thread depth on blind tapped holes and set a Thread depth shorter than the drill Depth, so a standard tap doesn’t bottom out.
  • Do type the unit with the number when the print is in another unit. In a millimetre design, typing 0.75 in enters 19.05 mm.
  • Don’t expect every hole to work on sheet metal. Sheet metal holes must go straight into a flat panel (plain, counterbored, countersunk or tapped); drill points and countersinks across bends are refused there.

See also

Thread cuts a thread on any round face, including the outside of a shaft. Circular Pattern repeats a hole around a center for a bolt circle. Chamfer breaks the edge of a hole.

ParameterTypeRequiredDescription
position[x,y,z] on a face of a body| sketch + points: [sketch point ids]| sketch aloneYesnumbers, or length expressions the hole follows; a position on no face is refused: the hole starts at that face, its depths are measured from it, and material above it (a body over it, a taller wall beside it) is left standing; one hole each, perpendicular to the sketch, into the material on whichever side of the sketch plane it is; every sketch point: standalone points and circle centres
flipboolNosketch points: drill to the other side
singleboolNowith one sketch point: a Single hole that follows the point, drilled into the face there
diameterYesa tapped hole, drilled with the tap maker's tabulated drill: ISO metric (a custom metric size: major minus pitch), UNC/UNF, G, Rp, Rc 1/16 to 4, NPT 1/16 to 3; a `diameter` given with it chooses another drill, from the thread's minor diameter to 5% over the tap maker's
threadYesa tapped hole, drilled with the tap maker's tabulated drill: ISO metric (a custom metric size: major minus pitch), UNC/UNF, G, Rp, Rc 1/16 to 4, NPT 1/16 to 3; a `diameter` given with it chooses another drill, from the thread's minor diameter to 5% over the tap maker's
clearance"M6" with fit?: close|normal|looseYesISO 273
head"ISO 4762"| "ISO 7380-1"| "ISO 10642"Nosocket head; button head; countersunk head
head_gaplengthNodefault 0.5 mm; an expression with parameters is kept, so the recess follows them
depthNodefault through all; from where the hole starts, not from `position`: the face it enters, or for a sketch point inside a body the sketch plane
to[x,y,z]NoTo Object: drill to that face or point
typesimple|drilled|counterbore|countersinkNo
tip_angleNo
cb_diameterNo
cb_depthNofrom where the hole starts, as depth
bridgelengthNocounterbore: two 3D-printing bridge layers this thick below its floor, a slot along X then a square; e.g. 0.2 mm
cs_diameterNo
cs_angleNo
far{type: counterbore, cb_diameter, cb_depth} | {type: countersink, cs_diameter, cs_angle? (default 90°)} | "same"Nothe type's own counterbore or countersink
handright|leftNothe tapped thread's hand; default right; needs thread
thread_depthpositive length independent of drill depthNodefault: full useful cylindrical wall; must fit that wall
modeledboolNoneeds thread: the tapped thread cut into the wall, the groove between its teeth, as solid.thread's modelled one; default false: listed only
ease_outexpr|standard|shortNomodelled tapped threads: the inner end, towards the bottom, fades out over this length, ISO 3508's runout, standard 2.5 P, short 1.25 P; without it the groove stops square at thread_depth, or clear of a blind hole's bottom
targets[body]Nothe bodies to drill; holes at the points of a sketch on a body's face default to that body, found along the holes' direction on it alone; explicit targets or participants override, ["*"] every body
old_surface_startboolNosketch points: a point inside a body starts the hole at the body's surface whatever plane the sketch lies on, as designs saved before #11538 drilled; set on those holes, keeps them as they were when edited
Automation details

Command ID: solid.hole

Parameters:

position: [x,y,z] on a face of a body (numbers, or length expressions the hole follows; a position on no face is refused: the hole starts at that face, its depths are measured from it, and material above it (a body over it, a taller wall beside it) is left standing) | sketch + points: [sketch point ids] (one hole each, perpendicular to the sketch, into the material on whichever side of the sketch plane it is) | sketch alone (every sketch point: standalone points and circle centres); flip?: bool (sketch points: drill to the other side); single?: bool (with one sketch point: a Single hole that follows the point, drilled into the face there); direction?: [x,y,z], each a number or an expression with no unit ("-sin(t)") the hole follows as the parameters change (default: into the face, against its outward normal; where faces of several bodies meet there, the face of a body in `targets`; one that leaves the face is mirrored into it; ignored with sketch points unless single); diameter | thread (a tapped hole, drilled with the tap maker's tabulated drill: ISO metric (a custom metric size: major minus pitch), UNC/UNF, G, Rp, Rc 1/16 to 4, NPT 1/16 to 3; a `diameter` given with it chooses another drill, from the thread's minor diameter to 5% over the tap maker's) | clearance: "M6" with fit?: close|normal|loose (ISO 273); head?: "ISO 4762" (socket head) | "ISO 7380-1" (button head) | "ISO 10642" (countersunk head) (with clearance: the recess the screw's head sits in. A cap screw's: a counterbore, so type defaults to counterbore; its diameter is the head's dk plus head_gap each side, its depth the head's k plus head_gap; a cb_diameter or cb_depth given keeps its value. A countersunk head's: a countersink, so type defaults to countersink; 90° unless cs_angle is given, its diameter the head's dk plus head_gap each side, so the head sits head_gap below the face; a cs_diameter given keeps its value); head_gap?: length (default 0.5 mm; an expression with parameters is kept, so the recess follows them); depth? (default through all; from where the hole starts, not from `position`: the face it enters, or for a sketch point inside a body the sketch plane) | to?: [x,y,z] (To Object: drill to that face or point); references?: [{edge: [x,y,z] on a straight edge of the face, distance: expr}] (at most two; the centre goes that far from each edge's line, in the face's plane, and follows the edges; with a numeric position only), or [{circle: [x,y,z] on a circle or arc edge, offset?: [x,y] lengths}] (the only reference: the centre goes on the circle's centre, put on the hole's face (the circle may lie at another height), moved X and Y square to its axis (X along world X projected, else world Y), and follows the edge); type?: simple|drilled|counterbore|countersink; tip_angle?; cb_diameter?, cb_depth? (from where the hole starts, as depth), bridge?: length (counterbore: two 3D-printing bridge layers this thick below its floor, a slot along X then a square; e.g. 0.2 mm); cs_diameter?, cs_angle?; far?: {type: counterbore, cb_diameter, cb_depth} | {type: countersink, cs_diameter, cs_angle? (default 90°)} | "same" (the type's own counterbore or countersink) (a seat on the far side, cut into the face where the hole comes out of the part for the last time along its axis; needs Through All, or a depth or `to` that ends on that face); thread?: "M6", "1/4-20 UNC", "G 1/4", "Rp 1/4", "Rc 1/4" or "1/4-18 NPT" (cosmetic unless modeled); hand?: right|left (the tapped thread's hand; default right; needs thread); thread_class?: the tapped thread's tolerance class, saved for drawings and changing no geometry (ISO metric: 6H, 5H, 7G, or a pitch and minor diameter class such as 5H6H; UNC/UNF: 1B, 2B or 3B; G, Rp, Rc and NPT take none; needs thread);thread_depth?: positive length independent of drill depth (default: full useful cylindrical wall; must fit that wall); modeled?: bool (needs thread: the tapped thread cut into the wall, the groove between its teeth, as solid.thread's modelled one; default false: listed only); ease_out?: expr|standard|short (modelled tapped threads: the inner end, towards the bottom, fades out over this length, ISO 3508's runout, standard 2.5 P, short 1.25 P; without it the groove stops square at thread_depth, or clear of a blind hole's bottom); targets?: [body] (the bodies to drill; holes at the points of a sketch on a body's face default to that body, found along the holes' direction on it alone; explicit targets or participants override, ["*"] every body); old_surface_start?: bool (sketch points: a point inside a body starts the hole at the body's surface whatever plane the sketch lies on, as designs saved before #11538 drilled; set on those holes, keeps them as they were when edited)

Pipe

Command group: SOLID › CREATE

Run a round tube or rod along a path of sketch curves: bent tubing, a coolant or hydraulic line, a handrail, or a wire. You give the outside diameter and, for a tube, the wall.

Before you start

  • You need a sketch with the path drawn as connected curves: lines and arcs, end to end. The path is the tube’s centerline.
  • Diameter is the outside diameter (OD). Leave Wall empty for a solid rod; type a wall for a tube. The Type row says which one the pipe is, and a thickness typed in the Wall row is the pipe’s wall: it is never thrown away, not even when the Type row says Solid.
  • Lines meeting at a sharp corner give a mitred joint, like welded pipe. For bent tubing, draw each bend as an arc at the bender’s centerline radius.

Options

Choice in the dialogMeaningExample or reason to choose it
PathThe sketch curves the tube follows.A line, an arc and a line for a 90° bend.
DiameterThe outside diameter of the tube or rod. It starts at 5 in the design’s unit.0.375 in for 3/8 tube.
TypeSolid makes a solid rod. Hollow makes a tube, and asks for its wall. A pipe whose Wall row holds a thickness is a tube.Hollow for a tube.
WallThe wall thickness, measured in from the OD. Empty means solid. A thickness typed here is the pipe’s wall, and it is never dropped.0.035 in.
OperationNew Body makes a separate body. Join adds it to a body it touches. Cut takes it out. Intersect keeps only the material inside both.New Body for a tube. Cut for a round channel through a part.

Try it: a bent 3/8 tube

  1. Start a sketch on the XY plane. Draw a 3 in line along X, a tangent arc of 1 in radius turning 90°, and a 2 in line along Y. Finish the sketch.
  2. Click Pipe. Click Path and pick the line, the arc and the second line. Path shows 3 selected.
  3. Set Diameter to 0.375 in and Wall to 0.035 in. The Type row says Hollow. Click OK.
  4. The tube is 3/8 in OD with a 0.035 in wall, bent 90° on a 1 in centerline radius.

Tips and common mistakes

  • Do draw the path through the tube’s center, the way a tube bender’s centerline radius and lengths are given.
  • Do keep an arc’s radius bigger than half the OD, or the inside of the bend folds into itself. Real tube needs much more, often 2 to 3 times the OD, so use the radius your bender’s die gives.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.375 in enters 9.525 mm.
  • Don’t leave gaps in the path. The curves must meet end to end.

See also

Sweep runs any section shape along a path. Cylinder makes a straight rod without a sketch.

ParameterTypeRequiredDescription
path_sketchsketchYes
path[curve ids in order]Yes
path_bodybody nameNo
path_edges[points on its edges]Nothe path is a chain of that body's edges, instead of a sketch's curves
diameterexprYes
wallexprNohollow
operationNo
targetsNo
nameNo
body_nameNo
Automation details

Command ID: solid.pipe

Parameters:

path_sketch: sketch; path: [curve ids in order]; path_body?: body name; path_edges?: [points on its edges] (the path is a chain of that body's edges, instead of a sketch's curves); diameter: expr; wall?: expr (hollow); operation?, targets?, name?, body_name?

Bounding Solid

Command group: SOLID › CREATE

Put a box around a part: the size of the raw stock it’s cut from. Margin adds cleanup stock on every side, the way you’d saw a blank oversize before squaring it up.

Before you start

  • You need at least one body.
  • The box is square to the design’s X, Y and Z axes, not to the part. Model the part square to the axes, or the box comes out bigger than the stock you’d really cut.
  • The box is a new body, named Bounding, or Bounding (2) if the design already has a body named Bounding. The part itself is not changed.

Options

Choice in the dialogMeaningExample or reason to choose it
Bodies (all if none)The bodies to put the box around. A body selected when you start is picked for you. Clear it to use every body in the design.Pick one part when the design has several.
MarginStock added on every side of the box. The overall size grows by twice the Margin in each direction. It starts at 2 in the design’s unit; set 0 for the part’s exact size.0.0625 in on each side to leave room to face and square up a sawn blank.

Try it: size the stock for a plate

  1. Make a 3 in × 2 in × 0.75 in block.
  2. Click Bounding Solid. Bodies shows the part if it was selected; otherwise leave it empty. Set Margin to 0.0625 in. The yellow preview shows the box. Click OK.
  3. A new body, Bounding, covers the part. It is 3.125 in × 2.125 in × 0.875 in: the stock to order or saw.
  4. Hide the new body in the Browser to see the part again. It is Bounding, or Bounding (2) if the design already had a body named Bounding.

Tips and common mistakes

  • Do remember the Margin is per side. For 1/8 in of total cleanup on each dimension, set Margin to 0.0625 in.
  • Do round the stock up to a size you can buy. The box gives the smallest block that holds the part; standard bar and plate sizes are usually a little bigger.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.0625 in enters 1.5875 mm.
  • Don’t expect a box square to the part when the part sits at an angle to the axes. The box stays square to X, Y and Z.
  • Don’t leave Bounding showing while you work. It covers the part; hide it in the Browser.

See also

Extrude makes the part from a sketch. Offset Face adds stock to a single face instead of the whole part.

ParameterTypeRequiredDescription
bodies[names]Nodefault: all
marginexprNo
margins[-X, +X, -Y, +Y, -Z, +Z] exprsNoa margin per side instead of margin; negative sets a side into the bodies
componentid or nameNoinstead of `bodies`: an envelope of that component, a box around every body placed inside it, its subcomponents' at any depth and every placement, in its own axes; the box is added to that component, so it moves with it, and is built again when a part inside it moves. inspect.clearance and inspect.interference leave envelopes out unless named, and `envelopes: true` there checks each envelope instead of its contents
nameNo
body_nameNo
Automation details

Command ID: solid.bounding_solid

Parameters:

bodies?: [names] (default: all); margin?: expr; margins?: [-X, +X, -Y, +Y, -Z, +Z] exprs (a margin per side instead of margin; negative sets a side into the bodies); component?: id or name (instead of `bodies`: an envelope of that component, a box around every body placed inside it, its subcomponents' at any depth and every placement, in its own axes; the box is added to that component, so it moves with it, and is built again when a part inside it moves. inspect.clearance and inspect.interference leave envelopes out unless named, and `envelopes: true` there checks each envelope instead of its contents); name?, body_name?

Thread

Command group: SOLID › CREATE

Put a thread on a round face: an external thread on a shaft or stud, or an internal thread in a bore. You pick the thread form and size, how far the thread runs, and how its ends are finished.

Before you start

  • You need a body with a cylindrical face: the outside of a shaft for an external thread, or the wall of a bore for an internal one.
  • Size the cylinder first. For an external thread, make the shaft the thread’s major diameter (12 mm for M12). For an internal thread, make the bore the tap drill size.
  • Click the face near the end you want threaded. On a shaft with two free ends, that tells a limited-length thread where to start.
  • For an ordinary tapped hole, including UNC and UNF, use Hole with Hole Tap Type set to Tapped instead. It drills the tap drill and keeps the thread callout on the hole.

Options

Choice in the dialogMeaningExample or reason to choose it
Cylindrical faceThe round face the thread goes on.Click the outside of the shaft near the end to thread.
FormThe thread standard: ISO metric, Unified (ASME B1.1: UNC, UNF, UNEF, UN), Trapezoidal (ISO 2904), Acme (ASME B1.5), Buttress (DIN 513 or ASME B1.9), and the pipe threads Pipe G (ISO 228-1), Pipe Rp (ISO 7-1), Pipe taper R, Rc (ISO 7-1) and Pipe taper NPT (ASME B1.20.1).ISO metric for metric fasteners; Unified for inch fasteners. Acme or Trapezoidal for lead screws. Buttress for a screw that takes load one way, like a vise screw. Pipe taper NPT for US tapered pipe threads.
ModeledOn: the thread groove is cut into the part. Off: the thread is carried as a callout only.Leave it off unless you need to see the thread or 3D print it. A modeled thread makes the part slower to rebuild.
Automatic sizeOn by default: picks the standard size that fits the face you selected; ISO metric by default, or the nearest catalogued UNC size when Form is Unified.Leave it on when the shaft is a standard diameter.
Size and PitchThe thread size from the standard’s table, and for metric threads the pitch.M12 with the standard 1.75 mm pitch, or 1.25 mm for M12 fine.
DesignationThe thread callout. You can type it directly.M12, M12x1.25, M12-6g, 1/4-20 UNC-2A, #10-32 UNF. An ISO metric class with a lowercase letter (6g) needs a shaft, an uppercase one (6H) a hole. Unified classes ending in A need a shaft; classes ending in B need a hole. The class is kept in the callout and does not change the thread’s shape.
HandRight, Left, or Both. Pipe threads offer Right or Left only.Right unless the print calls for LH.
StartsNumber of thread starts, 1 to 8.1 for fasteners. 2 or more for a fast-moving lead screw: each turn advances the pitch times the number of starts.
Steep Flank (Buttress only)Which end the steep, load-carrying flank faces.Point it toward the load.
ExtentFull runs the whole face. Length runs a set distance. Up to stops at a face or plane you pick.Length for a threaded end on a longer shaft. Up to for a thread that stops at a shoulder.
Offset (optional)How far in from the start side the thread starts, leaving that much of the face plain. Length and Up to are measured from there. Empty starts at the end.A plain lead-in on a bolt, or a plain stretch below a hole’s mouth.
Start side (optional)Which end of the face the thread is measured from. Shown once Extent is Length or Up to, or an Offset is typed.Pick it when the thread starts at the wrong end.
Start (Ends)None leaves the thread’s free end plain. Chamfer adds a lead-in chamfer and shows Chamfer Angle and Chamfer Depth; left blank, they use the ISO 4753 standard chamfer.Chamfer the start of any thread that has to take a nut or go into a tapped hole by hand.
End (Ends)Square stops the thread sharp. Fade runs it out over a length (ISO 3508 runout, 2.5 pitches standard).Fade for a thread cut with a die or single-point tool that stops short of a shoulder.

Try it: a threaded shaft end

  1. Sketch a 12 mm circle on the XY plane and extrude it 50 mm.
  2. Click Thread, then click the round face of the shaft near its top end.
  3. Check that Form is ISO metric and Automatic size picked M12 with a 1.75 mm pitch.
  4. Set Extent to Length and the length to 20 mm.
  5. Turn on Modeled to see the thread cut into the shaft.
  6. Under Ends, set Start to Chamfer. Leave Chamfer Angle and Chamfer Depth blank for the standard ISO 4753 chamfer.
  7. Click OK. The top 20 mm of the shaft carries an M12 thread with a lead-in chamfer.

Tips and common mistakes

  • Do size the cylinder before threading it: major diameter for an external thread, tap drill size for an internal one.
  • Do click the face near the end you want threaded, or pick Start side. Otherwise a Length thread can start at the wrong end.
  • Do chamfer the start of an external thread. The shop will put one there anyway, and a nut starts on it in the model the same way it does on the part.
  • Do leave room for runout before a shoulder. A thread can’t run full depth right up to a shoulder without a relief groove.
  • Don’t turn on Modeled just to show the part is threaded. The callout already says it.
  • Do choose Unified for inch fastener threads. A 1/4-20 UNC external thread needs a 6.35 mm shaft; a #10-32 UNF thread needs a 4.826 mm shaft. Fractional or decimal inch sizes and #0 through #12 are accepted; pitch is 25.4/TPI mm.
  • Don’t mix up NPT and the ISO taper (R, Rc, often called BSPT). Both are tapered pipe threads, but the thread angle and pitch differ, and they don’t seal together.

See also

Hole makes tapped holes with the right tap drill, including UNC and UNF. Chamfer breaks an edge by hand. Revolve makes a turned part to thread.

ParameterTypeRequiredDescription
face[x,y,z] on a cylindrical face OR faces: [{body, point:[x,y,z]}, …]Yes1 to 1024 selected faces of the same component in one Thread feature; every plural face requires its body identity; exact world body names or unambiguous definition names; do not combine with face
single_face_selectionboolNodefault false; true requires exactly one entry in faces and keeps single-face replacement when editing
formmetric|unified|trapezoidal|acme|buttress|buttress_asme|bspp|rp|bspt|nptNodefault: the one `designation` names, else metric; square is refused: no current standard defines it
handright|left|bothNodefault right; both: a right- and a left-handed groove crossing
old_auto_sizeboolNoan automatic size keeps the rule of designs saved before a hole was sized by its nominal diameter: a 12 mm hole is M14; set on those threads, keeps them as they were when edited
steep_flankstart|endNobuttress only, default end: the steep flank of the screw's teeth faces the thread's end, the way its axis points
starts1..8Nolead = starts x pitch: that many grooves, each a turn's starts-th further round; a designation that gives the lead gives the starts
ease_outexpr|standard|shortNomodelled threads: the inner end, away from where the thread starts, fades out over this length (shorter than a turn too), its section moving out of the material as it turns; standard 2.5 P, short 1.25 P per ISO 3508; it lies past the full-form length, up to a shoulder's clearance; at a free end, inside the face; without it the groove stops square there, ending in its own profile; the start never fades: it runs off its free end, plain or chamfered (`tip`)
tipnone|start|bothNomodelled external threads: start chamfers the end the thread starts from, which must be free, both each free end the thread reaches, ISO 4753's chamfered end, the last teeth tapering into the cone; chamfer_angle?: angle expr to the axis, default 45 deg; chamfer_depth?: expr, radial from the major diameter, default for a metric thread down to the external minor diameter d3 = d - 1.226869 P (ISO 724), the largest ISO 4753 allows; other forms give it
extentfull|length|up_toNodefault: length when `length` is given, up_to when `up_to` is, else full: the whole face
lengthexprNofrom where the thread starts: the end it starts at, or `offset` in from it
offsetlength exprNodefault 0: how far in from the end it starts at (`from`) the thread starts, leaving that much of the face plain, a lead-in on a bolt or a plain stretch below a hole's mouth; `length` and `up_to` are measured from there, a length past the face's far end stops there, and the runout stays at the inner end; 0 or more and shorter than the face; not with `tip: start`, whose chamfer needs a free end, and not on a taper pipe thread, whose standard diameter is set at the pipe's end or the hole's mouth
up_to[x,y,z]| plane name or {origin, normal}Noa point, such as on a shoulder face: the thread runs to its place along the axis; to where the plane crosses the axis
from[x,y,z] near the end of the face the thread starts atNodefault: the face's only free end, the one with no material past it; else the end the `face` point lies within a third of the face of; a pick in the middle of a face whose ends are alike is refused
modeledboolNodefault false
to_bottomboolNomodelled internal threads, default false: at a blind hole's bottom the groove runs down to the bottom, its last turn trimmed at the bottom's plane, rather than stopping clear of it, as a printed part wants; a square end only, not with `ease_out`; a bottom that rises back along the hole, or one the kernel can't check, keeps the stop clear of it and the reply's warning says so
Automation details

Command ID: solid.thread

Parameters:

face: [x,y,z] on a cylindrical face OR faces: [{body, point:[x,y,z]}, ...] (1 to 1024 selected faces of the same component in one Thread feature; every plural face requires its body identity; exact world body names or unambiguous definition names; do not combine with face); single_face_selection?: bool (default false; true requires exactly one entry in faces and keeps single-face replacement when editing); shared options apply to every face, automatic size fits each independently; cosmetic replies include threads for faces and retain thread as the first; form?: metric|unified|trapezoidal|acme|buttress|buttress_asme|bspp|rp|bspt|npt (default: the one `designation` names, else metric; square is refused: no current standard defines it); designation?: the size, as its standard writes it: metric "M8", "M8x1", "M16xPh3P1.5" (ISO 68-1, ISO 261, ISO 965-1), optionally then an ISO 965-1 tolerance class after a hyphen, "M8-6g", "M8x1-6H", "M10x1.25-5g6g" (e, f, g or h on a shaft, G or H in a hole; kept in the callout, refused on the wrong side, changes no geometry); unified "1/4-20 UNC-2A", "#10-32 UNF" (ASME B1.1, 60 degrees; <size>-<TPI> UNC|UNF|UNEF|UN, optional -1A/-2A/-3A external or -1B/-2B/-3B internal, class retained; size #0..#12 or fractional/decimal inches, major from size, pitch exactly 25.4/TPI; automatic unified uses nearest catalogued UNC, default automatic remains metric); trapezoidal "Tr20x4", "Tr40x14(P7)" (ISO 2904, ISO 2903); buttress "S20x4", "S40x14(P7)" (DIN 513, 3°/30°); acme "1/2-10 ACME" (ASME B1.5); buttress_asme "2.5-8 BUTT" (ASME B1.9, 7°/45°, basic profile; no size table); custom "C10x1.5x90" (not a standard: C<major diameter>x<pitch>x<included angle> in mm and degrees, the ISO 68-1 basic profile at that angle, 20° to 90°; no size table; no chamfered tip); bspp "G 1/2" (ISO 228-1, 55° parallel); rp "Rp 1/2" (ISO 7-1's parallel internal thread, 55°, an R screws into it; internal only); bspt "R 1/2" external, "Rc 1/2" internal (ISO 7-1, 55°, taper 1 in 16); npt "1/2-14 NPT" (ASME B1.20.1, 60°, taper 1 in 16) — a taper thread starts at a free end (the pipe end or the hole mouth) with its standard diameter there, and an external one runs its standard length unless `length` or `up_to` says otherwise (default: the standard size that fits the face, a shaft its major diameter, a hole its nominal diameter (a 12 mm hole is M12) or else the size whose tap drill it is); hand?: right|left|both (default right; both: a right- and a left-handed groove crossing); old_auto_size?: bool (an automatic size keeps the rule of designs saved before a hole was sized by its nominal diameter: a 12 mm hole is M14; set on those threads, keeps them as they were when edited); steep_flank?: start|end (buttress only, default end: the steep flank of the screw's teeth faces the thread's end, the way its axis points); starts?: 1..8 (lead = starts x pitch: that many grooves, each a turn's starts-th further round; a designation that gives the lead gives the starts); ease_out?: expr|standard|short (modelled threads: the inner end, away from where the thread starts, fades out over this length (shorter than a turn too), its section moving out of the material as it turns; standard 2.5 P, short 1.25 P per ISO 3508; it lies past the full-form length, up to a shoulder's clearance; at a free end, inside the face; without it the groove stops square there, ending in its own profile; the start never fades: it runs off its free end, plain or chamfered (`tip`)); tip?: none|start|both (modelled external threads: start chamfers the end the thread starts from, which must be free, both each free end the thread reaches, ISO 4753's chamfered end, the last teeth tapering into the cone; chamfer_angle?: angle expr to the axis, default 45 deg; chamfer_depth?: expr, radial from the major diameter, default for a metric thread down to the external minor diameter d3 = d - 1.226869 P (ISO 724), the largest ISO 4753 allows; other forms give it); extent?: full|length|up_to (default: length when `length` is given, up_to when `up_to` is, else full: the whole face); length?: expr (from where the thread starts: the end it starts at, or `offset` in from it); offset?: length expr (default 0: how far in from the end it starts at (`from`) the thread starts, leaving that much of the face plain, a lead-in on a bolt or a plain stretch below a hole's mouth; `length` and `up_to` are measured from there, a length past the face's far end stops there, and the runout stays at the inner end; 0 or more and shorter than the face; not with `tip: start`, whose chamfer needs a free end, and not on a taper pipe thread, whose standard diameter is set at the pipe's end or the hole's mouth); up_to?: [x,y,z] (a point, such as on a shoulder face: the thread runs to its place along the axis) | plane name or {origin, normal} (to where the plane crosses the axis); from?: [x,y,z] near the end of the face the thread starts at (default: the face's only free end, the one with no material past it; else the end the `face` point lies within a third of the face of; a pick in the middle of a face whose ends are alike is refused); modeled?: bool (default false); to_bottom?: bool (modelled internal threads, default false: at a blind hole's bottom the groove runs down to the bottom, its last turn trimmed at the bottom's plane, rather than stopping clear of it, as a printed part wants; a square end only, not with `ease_out`; a bottom that rises back along the hole, or one the kernel can't check, keeps the stop clear of it and the reply's warning says so); continuous_flanks?: bool (default true; false keeps the historical half-turn faces and groove-before-chamfer construction). Cosmetic: the model is unchanged, model.threads lists it. Modeled: cuts the thread profile into the body: past a free end the groove runs out a pitch into the air (or through a chamfer); at a shoulder, a head or a blind hole's bottom it stops with its section clear of it, never cutting into it; a hole as wide as the thread or wider is narrowed to the thread's minor diameter first, and the reply's warning says so, unless its wall is open along the thread (a cross hole, a cut through the side, a slanted end), which is refused with the drill to use; a shaft thicker than the thread is refused with the size to make it, never turned down

Boundary Fill

Command group: SOLID › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
tools[bodies]Yes
cells[[x,y,z] a point inside each cell to fill (a cell: inside some tools, outside the rest)]Yes
operationnew|join|cut|intersectNo
remove_toolsboolNo
Automation details

Command ID: solid.boundary_fill

Parameters:

tools: [bodies]; cells: [[x,y,z] a point inside each cell to fill (a cell: inside some tools, outside the rest)]; operation?: new|join|cut|intersect; remove_tools?: bool

Coil

Command group: SOLID › CREATE

Make a coil: a compression spring, an extension spring body, a helical wire form, or a square-section helix. You set the diameter, the number of turns, the pitch and the wire size.

Before you start

  • You don’t need a sketch or a body. A coil can start a new design, standing on the origin and rising along Z.
  • Section position decides what Diameter measures. Inside puts the wire inside the diameter, so Diameter is the outside diameter (OD). Outside puts the wire outside it, so Diameter is the inside diameter (ID). Center puts the diameter through the middle of the wire, the mean diameter.
  • The coil’s length is Revolutions × Pitch.
  • The coil is right-handed unless you turn on Clockwise.

Options

Choice in the dialogMeaningExample or reason to choose it
ProfileA closed sketch profile to use as the section instead of a circle or square. With a profile picked, Diameter and Section size are hidden; the sketch’s place sets them.A special wire shape. Leave it empty for round or square wire.
DiameterThe coil diameter. What it measures depends on Section position. It starts at 40 mm.0.750 in OD, with Section position on Inside.
RevolutionsHow many turns. It starts at 4.8 coils.
PitchHow far the coil rises in one turn, center to center of the wire. It starts at 8 mm.0.250 in.
Section sizeThe wire size: its diameter for Circular, its width for Square. It starts at 3 mm.0.062 in wire.
SectionCircular for round wire, Square for square wire.Circular for most springs.
Section positionInside, Center or Outside: where the wire sits on the Diameter. It starts at Center.Inside when the print gives the OD; Outside when it gives the ID.
Start angleWhere the first turn starts around the axis. 0 deg starts toward +X.Turn it to line the wire end up with a feature.
ClockwiseTurn the coil the other way, making it left-handed. Off by default.Only when the print calls for a left-hand spring.
OperationIt starts at New Body. New Body makes a separate body. Join adds it to a body it touches. Cut takes it out. Intersect keeps only the material inside both.New Body for a spring.

Try it: model a compression spring

  1. In a new design, click Coil.
  2. Set Section position to Inside and Diameter to 0.75 in, so 0.75 in is the outside diameter.
  3. Set Section size to 0.062 in, Revolutions to 8 and Pitch to 0.25 in. Leave Section on Circular.
  4. Click OK. The spring is 0.750 in OD and 2.0 in long (8 × 0.25 in), right-handed.

Tips and common mistakes

  • Do set Section position to match the print: Inside for an OD, Outside for an ID, Center for a mean diameter. Leaving it on Center with an OD makes the spring one wire size too big.
  • Do remember Pitch is per turn. For a free length and coil count, Pitch = free length ÷ coils.
  • Don’t expect closed or ground ends. The coil has the same pitch from end to end, so it models the spring’s body, not a finished spring’s ends.
  • Do use Thread for a screw thread. It uses the standard thread forms and sizes.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.062 in enters 1.5748 mm.

See also

Thread cuts standard threads. Sweep runs any section along a path.

ParameterTypeRequiredDescription
diameterYesoptional when axis is a circular edge, a cylinder face or a flat end face with a round outline: it then follows that circle
height_measurecenter_line|overallNowhat height measures: the helix's centre line, the default, or end to end; overall with square ends needs pitch
section_sizeYesa circle's diameter, a square's or an equilateral triangle's side
sectioncircular|square|triangleNoa triangle points at the axis
section_positioninside|center|outsideNo
base[x,y,z]Nonumbers in mm or length expressions; default: the origin
axisX|Y|Z|[x,y,z]|revolve axis reference|{face: [x,y,z]} on a flat end faceNothe coil starts at the face's centre, or its round outline's, and grows along its outward normal; reversed grows into the body
start_angleNo
clockwiseboolNo
reversedboolNogrow against the axis; the hand set by clockwise is kept
end_cutaxial|squareNothe wire's ends in a plane through the axis, the default, or square to the wire
sketchNoa sketch; its plane is the section plane, so its placement sets the radius and start phase
profilesNodefault: all; one closed profile without holes
operationNo
targetsNo
nameNo
body_nameNo
Automation details

Command ID: solid.coil

Parameters:

diameter (optional when axis is a circular edge, a cylinder face or a flat end face with a round outline: it then follows that circle); two of revolutions (or turns), height, pitch; height_measure?: center_line|overall (what height measures: the helix's centre line, the default, or end to end; overall with square ends needs pitch); section_size (a circle's diameter, a square's or an equilateral triangle's side); section?: circular|square|triangle (a triangle points at the axis); section_position?: inside|center|outside; base?: [x,y,z] (numbers in mm or length expressions; default: the origin); axis?: X|Y|Z|[x,y,z]|revolve axis reference|{face: [x,y,z]} on a flat end face (the coil starts at the face's centre, or its round outline's, and grows along its outward normal; reversed grows into the body) (default Z; use {type: sketch_axis, axis: x|y} for the profile sketch's axis; picked references supply their base and stay linked); start_angle?; clockwise?: bool; reversed?: bool (grow against the axis; the hand set by clockwise is kept); end_cut?: axial|square (the wire's ends in a plane through the axis, the default, or square to the wire); sketch? (a sketch; its plane is the section plane, so its placement sets the radius and start phase), profiles? (default: all; one closed profile without holes); operation?, targets?, name?, body_name?

Rib

Command group: SOLID › CREATE

Add a thin wall along an open sketch line, filled out to the faces of the part: a gusset in the corner of an L-bracket, or a stiffening rib on a wall. You draw where the rib’s edge goes, and the rib fills from there to the part.

Before you start

  • You need a body and a sketch with an open line (or chain of lines) for the rib’s outer edge. The line doesn’t have to touch the part, but the rib must have faces to fill to.
  • For a gusset, sketch on a plane through the middle of the bracket, and draw the line across the corner from one leg to the other.
  • With Direction on In plane, the rib fills from the line toward the part inside the sketch plane, and Thickness is across that plane.

Options

Choice in the dialogMeaningExample or reason to choose it
CurvesThe open sketch line or lines for the rib’s edge.A diagonal line across the inside corner of an L-bracket.
DirectionIn plane: the rib fills from the line within the sketch plane, Thickness across the plane. Normal: the rib grows along the sketch’s normal instead, Thickness across the line.In plane for a gusset.
ThicknessHow thick the rib is. It starts at 2 in the design’s unit.0.25 in for a gusset on a 0.25 in bracket.
DepthHow far the rib fills from the line. Empty means to the next face of the part.Leave it empty for a gusset.
FlipFill toward the other side of the line.Turn it on if the preview fills away from the corner.
Extend ends (In plane only)Off: the rib ends where the line ends. On: the line’s open ends run on to the next face of the part, so the rib can reach the wall even when the line stops short of it. A thin wall can be skipped, so check the preview. It isn’t shown when Direction is Normal.Turn it on for a rib that meets a curved wall, where it’s hard to end the line exactly on the face.

Try it: put a gusset in an L-bracket

  1. Make an L-bracket: on the XZ plane, sketch an L with 3 in legs and a 0.25 in thickness, then extrude it 2 in symmetric so the XZ plane runs through its middle.
  2. Start a sketch on the XZ plane. Draw a line across the inside corner, from 2 in up the vertical leg to 2 in out along the horizontal leg. Finish the sketch.
  3. Click Rib. Click Curves and pick the line. Leave Direction on In plane and set Thickness to 0.25 in.
  4. Check the preview fills toward the corner; if not, turn on Flip. Click OK. A 0.25 in gusset fills the corner, centered on the bracket.

Tips and common mistakes

  • Do sketch an In plane rib on the plane where you want its middle. Half the thickness goes each way from that plane, so a rib sketched on an outside face hangs half off the part. With Normal, the rib grows out of the sketch plane instead, centered on the line: draw the line where the rib’s middle goes, on a plane at the rib’s edge.
  • Do weigh Rib against a plain extrude. For one gusset on a machined part, a triangle sketched and extruded Symmetric works just as well. Rib pays off when the walls may change size (it fills to the new faces), when the faces it meets are curved or sloped, or when you need many ribs (Web).
  • Do turn on Extend ends when the line can’t end exactly on the wall, such as a curved wall. Sketch the line a little short and the rib can run on to the face. A thin wall can be skipped, so check the preview.
  • Do keep a machined rib’s thickness at least as big as the end mill that has to cut around it, and think about how the pocket beside it will be cut. A thin rib between deep pockets chatters.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.25 in enters 6.35 mm.
  • Don’t close the sketch line into a loop. A rib needs an open line; use Extrude for a closed shape.

See also

Web makes a grid of ribs from several lines at once. Fillet rounds the rib’s edges.

ParameterTypeRequiredDescription
sketch[open curve ids, in order]Yes
curves[open curve ids, in order]Yes
thicknessYesacross the sketch plane, or across the curves when normal
depthNodefault: to the next face
flipboolNofill to the other side
directionin_plane|normalNogrow across the sketch plane, the default, or along its normal
extendboolNorun the curves' open ends on to the body; default false
Automation details

Command ID: solid.rib

Parameters:

sketch, curves: [open curve ids, in order]; thickness (across the sketch plane, or across the curves when normal); depth? (default: to the next face); flip?: bool (fill to the other side); direction?: in_plane|normal (grow across the sketch plane, the default, or along its normal); extend?: bool (run the curves' open ends on to the body; default false)

Web

Command group: SOLID › CREATE

Add a grid of thin walls from several open sketch lines at once, each filled out to the faces of the part: the ribs of a waffle or isogrid pocket, dividers in a tray, or supports inside a housing. Each line becomes its own wall.

Before you start

  • You need a body and a sketch of open lines, one for each wall. Lines can cross; each one makes its own wall.
  • For walls standing in a pocket or tray, sketch the lines on the top face or a plane above the pocket and set Direction to Normal. The walls then grow down from the sketch to the floor, Thickness across each line.
  • With Direction on In plane, each wall fills inside the sketch plane instead, as Rib does, with half the Thickness each side of the plane.

Options

Choice in the dialogMeaningExample or reason to choose it
CurvesThe open sketch lines, one wall per line.Two crossing lines over a pocket.
DirectionIn plane: each wall fills within the sketch plane, Thickness across the plane. Normal: each wall grows along the sketch’s normal, Thickness across its line.Normal for walls standing in a pocket.
ThicknessHow thick each wall is. It starts at 2 mm.0.080 in for the ribs of a lightened pocket.
DepthHow far each wall fills from the sketch. Empty means to the next face of the part.Leave it empty to run the walls down to the floor.
FlipFill toward the other side of the sketch.Turn it on if the preview grows away from the part.
Extend ends (In plane only)Off: each wall ends where its line ends. On: each line’s open ends run on to the next face of the part, so a wall can reach the side even when its line stops short of it. A thin side can be skipped, so check the preview. It isn’t shown when Direction is Normal.Turn it on for In plane walls that meet a curved side.

Try it: divide a tray into four

  1. Make a 4 in × 3 in × 1 in box and use Shell on its top face with a 0.1 in wall, so it’s an open tray.
  2. Start a sketch on the tray’s top rim plane. Draw one line across the middle lengthwise and one across the middle widthwise, each ending at the inside walls. Finish the sketch.
  3. Click Web. Click Curves and pick both lines. Set Direction to Normal and Thickness to 0.1 in. Leave Depth empty.
  4. Check the preview runs down into the tray; if not, turn on Flip. Click OK. The tray now has four pockets.

Tips and common mistakes

  • Do make the walls between machined pockets at least as thick as you can hold without chatter, and check the end mill can reach the corners between them. The corner radius left is the cutter’s radius.
  • Do use one Web for the whole grid. It’s one feature to change when the rib layout changes.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.1 in enters 2.54 mm.
  • Don’t close the lines into loops. Web needs open lines; for a pocket outline use Extrude with Cut.

See also

Rib makes a single wall the same way. Shell hollows the part first.

ParameterTypeRequiredDescription
sketch[open curve ids]Yes
curves[open curve ids]Yesone wall each
thicknessYes
depthNodefault: to the next face
flipboolNo
directionin_plane|normalNo
extendboolNodefault false
Automation details

Command ID: solid.web

Parameters:

sketch, curves: [open curve ids] (one wall each); thickness; depth? (default: to the next face); flip?: bool; direction?: in_plane|normal; extend?: bool (default false)

Emboss

Command group: SOLID › CREATE

Raise sketch text or a logo out of a face, or sink it in: an engraved part number, a serial or rev letter, a logo, or raised lettering on a casting pattern. It works on flat faces, and text and outlines wrap around a cylinder.

Before you start

  • You need a body and a sketch with closed profiles to emboss, usually text made with the sketch’s Text tool. Sketch it on or parallel to the face it goes on.
  • Deboss sinks the profiles into the face: that’s engraving. Emboss raises them out of it.
  • To wrap text or an outline around a cylinder or a tube, sketch it on a plane tangent to the wall. It wraps when the body is a whole cylinder or tube with flat ends; a cylinder face of another shape, such as a groove in a block, is refused. Pick the cylinder’s wall as the Target Face to say which one when there is more than one.

Options

Choice in the dialogMeaningExample or reason to choose it
ProfilesThe sketch profiles to emboss: the letters or the logo outline.The text “PN 1234-A”.
Target Face (optional)The face the profiles go on. Leave it empty to use the face under the sketch.The outside of a shaft, to wrap a rectangular label area around it.
DepthHow deep the profiles sink in, or how high they stand out. It starts at 1 in the design’s unit.0.005 in to 0.010 in for engraving.
TypeEmboss raises the profiles out of the face. Deboss sinks them into it. It starts at Emboss.Deboss for an engraved part number.
Offset XMoves the profiles along the sketch’s X before they go on the face. The sketch itself stays as it is. Empty means no move. On a cylinder it slides them around the wall when the sketch’s X runs around it.0.5 in to nudge a part number away from a hole.
Offset YThe same along the sketch’s Y. On a cylinder it slides them along the axis when the sketch’s Y runs along it.-0.25 in to drop a label lower on the face.
AngleTurns the profiles counter-clockwise, as you look at the sketch, about the middle of the box around them. The offsets keep to the sketch’s X and Y. Empty means no turn.90 deg to run a label up the face instead of across it.

Try it: engrave a part number

  1. Make a 3 in × 2 in × 0.75 in block.
  2. Start a sketch on the top face. Start the sketch’s Text tool: it’s in the sketch ribbon’s Create dropdown, between Centerline and Divide Curve, or press S and type Text. Write “PN 1234-A”, 0.25 in high, and finish the sketch.
  3. Click Emboss. Click Profiles and pick the letters. Each letter shape counts as its own profile, so Profiles shows several selected.
  4. Set Type to Deboss and Depth to 0.010 in. Click OK. The part number is engraved 0.010 in deep into the top face.

Tips and common mistakes

  • Do use Deboss for markings on a machined part. Engraving takes one pass with an engraving tool; raised lettering means milling away everything around it.
  • Do keep engraving shallow: 0.005 in to 0.010 in reads clearly and doesn’t take a small engraving tool too deep.
  • Do pick a text height and font your engraving tool can cut. Strokes thinner than the tool’s tip get lost.
  • Do change the Depth from its default. It starts at 1 in the design’s unit, far too deep for a marking.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.010 in enters 0.254 mm.
  • Do use Offset X, Offset Y and Angle to put the profiles where you want them on the face, instead of redrawing the sketch. They take a parameter name too, so one sketch can mark several places or follow a dimension.
  • Do drag the profiles into place when that is quicker than typing. Turn on Preferences › Tools › Placement handles, then drag the dashed cross on the face to set Offset X and Offset Y, and the grip of the ring around it to set Angle. Hold Alt or Ctrl to drag without steps. A Target Face that is neither flat nor a cylinder’s has no handles: place such an Emboss with the three fields.
  • Don’t move the profiles off the face. With a Target Face picked, the whole of each profile must still lie on it, or the Emboss is refused. On a flat face with no Target Face picked, this isn’t checked: a profile moved past the edge is still built, and a raised one hangs past the part.

See also

Extrude cuts or raises a profile to a set distance. Hole places drilled and tapped holes.

ParameterTypeRequiredDescription
sketchYes
profilesNo
depthYes
modeemboss|debossNo
targetsNo
offset_xlength exprNo
offset_ylength exprNoa shift of the profiles along the sketch's x and y before they are laid on the face; the sketch is not changed
angleangle exprNoa turn of the profiles, counter-clockwise in the sketch, about the middle of their bounds; the offsets are not turned with them
Automation details

Command ID: solid.emboss

Parameters:

sketch, profiles?; depth; mode?: emboss|deboss; targets?; face?: world point [x,y,z] on the face to emboss: planar, a cylinder wall (on a partial outside wall, a profile running past the wall's edge carries on onto the face there when that face is a rectangle tangent to the wall; the profile must lie within the wall and those faces) or another curved face (inferred when exactly one supported tangent cylinder matches the selected profiles); a point on a ring of faces tangent to each other (a side of flats and rounds) stands for the ring: when the profiles lie on another face of it, that face is taken; offset_x?, offset_y?: length expr (a shift of the profiles along the sketch's x and y before they are laid on the face; the sketch is not changed); angle?: angle expr (a turn of the profiles, counter-clockwise in the sketch, about the middle of their bounds; the offsets are not turned with them)

Dome

Command group: SOLID › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
heightexprYesalong the face's outward normal
shapeelliptical|sphericalNodefault elliptical: a quarter ellipse, on a circle a half ellipsoid; spherical: the sphere through the rim and the apex, on a circle
reverseboolNocut into the body: not supported yet, refused
bodyNothe face's body when the name alone does not say
Automation details

Command ID: solid.dome

Parameters:

face: [x,y,z] on a planar face, or a face name from model.faces; height: expr (along the face's outward normal); shape?: elliptical|spherical (default elliptical: a quarter ellipse, on a circle a half ellipsoid; spherical: the sphere through the rim and the apex, on a circle); reverse?: bool (cut into the body: not supported yet, refused); body? (the face's body when the name alone does not say)

Joint Origin

Command group: SOLID › CREATE

Read the components and joints guide.

ParameterTypeRequiredDescription
nameNo
export_frameboolNorobot exports write it as a frame of its own
occurrenceid|nameNodefault: from the pick, or the named face's or sketch's component
path[occurrence ids from the root]Nothe placement picked on, ending at the occurrence: a part in a sub-assembly placed more than once is then on that copy; default: the occurrence's first placement, or with no occurrence the placement nearest the pick
face[x,y,z] | "<name>"Yescentre of a planar face, or a round end of a round face
circle[x,y,z] | "<name>"Yescentre of a round end: a point on its wall or rim, the end's centre, or the round face's name as model.faces lists it
edge[x,y,z]Yesa point on an edge of a planar face: the edge's middle, z out of the face, y into it; on?: [x,y,z] a point on the face (default: the larger planar face beside the edge); corner?: [x,y,z] near one end: the corner there, x and y along its two edges into the face; found again by name, so it follows the face as it changes size; z?: [x,y,z] the frame's z instead of the face's normal, along the edge when it runs that way, x chosen from z: an edge or corner picked as it is, kept as a point where it can't be found by name
faces[[x,y,z],[x,y,z]]Yestwo parallel planar faces of this part, one point on each: the plane midway between them, kept by the faces' names; optional snap?: a joint origin reference on the same occurrence whose resolved point is projected onto that midplane, e.g. a hole circle, face, edge, sketch point or named origin
point[x,y,z]Yes
z[x,y,z]No
sketchid|nameYes
point"<point id or curve.center>"Yes
curve"<circle/arc/ellipse id>"Yesa solved sketch point, z along the sketch's normal, re-resolved on every solve so it follows parameter changes
plane"XY"|"XZ"|"YZ"|"o:<ids>/origin/<item>"|"<name>"Yes
axis"X"|"Y"|"Z"|"o:<ids>/origin/<item>"|"<name>"Yes
bodythe named face's bodyNo
end"<name>"Noa circle's end: the face across its rim there; default the end nearer the pick
Automation details

Command ID: joint.origin

Parameters:

name?, export_frame?: bool (robot exports write it as a frame of its own), occurrence?: id|name (default: from the pick, or the named face's or sketch's component), path?: [occurrence ids from the root] (the placement picked on, ending at the occurrence: a part in a sub-assembly placed more than once is then on that copy; default: the occurrence's first placement, or with no occurrence the placement nearest the pick), face: [x,y,z] | "<name>" (centre of a planar face, or a round end of a round face) | circle: [x,y,z] | "<name>" (centre of a round end: a point on its wall or rim, the end's centre, or the round face's name as model.faces lists it) | edge: [x,y,z] (a point on an edge of a planar face: the edge's middle, z out of the face, y into it; on?: [x,y,z] a point on the face (default: the larger planar face beside the edge); corner?: [x,y,z] near one end: the corner there, x and y along its two edges into the face; found again by name, so it follows the face as it changes size; z?: [x,y,z] the frame's z instead of the face's normal, along the edge when it runs that way, x chosen from z: an edge or corner picked as it is, kept as a point where it can't be found by name) | faces: [[x,y,z],[x,y,z]] (two parallel planar faces of this part, one point on each: the plane midway between them, kept by the faces' names; optional snap?: a joint origin reference on the same occurrence whose resolved point is projected onto that midplane, e.g. a hole circle, face, edge, sketch point or named origin) | point: [x,y,z], z?: [x,y,z] | sketch: id|name, point: "<point id or curve.center>" | curve: "<circle/arc/ellipse id>" (a solved sketch point, z along the sketch's normal, re-resolved on every solve so it follows parameter changes) | plane: "XY"|"XZ"|"YZ"|"o:<ids>/origin/<item>"|"<name>" | axis: "X"|"Y"|"Z"|"o:<ids>/origin/<item>"|"<name>"; a circle's z?: [x,y,z] (a round edge's centre with the way out of it: its end by name when that is the frame it shows, else a point there); body?: the named face's body; end?: "<name>" (a circle's end: the face across its rim there; default the end nearer the pick); x?: [x,y,z] (a direction, world) | "<face name>" | {face: [x,y,z]} (the frame's x: a direction, a plane's normal, or the way to another hole's axis; keeps a round origin's turn; a point's x is a direction, laid square to its z, default: chosen from z alone). Faces and sketch points are kept by identity: the origin follows its face, circle or sketch point when the design changes

Shaft Spline

Command group: SOLID › CREATE

Cut a spline into a round shaft or a bore, or make a new splined shaft and the hub that fits it. The spline is one feature in the History: you can reopen it and change the tooth count, the sizes or the fit later.

Before you start

  • For a new part, pick nothing. The shaft or hub stands on the origin along the Z axis, from 0 up to Length.
  • To cut into a shaft you already have, pick the outside of its round face. To cut the teeth of a hub, pick the wall of its bore. Pick both to cut a shaft and a hub that fit each other.
  • A round face has two ends, so each one you pick needs a second pick: the face the teeth start from. That is the part’s flat end, a shoulder or a chamfer.
  • Length is measured along the picked round face from the end the start face is at. It must not be longer than the face.
  • Only the outside of a round shaft or the wall of a round bore can be picked.

Options

The numbers that size the teeth are always at the top of the dialog. Everything else is in groups that open and close when you click their titles: Tooth form, Fit, Tip corners, Chamfers, Groove end, Master spline, Hub and As made. Tooth form and Fit start open; Tip corners, Chamfers, Groove end and Master spline start closed.

Choice in the dialogMeaningExample or reason to choose it
Shaft, Bore (optional)The outside of a round shaft to cut the spline into, and a round hole to cut the hub’s teeth into. With nothing picked, a new part is made.Pick the shaft end you turned on a lathe, or the hub’s bore.
Shaft start, Bore start (with that part picked)The face the teeth start from: the part’s flat end, a shoulder, a step, a chamfer or a round. The teeth start at the end of the round face nearest it and run along the round face for the Length. OK waits until it is picked.The shoulder the hub is pushed against, or the end of the shaft.
Fixed diameter (with a shaft picked)On: the spline keeps the shaft’s own diameter and works its tooth size out from it. Off: the size you type stands and the shaft follows it, so more teeth of one size make a larger shaft.On for a shaft you have already sized. Off to design the spline first.
TypeInvolute, Straight-sided or Serration.Involute for curved flanks; Straight-sided for teeth with two parallel flanks; Serration for teeth whose flanks meet at the Flank angle.
Make (new part only)Shaft, Hub, or Shaft and hub.Shaft and hub to get a matching pair in one step.
TeethHow many teeth. Involute takes 3 to 2000; the other types take 2 to 2000.16 teeth.
LengthHow far the teeth run along the shaft or bore.30 mm.
Module, Pressure angle (Involute)Tooth size is the module, the pitch diameter divided by the tooth count. The pressure angle is the slope of the flanks at the pitch circle.Module 2 with the starting 30 degree pressure angle.
Major diameter, Minor diameter, Tooth width or Flank angle (Straight-sided, Serration)The diameters over the tips and at the bottom of the spaces, the width of a straight-sided tooth, and the angle between a serration’s flanks.Set the two diameters so the teeth leave a root and a tip; the drawing says if they do not.
Tooth formInvolute: Addendum, Dedendum, Root fillet, Profile shift, all in modules, and Thinning, a length taken off each tooth on the pitch circle. Straight-sided and Serration: Root round, the radius where the flanks meet the minor circle.Leave the starting values for standard teeth.
FitThe clearances between the shaft and the hub. Involute: Side clearance, Hub addendum, Tip clearance, Hub root round, Form clearance. Other types: Side clearance, Major clearance, Minor clearance, Hub root round, Hub tip round.More side clearance for a hub that slides, less for a snug one.
Tip corners (Straight-sided, Serration)Plain, Chamfered or Rounded corners on the tips, and their Size.Chamfered tips go into the hub more easily.
Chamfers: End chamfer (shaft)A chamfer on the ends of the shaft’s teeth. End chamfer is how far it runs along the shaft; Type says how far it runs in from the major diameter: Equal Distance, the same, at 45 degrees; Two Distances, Distance 2; Distance and Angle, the Angle to the shaft’s surface. 0 for none.1 mm at 45 degrees, so the shaft starts into the hub. Distance and Angle when the drawing gives one, like 1 mm × 30°.
Chamfers: Entry chamfer (hub)A chamfer where the teeth run out of the bore. Entry chamfer is how far it runs into the bore; its Type, Distance 2 or Angle say how far it runs out from the tops of the hub’s teeth, as for the End chamfer. 0 for none.1 mm at 45 degrees, to guide the shaft in.
Groove end: Round the ends (shaft picked)Each tooth space ends in the curve a cutter of the Cutter diameter leaves, which runs on past the Length until it leaves the shaft’s surface. Off: the spaces end square. Teeth that run the whole length run right through.Match the cutter that will cut the spaces, for a spline that stops short of the end.
Master splineTick Cut a master spline, then choose under On the shaft: Tooth left out, or Wide tooth (one space filled), so the hub goes on one way only. Angle puts it, counter-clockwise from angle 0, as the drawing shows it: 0 is right, 90 is top.A shaft that must be fitted in one position.
Hub: Outside diameter (new hub)The outside of the hub’s body. It must leave a rim around the spaces.40 mm.
As madeRead-outs of the result: Positions the hub fits in, Turning play, Play on each side, Gap at the tips, Gap at the roots, and for involute teeth Gap at the fillet.Check the play before you accept.

The dialog draws the teeth as you change them. Show switches the drawing between the Whole spline, a close-up of the Teeth, and, when a master spline is on, the Master spline. When the numbers make no spline, the line under the drawing says why and the row to change is marked.

Try it: a splined shaft and its hub

  1. Click Shaft Spline in the Create menu of Model, and leave both picks empty.
  2. Set Type to Involute and Make to Shaft and hub.
  3. Set Teeth to 16, Length to 30 mm and Outside diameter, under Hub, to 40 mm.
  4. Look at the drawing and the As made rows. Positions the hub fits in shows how many ways the hub goes on.
  5. Open Master spline, tick Cut a master spline, choose Tooth left out under On the shaft, and watch the drawing under Show > Master spline.
  6. Open Chamfers and set End chamfer and Entry chamfer to 1 mm. To make the shaft’s chamfer 30 degrees, set its Type to Distance and Angle and its Angle to 30.
  7. Click OK. One Shaft Spline feature appears in the History, with a splined shaft and a hub.

Tips and common mistakes

  • Do pick the start face after the round face. Length counts from the end of the round face that the start face is at.
  • Don’t look for a way to start the teeth partway along a plain round face. They start at one of its ends; turn a step or a groove where they must begin.
  • Do tick Fixed diameter when the shaft already has the size it must keep. Otherwise the shaft is turned down or built up to the spline’s size.
  • Do use the Shaft Spline chamfers rather than a Chamfer on the shaft first: they follow the size and tooth count when you change them, and take the same three types as the Chamfer tool. A part you chamfered or rounded with the Chamfer or Fillet tool first is still cut through, and the teeth run out through it.
  • Do reopen the feature in the History to change the teeth. Nothing else needs to be redone.
  • Don’t expect a Make choice when you pick a face. What is cut follows the picks.
  • Don’t set a Length longer than the picked face. The spline is refused.
  • Don’t type a tooth count with decimals. It must be a whole number.

See also

Thread puts a helical thread on a round face. Hole drills the bore a hub is cut in. Chamfer breaks an edge by hand. Circular Pattern repeats one feature around an axis.

ParameterTypeRequiredDescription
bore_face[x,y,z] a point on a bore to cut the hub's spline intoNowith a face picked, make is not needed and hub_diameter is refused
shaft_start[x,y,z] a point on the face the teeth start fromNo
bore_start[x,y,z] a point on the face the teeth start fromNothe part's end, a shoulder, a chamfer
typeinvolute|straight|serrationYes
teethYes3..2000 involute, 2..2000 otherwise
lengthat least 0.001 mmYes
makeshaft|hub|bothNodefault shaft; with no face picked
hub_diameterthe outside of a new hubNorequired with a new hub, refused otherwise
involutemoduleYes
pressure_angleNodeg, default 30
addendumNo
dedendumNo
root_filletNo
profile_shiftNo
hub_addendumNomodules; defaults 0.5, 0.85, 0.4, 0, 0.5
thinningNodefault 0
side_clearanceYesboth sides on the pitch circle
tip_clearanceYes
form_clearanceNodefault 0
hub_root_roundNodefault 0
master_splinenone|tooth_out|wide_toothNodefault none
cutter_diametereach tooth space cut into a picked shaft ends in the cutter's curveNowithout it the spaces end square
nameNo
Automation details

Command ID: shaft_spline.insert

Parameters:

Adds one Shaft Spline feature. Each number is a number or an expression (lengths in the design's unit, angles in degrees). shaft_face?: [x,y,z] a point on the outside of a shaft to cut the spline into; bore_face?: [x,y,z] a point on a bore to cut the hub's spline into (with a face picked, make is not needed and hub_diameter is refused); shaft_start?, bore_start?: [x,y,z] a point on the face the teeth start from (the part's end, a shoulder, a chamfer): they start at the end of the round face nearest it and run into the face for length (left out: the end nearest shaft_face or bore_face; each only with its face); type: involute|straight|serration; teeth (3..2000 involute, 2..2000 otherwise); length: at least 0.001 mm; make?: shaft|hub|both (default shaft; with no face picked); hub_diameter?: the outside of a new hub (required with a new hub, refused otherwise); with shaft_face, the size may be left out (module for involute, major_diameter otherwise): the spline then takes the shaft's own diameter, and with the size given the shaft is turned down or built up to it; involute: module, pressure_angle? (deg, default 30), addendum?, dedendum?, root_fillet?, profile_shift?, hub_addendum? (modules; defaults 0.5, 0.85, 0.4, 0, 0.5), thinning? (default 0), side_clearance (both sides on the pitch circle), tip_clearance, form_clearance? (default 0), hub_root_round? (default 0); straight and serration: major_diameter, minor_diameter, tooth_width (straight) | flank_angle? (serration, deg, default 90), root_round? (default 0), tip_corner?: plain|chamfered|rounded (default plain) with tip_size, side_clearance (each side, square to the flanks), major_clearance, minor_clearance, hub_root_round?, hub_tip_round? (default 0); master_spline?: none|tooth_out|wide_tooth (default none) with master_angle? (deg from angle 0, -360..360, default 0, refused without a master spline; the whole spline turns to put the master spline exactly there); cutter_diameter?: each tooth space cut into a picked shaft ends in the cutter's curve (without it the spaces end square); end_chamfer?: a chamfer on the ends of the shaft's teeth, this far along the shaft (alone: at 45 degrees, as far in from the major diameter), with end_chamfer_distance2? (how far in from the major diameter) or end_chamfer_angle? (deg to the shaft's surface, above 0 and below 90), not both; entry_chamfer?, entry_chamfer_distance2?, entry_chamfer_angle?: the same where the teeth run out of the hub's bore, out from the tops of the hub's teeth (on a picked face: on the end the teeth start from, and on the far end where the teeth run the whole face; on a new part: on both ends; each cut by the spline, so it is made again when the size or the teeth change; default none; a second distance or an angle only with its chamfer); name? → the feature, the bodies, the diameters, clearances, turning play (deg) and positions

SOLID › INSERT

Insert Point Cloud

Command group: SOLID › INSERT

Read the solid features guide.

Automation details

Command ID: pointcloud.insert

Parameters:

path: .ply, .pcd, .e57, .xyz, .pts or .asc file (its points join the design as a point cloud: drawn as points, never a body; a PLY's red, green and blue, a PCD's packed rgb or an E57's colours are its colours, the other properties of a PLY or PCD and an E57's intensity can colour and filter it; every scan of an E57 file is read, each moved by its pose; a PLY's edge and face elements become segments and triangles, a segment with width and height properties drawn as a bead) → cloud, name, points, segments, triangles, source_points, bounds, warnings; name?; units?: mm|cm|m|in|ft (the file's length unit, default mm, m for an E57 file); up?: z|y (the file's up axis, default z; y turns the points a quarter turn about X so a scan written with Y up stands on the design's Z); max_points?: most points kept (default 5000000, at most 20000000; a larger file is thinned evenly); center?: bool (move the cloud so the middle of its base sits at the origin); point_size?: pixels (0.5…16, default 2); color_by?: file|single|height or a property's name (the file's colours, the default; one colour; a ramp by height, blue low to red high; or by any property of the file, a ramp over its values or a palette for whole numbers); color?: [r, g, b] 0…1 (the single colour; given alone it sets color_by single, null sets color_by file); color_range?: [low, high] the ramp runs between (design Z in mm by height), or null for the automatic range (by height all but the lowest and highest 2 % of the points; by a property the values it takes over what the filters keep); height_range?: the same as color_range; filters?: [{property, range: [low, high]} or {property, values: [whole numbers]} for a property with named values], or null (only what every filter keeps is shown)

Insert Fastener

Command group: SOLID › INSERT

Read the solid features guide.

Automation details

Command ID: parts.fastener

Parameters:

the Insert Part dialog's command (same as parts.insert): family, size, length?, at?|point?+direction? (from the shank's tip toward the head), flip?, name?, material?, auto_length? (length from the hole's stack), min_engagement_d?, washer_thickness_mm?, through_bolt?

Insert STEP

Command group: SOLID › INSERT

Read the import and export guide.

ParameterTypeRequiredDescription
split_to_filesboolNodefault false; a STEP `.step`/`.stp` file: true writes each leaf product once as a `.sc` and each assembly node as a `.sc` that links its children, under `split_folder`, then insert the top assembly; mutually exclusive with `flatten` → split_root, split_files
split_folderfolder pathNowith `split_to_files`; default: the STEP file's directory
overwriteboolNowith `split_to_files`; default false: refuse when a target `.sc` already exists
nameNothe feature's and the component's
upz|yNodefault z: the file's axes are kept; y: the file has Y up, so the import's component is turned a quarter turn about X, Y becoming Z → stand_up: its occurrence
namesauto|solid|product|instanceNodefault auto: keep meaningful solid names, replace placeholders with the nearest named product, else instance; solid: the solid's own name; product: the part's name; instance: the occurrence's name, else the product's
historyfeatures|solids for a FreeCAD fileNodefault features: its sketches and the Pad, Pocket, Revolution, Groove, Fillet, Chamfer and primitive features that use them are rebuilt as features in the new component, when every one can be and they build what the file holds → features_added, history: "features"; else, or with solids, the file's solids come in as an Import feature, and a warning says why the history was not rebuilt; with features, the file's sketches then come in beside the solids as editable sketches → features_added, history: "sketches"
defaultevery bodyYes
matrix[12 or 16 numbers]Nowhere the new component's occurrence sits in the active component, after `up`: a rigid row-major 3x4 rotation-and-translation or 4x4 matrix, flat or as rows, as occurrence.move takes it, its translation column (entries 4, 8 and 12) numbers or length expressions: one that names a parameter is kept, and the import follows the parameter when it changes (a grounded one stays); a scale, shear or mirror is refused before the file is read
Automation details

Command ID: file.insert_step

Parameters:

path: STEP, IGES, FreeCAD .FCStd or Rhino .3dm file (its bodies join the design as an Import base feature in a new component named after the file, placed in the active component; an assembly's products become nested components, a repeated part one component with an occurrence per placement, all held as one rigid group until component.unlock → component, component_name, occurrence, subcomponents?, rigid_members?: the occurrences its rigid group holds, group?: the folder, surface_bodies?: [{name, reason?}] the bodies that came in as open surfaces because no closed solid could be made of them (no volume, so clearance and interference checks cannot see them; the reason says why, and the warnings name any face left out; omitted when every body is a solid); folder?: bool (default false; true: an assembly's import, which has subcomponents, goes into a new history folder named `Group #N`); flatten?: bool (default false; true: every solid comes in as a body of the import's own component, with no subcomponents, occurrences, joints or rigid group: a part placed several times is one body per placement where the file places it, and, as no component says which part a body belongs to, its name is prefixed with the outermost named part holding it (`R63: Terminal`), a placeholder name (empty, a bare number, or an exporter's `… STEP translator …`) giving way to its nearest named product's); refused with `split_to_files`); split_to_files?: bool (default false; a STEP `.step`/`.stp` file: true writes each leaf product once as a `.sc` and each assembly node as a `.sc` that links its children, under `split_folder`, then insert the top assembly; mutually exclusive with `flatten` → split_root, split_files); split_folder?: folder path (with `split_to_files`; default: the STEP file's directory); overwrite?: bool (with `split_to_files`; default false: refuse when a target `.sc` already exists); name? (the feature's and the component's); up?: z|y (default z: the file's axes are kept; y: the file has Y up, so the import's component is turned a quarter turn about X, Y becoming Z → stand_up: its occurrence); names?: auto|solid|product|instance (default auto: keep meaningful solid names, replace placeholders with the nearest named product, else instance; solid: the solid's own name; product: the part's name; instance: the occurrence's name, else the product's); history?: features|solids for a FreeCAD file (default features: its sketches and the Pad, Pocket, Revolution, Groove, Fillet, Chamfer and primitive features that use them are rebuilt as features in the new component, when every one can be and they build what the file holds → features_added, history: "features"; else, or with solids, the file's solids come in as an Import feature, and a warning says why the history was not rebuilt; with features, the file's sketches then come in beside the solids as editable sketches → features_added, history: "sketches"); reader?: solidcraft|cadmpeg for a .step/.stp, .igs/.iges, FreeCAD or Rhino file (default solidcraft: SolidCraft's own STEP or IGES reader, which keeps the STEP text (an IGES file restated as STEP), a FreeCAD or Rhino file's solids restated as STEP by cadmpeg's STEP writer first; cadmpeg: cadmpeg's model read straight into B-rep records, with no STEP text in between, a STEP or IGES file decoded by cadmpeg's STEP or IGES decoder, to compare the two; `flatten` works with either); body_index?: zero-based STEP body occurrence in the reader's order, counting a body that cannot be read and each placement of a repeated part (.step/.stp, SolidCraft reader only); only that body is converted, with its placement and product names, and the design keeps the choice; an index past the last body, or a file or reader that cannot select, is refused; default: every body; matrix?: [12 or 16 numbers] (where the new component's occurrence sits in the active component, after `up`: a rigid row-major 3x4 rotation-and-translation or 4x4 matrix, flat or as rows, as occurrence.move takes it, its translation column (entries 4, 8 and 12) numbers or length expressions: one that names a parameter is kept, and the import follows the parameter when it changes (a grounded one stays); a scale, shear or mirror is refused before the file is read); tolerance? (see occurrence.move; envelope?: "box" (also add the import's envelope, a hidden box around every body it placed, in its component, as solid.bounding_solid with `component` makes it → envelope: the body; inspect.clearance and inspect.interference check it instead of the parts with `envelopes: true`)link?: bool (default true: keep a STEP source link for Update Links; false keeps an independent copy; without a disk path the web app keeps a copy); 

Insert Mesh

Command group: SOLID › INSERT

Read the import and export guide.

ParameterTypeRequiredDescription
nameNo
upz|y for a glTF fileNodefault y: glTF has Y up, so the import's component is turned a quarter turn about X, Y becoming Z → stand_up: its occurrence; z: the file's axes are kept
originboolNodefault false: the mesh keeps its file's coordinates; true: once read, scaled and stood up, the import's occurrence is moved so the box around its bodies is centred on X and Y of the active component with its lowest point on Z = 0 → moved_to_origin: [x, y, z], the shift made
crease_angle_degrees0..180No0 clears imported shading normals for the previous flat-shading behavior; positive angles regenerate angle-weighted normals across manifold edges below this crease angle; omitted keeps authored OBJ normals/smoothing groups, or flat shading when absent; geometry stays unchanged
geometrymeshes|exact for an OpenUSD fileNodefault meshes: its meshes as mesh bodies, a B-rep with no mesh left out; exact: its exact B-rep where it has one, a BrepArray's solids and shells, comes in as B-rep bodies of an Import feature, as file.insert_step brings a FreeCAD file read with reader: cadmpeg, its prims a product tree, a mesh that only shows a B-rep not read again, and only its meshes with no B-rep as mesh bodies → geometry: "exact"; up and origin work as for its meshes; crease_angle_degrees is refused
Automation details

Command ID: file.insert_mesh

Parameters:

path: .3mf, .stl, .obj, .ply (with faces), .glb or .gltf file (its meshes join the design as mesh bodies in a new component named after the file → component, component_name, occurrence; a glTF file's node tree becomes nested components held as one rigid group until component.unlock, a mesh placed again another occurrence, its materials the bodies' appearances, and its metres millimetres); name?; up?: z|y for a glTF file (default y: glTF has Y up, so the import's component is turned a quarter turn about X, Y becoming Z → stand_up: its occurrence; z: the file's axes are kept); units?: mm|cm|m|in|ft for an STL or OBJ file, or a PLY file with faces (default mm): the unit its coordinates are in, scaled to millimetres as the file is read (a 3MF or glTF file states its own). The design keeps the millimetre mesh and not the unit, so insert the file again to try another; origin?: bool (default false: the mesh keeps its file's coordinates; true: once read, scaled and stood up, the import's occurrence is moved so the box around its bodies is centred on X and Y of the active component with its lowest point on Z = 0 → moved_to_origin: [x, y, z], the shift made); crease_angle_degrees?: 0..180 (0 clears imported shading normals for the previous flat-shading behavior; positive angles regenerate angle-weighted normals across manifold edges below this crease angle; omitted keeps authored OBJ normals/smoothing groups, or flat shading when absent; geometry stays unchanged); geometry?: meshes|exact for an OpenUSD file (default meshes: its meshes as mesh bodies, a B-rep with no mesh left out; exact: its exact B-rep where it has one, a BrepArray's solids and shells, comes in as B-rep bodies of an Import feature, as file.insert_step brings a FreeCAD file read with reader: cadmpeg, its prims a product tree, a mesh that only shows a B-rep not read again, and only its meshes with no B-rep as mesh bodies → geometry: "exact"; up and origin work as for its meshes; crease_angle_degrees is refused)

Insert PCB (Gerber)

Command group: SOLID › INSERT

Read the import and export guide.

ParameterTypeRequiredDescription
outlinepath of the board outline GerberYesRS-274X
layerits textYes
outline_textits textYes
drillspath or [paths] of Excellon drill filesNoup to 16
thicknessmmNodefault 1.6, more than 0, at most 20
namethe new component'sNodefault: the outline file's name without its extension, or Board
originfile| cornerNodefault: keep the files' coordinates; the lower-left corner of the box around the outline at the origin
layers{top_copper?, bottom_copper?, top_mask?, bottom_mask?, top_silk?, bottom_silk?: path of that Gerber layer} and/or layers_text?: the same keys with the layers' textNo
Automation details

Command ID: file.insert_gerber

Parameters:

set?: a board's files as one: a zip, a folder, or any file in the board's folder; each file's layer is found from what it says (Gerber X2, Excellon), the job file (.gbrjob, which also gives thickness and finish) and its name, and outline, drills and layers then name files in the set to use instead; outline: path of the board outline Gerber (RS-274X) layer | outline_text: its text; drills?: path or [paths] of Excellon drill files (up to 16) and/or drills_text?: text or [texts]; thickness?: mm (default 1.6, more than 0, at most 20); name?: the new component's (default: the outline file's name without its extension, or Board); origin?: file (default: keep the files' coordinates) | corner (the lower-left corner of the box around the outline at the origin); layers?: {top_copper?, bottom_copper?, top_mask?, bottom_mask?, top_silk?, bottom_silk?: path of that Gerber layer} and/or layers_text?: the same keys with the layers' text; finish?: hasl (default) | enig, how bare copper looks → {component, component_name, sketch, feature, body, bodies, holes, slots, skipped, thickness, offset: [x, y] added to the files' coordinates, layer_sketches?: ids, prints?: names, warnings}: a new component in the active one, named after the board, holding a sketch Outline on XY with the outline (closed loops inside it are cut-outs) and every hole and slot wholly inside the board, and one extrude of the board by its thickness as the body Board; its properties pcb.outline, pcb.drills and pcb.thickness name the files and the thickness; a hole or slot outside the board or across its edge is skipped with a warning; gaps in the outline up to 0.05 mm are closed with a line and a warning, a wider gap is refused, naming it; each layer given is kept exactly as hidden sketches in the component (Top copper, Bottom mask...) and the board gets each side's printed look (solder mask, copper, finish, silkscreen) as an image on its face, Top print and Bottom print; component properties pcb.<layer> name the layer files. A sketch being edited is finished first. One undo step

SOLID › MODIFY

Align Scan

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
cloudpoint cloud id or name | occurrence?/occurrences?/path?/paths?: mesh occurrenceNos
plane{points: [[x,y,z], …]}| XY|XZ|YZ | construction plane name | {origin, normal} | {face: [x,y,z]}Yes>= 3 noncollinear samples
direction{from: [x,y,z], to: [x,y,z]} | {vector: [x,y,z]} | X|Y|Z|-X|-Y|-Z | construction axis nameYesprojected into primary plane
origin[x,y,z] | "origin"Yesprojected onto primary plane
target"world"| XY|XZ|YZ | construction plane name | {origin, x_axis, z_axis}Nodefault
flip_normalboolNo
flip_directionboolNo
tolerancemmNodefault 1e-6
previewboolNocompute fit residuals and transform without modifying the document
captureboolNooccurrences, default true
move_groundedboolNooccurrences, default false
Automation details

Command ID: scan.align

Parameters:

cloud?: point cloud id or name | occurrence?/occurrences?/path?/paths?: mesh occurrence(s) to align (give cloud or occurrences, not both); plane: {points: [[x,y,z], ...]} (>= 3 noncollinear samples) | XY|XZ|YZ | construction plane name | {origin, normal} | {face: [x,y,z]}; direction: {from: [x,y,z], to: [x,y,z]} | {vector: [x,y,z]} | X|Y|Z|-X|-Y|-Z | construction axis name (projected into primary plane); origin: [x,y,z] | "origin" (projected onto primary plane); target?: "world" (default) | XY|XZ|YZ | construction plane name | {origin, x_axis, z_axis}; flip_normal?: bool; flip_direction?: bool; tolerance?: mm (default 1e-6); preview?: bool (compute fit residuals and transform without modifying the document); capture?: bool (occurrences, default true); move_grounded?: bool (occurrences, default false) → preview, target_kind, moved_names, plane (rms_residual_mm, max_abs_residual_mm, is_planar), origin (raw_origin, projected_origin, off_plane_distance_mm), source_frame, target_frame, world_transform, world_matrix, determinant, orthogonality_error

Fillet

Command group: SOLID › MODIFY

Default keyboard shortcut: F

Round the edges of a solid: the “R.03 typ” or “break all edges R.015” callout on a print, or the corner radius left in a pocket by the end mill. You pick the edges and the radius.

Before you start

  • You need a solid body with edges to round.
  • Pick edges one at a time, or click a face to round every edge around it.
  • Round the larger radii first. Do the vertical corners of a block before its top edges, so the small top round runs smoothly around the big corner.
  • An inside corner on a milled part can’t be sharper than the cutter. Make inside radii a little larger than the end mill’s radius, so the tool doesn’t bury itself in the corner.

Options

Choice in the dialogMeaningExample or reason to choose it
EdgesThe edges to round. Click edges one by one, or click a face to take all of its edges.The four vertical corners of a block, or the top face.
RadiusThe radius of the round. A new fillet starts at 2 mm, shown in the design’s unit.0.03 in for a typical edge break.
TypeConstant radius: one radius all along the edge. Chord length: the width across the round stays the same whatever angle the faces meet at. Variable radius: a radius at each end, and more along the edge if you add them. Curvature continuous: a smoother section where it meets flat faces (G2). Spline: the radius follows control radii you set along the edge.Constant radius for almost everything on a machined part. Variable radius for a round that has to grow along an edge.
Corners (Constant radius)Shown when three or more of the picked edges meet at one corner, such as rounding every edge of a block in one Fillet. Tangent makes a rolling-ball corner. Curvature makes a smooth patch set back along each edge, with a Setback box.Leave it on Tangent. That is the corner a ball end mill leaves.
Face limits (Constant radius)What happens when the radius is too big for the faces beside an edge. Exact radius stops and says why. Largest radius rounds every edge with the largest radius that fits, and shows the Applied Radius. Narrowed radius keeps the radius and narrows the round only where the faces run out.Leave it on Exact radius, so a radius that doesn’t fit is caught instead of quietly changed.
Turns (Constant radius)Where two rounds turn around a sharp corner edge, such as the rounds along the base of a boss at its upright edges. Auto (the default) turns them around the corner edge wherever Swept can: the rolling ball passes the edge, and the rounds are one radius around a straight edge square to them. It mitres the rest. Mitre runs the rounds on until they meet. Swept turns them around every corner edge, and stops with the reason where it can’t. Fillets in designs saved before the default existed stay mitred.Leave it on Auto: that is the corner a ball end mill leaves where it can. Mitre for the crease look.
End Radius, Swap Ends, Mid Radius (Variable radius)The radius at the far end of the first edge, which end gets the start radius, and extra radii along the edge (Add Mid Radius). Smooth radius change blends between them instead of running straight.A round that goes from 0.06 in at one end to 0.25 in at the other.
Tangent chainFollows the edge around smooth (tangent) bends, so one pick rounds the whole run.Leave it on for edges that flow into an existing round.
PreviewShows the round on the part while you set it up.Leave it on.

Try it: round the corners and break the top edges of a plate

  1. Make a 3 in × 2 in × 0.75 in block (sketch a rectangle, Extrude 0.75 in).
  2. Click Fillet and click the four vertical corner edges. Set Radius to 0.25 in and click OK.
  3. Click Fillet again and click the top face. Edges shows 8 selected: the four straight edges and the four rounded corners.
  4. Set Radius to 0.03 in and click OK. The top edge has a 0.03 in round all the way around.

Tips and common mistakes

  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.03 in enters 0.762 mm.
  • Do round all the edges of one size in a single Fillet. It’s one feature to change when the print changes.
  • Do round the big corners before the small edge breaks. Done the other way, the small round has to turn a sharp corner and can fail or leave an odd shape.
  • Don’t make a round bigger than the faces beside it allow. With Face limits on Exact radius, the dialog says “The radius is too large for the faces beside these edges” and OK stays grayed out; use a smaller radius, or set Face limits to Largest radius.
  • Don’t model a round you’ll never see just to look finished. Every fillet adds rebuild time and can get in the way of later features.

See also

Chamfer bevels an edge instead of rounding it. Shell hollows a part after the outside edges are rounded.

ParameterTypeRequiredDescription
edges[[x,y,z] point on edge | {body, index}]Yes
radiusexprYes
tangent_chainboolNodefault true: each picked edge's tangent chain is rounded with it; false: exactly the picked edges
bodythe body the edges are onNowithout it, each point is looked up on every placed body, shown or hidden, and a point on edges of 2 bodies is refused, naming them
typeconstant|curvature|chord|variable|splineNoalias g2: curvature-continuous quintic between planar faces along straight edges, one planar end face at each end (including sloped ends); radius sets the equivalent circular setback, not constant curvature; exact fit only; radius is the width across; radius at the end nearest start, radius2 at the other; one end may be 0, where the round closes to the corner; the radius along the edge is a clamped B-spline from the end nearest start: radius is its first control radius, radii the rest, knots its knot vector from 0 to 1; one end may be 0
radius2No
start[x,y,z]No
radii[expr, …]No
knots[number, …]No
mid[[position 0…1 from start, radius expr], …]Novariable radii between the ends
smoothboolNosmooth instead of straight between the radii
cornerrolling|g2Norolling, the default: the corners where three blended edges meet are pieces of the rolling ball's sphere, tangent to each blend; a curvature round's corners are always g2 patches, between its own sections; g2: each corner where three or more rounded edges meet, and every edge there is rounded, is set back (1.5 × the radius along each edge unless `setbacks` names it) and filled with a patch meeting the rounds and the faces round it to the second order (curvature-continuous seams, clear of the points where a round's section ends on a face), constant-radius exact fillets only, refused where it cannot be built
setbacks[{vertex: [x,y,z], distance: expr}, …]Nocorner setbacks: the corner at the vertex nearest `vertex`, where every edge meeting it is rounded, starts its patch `distance` along each of those edges from the vertex, past where the rounds would meet (past the radius at a square corner), so the rounds blend through a larger patch; one distance for all of a corner's edges; constant-radius exact fillets only; with `corner: g2`, the G2 patch's corners
turnmitre|sweptNowhere two rounds turn round a sharp, straight, convex side edge square to both on a plane, such as the rounds along a boss's base at its upright edges: mitre, the default, runs them on to meet in a mitre; swept ends them at the side edge and fills the corner with their section revolved about it, a torus; swept takes type: constant, corner: rolling, no setbacks and fit: exact or reduce, and is refused with the reason where the rounds are unequal or the side edge is concave, curved or tangent
fitexact|reduce|taper|keep_edgeNokeep_edge: a concave edge whose flat wall is lower than the radius is rounded by a round tangent to the floor only, ending on the wall's top edge, so the top face and its edge stay as they are; the wall needs a straight top edge parallel to the edge and each end square to the edge or an upright face bounding the floor, such as a ring's cylinder; every other edge is rounded as usual; constant radius only; exact, the default: a radius too large for the geometry around the edges is refused, naming the largest that fits; reduce: where it doesn't fit it is reduced to the largest that does, one radius for edges sharing a face; the smallest used is returned as `radius_applied`, each edge's as `radii_applied: [{edge: [x,y,z], radius}]`, and noted in the feature's warning; taper: along each straight edge between planar faces where it doesn't fit, the radius follows the room there as a smooth spline, down to 0 where a face closes to a point, noted in the feature's warning
Automation details

Command ID: solid.fillet

Parameters:

edges: [[x,y,z] point on edge | {body, index}] ; radius: expr; tangent_chain?: bool (default true: each picked edge's tangent chain is rounded with it; false: exactly the picked edges); body?: the body the edges are on (without it, each point is looked up on every placed body, shown or hidden, and a point on edges of 2 bodies is refused, naming them); type?: constant|curvature (alias g2: curvature-continuous quintic between planar faces along straight edges, one planar end face at each end (including sloped ends); radius sets the equivalent circular setback, not constant curvature; exact fit only)|chord (radius is the width across)|variable (radius at the end nearest start, radius2 at the other; one end may be 0, where the round closes to the corner)|spline (the radius along the edge is a clamped B-spline from the end nearest start: radius is its first control radius, radii the rest, knots its knot vector from 0 to 1; one end may be 0); a variable or spline radius runs along each picked edge's whole tangent chain when tangent_chain is on and the chain has two ends (a chain that closes on itself takes the picked edge alone); radius2?; start?: [x,y,z]; radii?: [expr, …]; knots?: [number, …]; mid?: [[position 0…1 from start, radius expr], …] (variable radii between the ends); smooth?: bool (smooth instead of straight between the radii); corner?: rolling|g2 (rolling, the default: the corners where three blended edges meet are pieces of the rolling ball's sphere, tangent to each blend; a curvature round's corners are always g2 patches, between its own sections; g2: each corner where three or more rounded edges meet, and every edge there is rounded, is set back (1.5 × the radius along each edge unless `setbacks` names it) and filled with a patch meeting the rounds and the faces round it to the second order (curvature-continuous seams, clear of the points where a round's section ends on a face), constant-radius exact fillets only, refused where it cannot be built); setbacks?: [{vertex: [x,y,z], distance: expr}, …] (corner setbacks: the corner at the vertex nearest `vertex`, where every edge meeting it is rounded, starts its patch `distance` along each of those edges from the vertex, past where the rounds would meet (past the radius at a square corner), so the rounds blend through a larger patch; one distance for all of a corner's edges; constant-radius exact fillets only; with `corner: g2`, the G2 patch's corners); turn?: mitre|swept (where two rounds turn round a sharp, straight, convex side edge square to both on a plane, such as the rounds along a boss's base at its upright edges: mitre, the default, runs them on to meet in a mitre; swept ends them at the side edge and fills the corner with their section revolved about it, a torus; swept takes type: constant, corner: rolling, no setbacks and fit: exact or reduce, and is refused with the reason where the rounds are unequal or the side edge is concave, curved or tangent); fit?: exact|reduce|taper|keep_edge (keep_edge: a concave edge whose flat wall is lower than the radius is rounded by a round tangent to the floor only, ending on the wall's top edge, so the top face and its edge stay as they are; the wall needs a straight top edge parallel to the edge and each end square to the edge or an upright face bounding the floor, such as a ring's cylinder; every other edge is rounded as usual; constant radius only; exact, the default: a radius too large for the geometry around the edges is refused, naming the largest that fits; reduce: where it doesn't fit it is reduced to the largest that does, one radius for edges sharing a face; the smallest used is returned as `radius_applied`, each edge's as `radii_applied: [{edge: [x,y,z], radius}]`, and noted in the feature's warning; taper: along each straight edge between planar faces where it doesn't fit, the radius follows the room there as a smooth spline, down to 0 where a face closes to a point, noted in the feature's warning)

Chamfer

Command group: SOLID › MODIFY

Cut a flat bevel along edges of a solid: the “break all edges” or “0.03 × 45°” callout on a print. You pick the edges and how the chamfer is sized.

Before you start

  • You need a solid body with edges to chamfer.
  • Pick edges one at a time, or click a face to chamfer every edge around it.
  • Chamfer edges before you add other features that touch them. An edge that already meets a small chamfer or fillet has little room left, and a chamfer there can fail.

Options

Choice in the dialogMeaningExample or reason to choose it
EdgesThe edges to chamfer. Click edges one by one, or click a face to take all of its edges.The four top edges of a block, or the top face.
Chamfer TypeEqual Distance: the same leg on both faces. That is a 45° chamfer only where the faces meet at 90°. Two Distances: a different leg on each face. Distance and Angle: one leg and an angle.Equal Distance for a standard edge break on a square corner. Distance and Angle whenever the print gives an angle, like 0.06 × 30°, and for any chamfer on a sloped face.
Distance (Equal Distance)The leg length on both faces.0.03 in for a typical edge break.
Distance 1 and Distance 2 (Two Distances)The leg on each face.0.06 in by 0.03 in.
Distance 1 and Angle (Distance and Angle)The leg on the first face, and the angle off that face.0.06 in at 45°.
FlipSwaps which face the first distance is measured on. Shown for Two Distances and Distance and Angle.Turn it on if the long leg ends up on the wrong face.
Tangent chainFollows the edge around smooth (tangent) bends, such as a fillet, so one pick chamfers the whole run.Leave it on for edges that flow into a fillet.
PreviewShows the chamfer on the part while you set it up.Leave it on.

Try it: break the top edges of a plate

  1. Make a 3 in × 2 in × 0.75 in block (sketch a rectangle, Extrude 0.75 in).
  2. Click Chamfer and click the four top edges. Edges shows 4 selected.
  3. Set Chamfer Type to Equal Distance and Distance to 0.03 in.
  4. Click OK. All four top edges have a 0.03 × 45° chamfer.
  5. To change it, edit the chamfer and set Chamfer Type to Distance and Angle, Distance 1 to 0.06 in and Angle to 30. Use Flip to swap which face takes the 0.06 in leg.

Tips and common mistakes

  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.03 in enters 0.762 mm.
  • Do chamfer all the edges of one size in a single Chamfer. It’s one feature to change when the print changes.
  • Don’t chamfer an edge right next to an existing small chamfer with a larger size. If the chamfer would run past the neighbouring face, the dialog says so; make the chamfer smaller or chamfer those edges together in one feature.

See also

Hole adds a countersink at the top of a hole. Fillet rounds an edge instead of beveling it.

ParameterTypeRequiredDescription
edges[[x,y,z] | {body, index}]Yes
distanceexprYes
tangent_chainboolNodefault true: each picked edge's tangent chain is cut with it; false: exactly the picked edges
distance2exprNoalong the second face
angleexprNofrom the first face
flipboolNowhich face is first: by default the one facing up most
bodythe body the edges are onNowithout it, each point is looked up on every placed body, shown or hidden, and a point on edges of 2 bodies is refused, naming them
Automation details

Command ID: solid.chamfer

Parameters:

edges: [[x,y,z] | {body, index}] ; distance: expr; tangent_chain?: bool (default true: each picked edge's tangent chain is cut with it; false: exactly the picked edges); distance2?: expr (along the second face) | angle?: expr (from the first face); flip?: bool (which face is first: by default the one facing up most); body?: the body the edges are on (without it, each point is looked up on every placed body, shown or hidden, and a point on edges of 2 bodies is refused, naming them)

Combine

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
targetbodyYes
tools[body]Yes
operationjoin|cut|intersectNo
touchingseparate|one_bodyNowhat a join makes of pieces that share no face: separate, the default, makes each piece that touches another only along an edge or at a point a body of its own and keeps pieces that touch nothing in one body; one_body keeps every piece in one body
keep_toolsboolNo
offsetexprNocut only: each tool is grown this far along its faces' outward normals before it cuts, so the cut leaves that clearance round it; negative: shrunk, for a press fit; the tool bodies themselves are not changed; default 0
offset_edgessharp|roundNowith offset: sharp, the default, extends the grown faces until they meet; round rounds each edge between two grown faces, convex for a positive offset and concave for a negative one, so with the offset as the radius the clearance is the same everywhere
offset_faces[[x,y,z] points on tool faces]Nowith offset: only these faces move, the faces round them extended or trimmed to meet them; the other faces, and tools with none of them, cut as they are; default: every face of every tool
offset_radiusexprNowith offset_edges: round: the radius of the rounds, default the offset's size; one too large for the faces round an edge is refused as a fillet's is, naming the largest that fits
new_componentboolNothe result goes into a new component; component_name?
Automation details

Command ID: solid.combine

Parameters:

target: body; tools: [body]; operation?: join|cut|intersect; touching?: separate|one_body (what a join makes of pieces that share no face: separate, the default, makes each piece that touches another only along an edge or at a point a body of its own and keeps pieces that touch nothing in one body; one_body keeps every piece in one body); keep_tools?: bool; offset?: expr (cut only: each tool is grown this far along its faces' outward normals before it cuts, so the cut leaves that clearance round it; negative: shrunk, for a press fit; the tool bodies themselves are not changed; default 0); offset_edges?: sharp|round (with offset: sharp, the default, extends the grown faces until they meet; round rounds each edge between two grown faces, convex for a positive offset and concave for a negative one, so with the offset as the radius the clearance is the same everywhere); offset_faces?: [[x,y,z] points on tool faces] (with offset: only these faces move, the faces round them extended or trimmed to meet them; the other faces, and tools with none of them, cut as they are; default: every face of every tool); offset_radius?: expr (with offset_edges: round: the radius of the rounds, default the offset's size; one too large for the faces round an edge is refused as a fillet's is, naming the largest that fits); new_component?: bool (the result goes into a new component; component_name?)

Finger Joint

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[2 to 32 body names]Nodefault: selected plates, in selection order; the first plate is joined to each later plate in order; failed pairs are unchanged and reported
countinteger 1…64Nodefault 3; creates 2 × count + 1 segments along the joint line
clearancelength exprNoeach cut expands by half the clearance on each side along and across the joint; default 0 mm; less than a finger width
invertedboolNodefault false; starts with a tab instead of a slot without changing which plate supplies tabs
edge_offsetlength exprNodefault 0 mm; adds this length to each end segment and divides the remainder equally among the other segments
nameNo
Automation details

Command ID: solid.finger_joint

Parameters:

bodies?: [2 to 32 body names] (default: selected plates, in selection order; the first plate is joined to each later plate in order; failed pairs are unchanged and reported); count?: integer 1…64 (default 3; creates 2 × count + 1 segments along the joint line); clearance?: length expr (each cut expands by half the clearance on each side along and across the joint; default 0 mm; less than a finger width); inverted?: bool (default false; starts with a tab instead of a slot without changing which plate supplies tabs); edge_offset?: length expr (default 0 mm; adds this length to each end segment and divides the remainder equally among the other segments); name?

Scale

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Yes
factorexprYes
factors[x, y, z] exprsYes
origin[x,y,z]No
Automation details

Command ID: solid.scale

Parameters:

bodies: [names]; factor: expr | factors: [x, y, z] exprs; origin?: [x,y,z]

Delete Face

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
faces[[x,y,z] points on the faces, or face names from model.faces]Yes
bodyNo
healboolNodefault true closes the gap. Select every round in a tangent chain to restore straight or circular sharp edges. An open chain must end on planar faces. With false, the gap stays open and the remaining faces form a surface body
Automation details

Command ID: face.delete

Parameters:

faces: [[x,y,z] points on the faces, or face names from model.faces]; body?; heal?: bool (default true closes the gap. Select every round in a tangent chain to restore straight or circular sharp edges. An open chain must end on planar faces. With false, the gap stays open and the remaining faces form a surface body)

Offset Face

Command group: SOLID › MODIFY

Push faces of a solid in or out by a set distance, and the faces around them follow. Use it to add finish stock, open up a pocket or bore, make a pocket deeper or a wall thicker, without going back into the sketch.

Before you start

  • You need a solid body. The faces can be flat or curved, such as the wall of a bore.
  • A positive Distance pushes the face out of the material and adds stock. A negative Distance pulls it into the material and removes stock.
  • On an inside wall, such as the side of a pocket or the wall of a bore, out of the material means into the opening. A negative Distance opens the pocket or bore up; a positive one closes it in.

Options

Choice in the dialogMeaningExample or reason to choose it
FacesThe faces to move. You can pick more than one.The floor of a pocket, or the wall of a bore.
DistanceHow far each face moves, square to the face. Positive adds material, negative removes it.0.010 in to leave stock on a face for finishing. -0.005 in on a bore wall to open the bore 0.010 in on the diameter.

Try it: deepen and widen a pocket

  1. Make a 3 in × 2 in × 0.75 in block and cut a 1 in × 1 in pocket 0.25 in deep into the top.
  2. Click Offset Face (in the Modify menu) and click the floor of the pocket. Set Distance to -0.125 in. The arrow points down into the part. Click OK. The pocket is now 0.375 in deep.
  3. Click Offset Face again and click one side wall of the pocket. Set Distance to -0.25 in. The arrow points into the material, away from the pocket. Click OK. The pocket is now 1.25 in wide that way.

Tips and common mistakes

  • Do remember a bore moves on the radius. To open a bore 0.010 in on the diameter, offset its wall -0.005 in.
  • Do watch the arrow before clicking OK. It shows which way the face will move.
  • Do type the unit with the number when the print uses another unit. In a millimetre design, typing 0.010 in enters 0.254 mm.
  • Do use Offset Face for a quick size change on a finished model, such as a stock allowance or a fit adjustment. If the size will change again, change the sketch or the feature instead, so the dimension lives where the print puts it.

See also

Extrude sets a depth when the feature is made. Shell sets a wall thickness for a whole hollow part. Hole sets a hole’s size from the start.

ParameterTypeRequiredDescription
faces[[x,y,z] points on faces (planar or curved), or face names from model.faces]Yes
distanceexprYespositive: outward
bodyNo
Automation details

Command ID: solid.offset_face

Parameters:

faces: [[x,y,z] points on faces (planar or curved), or face names from model.faces]; distance: expr (positive: outward); body?

Transform Face

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
face[x,y,z] or name from model.facesYes
bodyNo
translate[dx,dy,dz]No
axisX|Y|Z|[x,y,z]No
origin[x,y,z]No
angleexprNo
Automation details

Command ID: solid.transform_face

Parameters:

face: [x,y,z] or name from model.faces; body?; translate?: [dx,dy,dz]; axis?: X|Y|Z|[x,y,z]; origin?: [x,y,z]; angle?: expr

Shell

Command group: SOLID › MODIFY

Hollow out a solid to an even wall thickness, leaving the faces you pick open: a box with an open top, an enclosure, or a cup.

Before you start

  • You need a solid body.
  • Pick the faces to remove. They become the openings. Pick the top face of a block to get an open box.
  • To make a closed hollow part with no openings, click the body instead of a face.
  • Round or chamfer the edges around the opening after you shell, not before. Shell can fail on a round that runs into the opening.

Options

Choice in the dialogMeaningExample or reason to choose it
Faces/BodyThe faces to remove, or the body for a closed hollow part.The top face of a block for an open box.
ThicknessThe wall thickness.0.125 in for a small enclosure.
DirectionInside keeps the outside size and builds the wall inward. Outside keeps the inside size and builds the wall outward. Both splits the wall across the original faces.Inside when the outside size is on the print. Outside when the inside size matters, such as a pocket a part must fit in.
Tangent chain (under Options)Also removes faces that run smoothly into the ones you picked, such as a fillet around the top edge.On by default. Turn it off to remove only the faces you clicked.

Try it: an open-top box

  1. Make a 4 in × 3 in × 2 in block (sketch a rectangle, Extrude 2 in).
  2. Click Shell and click the top face. Faces/Body shows 1 selected.
  3. Set Thickness to 0.125 in and Direction to Inside.
  4. Click OK. The block is an open box, still 4 in × 3 in × 2 in outside, with 0.125 in walls and floor.
  5. To try Outside, edit the shell and set Direction to Outside. The inside is now 4 in × 3 in and the outside grows by the wall.

Tips and common mistakes

  • Do pick Direction from the dimension that matters. Inside holds the outside size, Outside holds the inside size.
  • Do shell first and round the rim after. Shell then doesn’t have to follow the rounds.
  • Don’t click the body when you want an opening. Clicking the body makes a closed hollow part with no way in.

See also

Fillet rounds the rim after you shell. Extrude makes the block to start from.

ParameterTypeRequiredDescription
faces[[x,y,z] points on the faces to remove, or face names from model.faces; none: a closed hollow body]Yes
thicknessexprYes
directioninside|outside|bothNo
tangent_chainboolNoalso open faces joined smoothly to the picked ones
bodyNoneeded with no faces when there are several bodies
Automation details

Command ID: solid.shell

Parameters:

faces: [[x,y,z] points on the faces to remove, or face names from model.faces; none: a closed hollow body]; thickness: expr; direction?: inside|outside|both; tangent_chain?: bool (also open faces joined smoothly to the picked ones); body? (needed with no faces when there are several bodies)

Draft

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
faces[[x,y,z] points, or face names from model.faces]Yes
angleexprYes
neutralXY|XZ|YZ|plane name|{origin, normal}Yes
pull[x,y,z]Nodefault: neutral plane normal
bodyNo
Automation details

Command ID: solid.draft

Parameters:

faces: [[x,y,z] points, or face names from model.faces]; angle: expr; neutral: XY|XZ|YZ|plane name|{origin, normal}; pull?: [x,y,z] (default: neutral plane normal); body?

Split Face

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
faces[[x,y,z] points on the faces to split, or face names from model.faces]Yes
bodyNo
Automation details

Command ID: solid.split_face

Parameters:

faces: [[x,y,z] points on the faces to split, or face names from model.faces]; body?; and the splitting tool: plane: XY|XZ|YZ|plane name|{origin, normal} — or tool: {body, point} (a face of a body, its surface extended) — or sketch: id or name (its curves, along the sketch's normal; each curve on its own, an open one extended past its ends) and loops?: bool (default false: true joins the curves end to end first, so a closed loop cuts along itself only); with sketch also wires?: [3D curve ids] (its 3D curves instead of its planar ones, each on its own, an open one extended along its end tangents; default: the planar curves, or every 3D curve of a sketch with no planar curves) and direction?: [x,y,z] (the sweep; default: the sketch's normal for planar curves, the mean normal of the faces at each 3D curve; a direction along the face all the way along a 3D curve is refused)

Split Body

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodynameYes
planeXY|XZ|YZ|plane name|{origin, normal} — or tool: {body, point}Yesa face of a body, its surface extended
tool_planeboolNodefault false; true uses only that face's infinite plane and follows the face
linecurve idNo
curves[curve ids]Nosketch curves joined end to end into one chain, swept along the sketch's normal through the body, open ends continued along their tangents past it; one straight line splits as its plane
extendboolNodefault true; false cuts with the curves as drawn, refused where they do not cut through
Automation details

Command ID: solid.split_body

Parameters:

body: name; plane: XY|XZ|YZ|plane name|{origin, normal} — or tool: {body, point} (a face of a body, its surface extended), tool_plane?: bool (default false; true uses only that face's infinite plane and follows the face) — or sketch: id, line?: curve id, curves?: [curve ids] (sketch curves joined end to end into one chain, swept along the sketch's normal through the body, open ends continued along their tangents past it; one straight line splits as its plane), extend?: bool (default true; false cuts with the curves as drawn, refused where they do not cut through)

Press Pull

Command group: SOLID › MODIFY

Default keyboard shortcut: Q

Read the solid features guide.

ParameterTypeRequiredDescription
face[x,y,z] and distance: exprYespositive adds material, negative cuts
edges[[x,y,z]…] and distanceYesa fillet
bodythe body the face or edges are onNofor edges, as for solid.fillet
Automation details

Command ID: solid.press_pull

Parameters:

face: [x,y,z] and distance: expr (positive adds material, negative cuts), or edges: [[x,y,z]…] and distance (a fillet); body?: the body the face or edges are on (for edges, as for solid.fillet); face_body?: the body a flat face is on, used when body is omitted

Move/Copy

Command group: SOLID › MODIFY

Default keyboard shortcut: M

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Yes
translate[x,y,z]Nolength exprs or numbers, applied after rotation
axis[x,y,z]Nodefault: world Z with origin, else the body's component's Z, world Z at the root
about{edge|face: [x,y,z], body?}Nothe edge or round face the turn is about, kept as a reference so the turn follows it when an earlier step moves the body; axis gives the turn's sense, and with origin the line used when the edge is not found
angleangle exprNo
origin[x,y,z]Nolength exprs or numbers in world coordinates; default: the body's component's origin, the world origin at the root
tolerancematrix rotation toleranceNodefault 1e-9, at most 1e-3
copyboolNodefault false; true keeps originals and transforms copies
carry[construction names or ids]Noalso moved with the bodies, e.g. a Center Pole at fixed points
leave[construction names or ids]Nobuilt on the bodies but left where they are
occurrences[occurrence paths, root first]Noonly with copy: copies each component independently and transforms the copies in world space; reply lists them in occurrences
nameNo
body_nameNo
body_namesNo
Automation details

Command ID: solid.move

Parameters:

bodies: [names]; translate?: [x,y,z] (length exprs or numbers, applied after rotation); axis?: [x,y,z] (default: world Z with origin, else the body's component's Z, world Z at the root); about?: {edge|face: [x,y,z], body?} (the edge or round face the turn is about, kept as a reference so the turn follows it when an earlier step moves the body; axis gives the turn's sense, and with origin the line used when the edge is not found); angle?: angle expr; origin?: [x,y,z] (length exprs or numbers in world coordinates; default: the body's component's origin, the world origin at the root); matrix?: rigid row-major 3x4 or 4x4, flat or rows (instead of translate/axis/angle/origin); tolerance?: matrix rotation tolerance (default 1e-9, at most 1e-3); copy?: bool (default false; true keeps originals and transforms copies); carry?: [construction names or ids] (also moved with the bodies, e.g. a Center Pole at fixed points); leave?: [construction names or ids] (built on the bodies but left where they are); occurrences?: [occurrence paths, root first] (only with copy: copies each component independently and transforms the copies in world space; reply lists them in occurrences); name?, body_name?, body_names?

Dogbone

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
edges[[x,y,z] point on an inside corner edge | {body, index}]No
faces[[x,y,z] points on planar faces, or face names from model.faces]Noa pocket's floor, a plate's face a slot runs through: every inside corner edge along the face's normal at its corners
diameterexprYesthe router bit's diameter; each relief is a round hole of it, running the corner's length: from a blind pocket's floor, never below it, out past an open end
stylenormal|minimal|t_boneNonormal, the default: centred on the corner's bisector, the circle through the sharp corner; of all reliefs that reach the sharp corner, it removes the least material. minimal: on the bisector, stopping `gap` short of the corner, for mating parts with slightly broken corners. t_bone: centred on one wall's line, the longer or the shorter one; at a square corner it bites that wall only, at a sharper corner it also bites the other wall
gapexprNominimal only; default 5% of the diameter
sidelonger|shorterNot_bone only: which wall each relief bites; default longer
max_angleangle exprNocorners more open are skipped; default 90 deg
alongX|Y|Z|[x,y,z]Nothe bit's axis: picked edges not along it are skipped; default any; a face's corners are along its normal
Automation details

Command ID: solid.dogbone

Parameters:

edges?: [[x,y,z] point on an inside corner edge | {body, index}]; faces?: [[x,y,z] points on planar faces, or face names from model.faces] (a pocket's floor, a plate's face a slot runs through: every inside corner edge along the face's normal at its corners); give edges, faces or both; diameter: expr (the router bit's diameter; each relief is a round hole of it, running the corner's length: from a blind pocket's floor, never below it, out past an open end); style?: normal|minimal|t_bone (normal, the default: centred on the corner's bisector, the circle through the sharp corner; of all reliefs that reach the sharp corner, it removes the least material. minimal: on the bisector, stopping `gap` short of the corner, for mating parts with slightly broken corners. t_bone: centred on one wall's line, the longer or the shorter one; at a square corner it bites that wall only, at a sharper corner it also bites the other wall); gap?: expr (minimal only; default 5% of the diameter); side?: longer|shorter (t_bone only: which wall each relief bites; default longer); max_angle?: angle expr (corners more open are skipped; default 90 deg); along?: X|Y|Z|[x,y,z] (the bit's axis: picked edges not along it are skipped; default any; a face's corners are along its normal); body?. Only inside (concave) corners between planar faces are relieved: the reply's `relieved` counts them and `skipped` lists every other edge with its reason (convex, too_open, not_along_axis, not_straight, …); none relieved is refused.

Replace Face

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
faces[[x,y,z] points on planar faces, or face names from model.faces]Yes
targetplaneYesXY|XZ|YZ|construction plane|{origin, normal}
target_face[x,y,z] on a parallel planar faceYes
bodyNo
Automation details

Command ID: solid.replace_face

Parameters:

faces: [[x,y,z] points on planar faces, or face names from model.faces]; target: plane (XY|XZ|YZ|construction plane|{origin, normal}) | target_face: [x,y,z] on a parallel planar face; body?

Align

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Yes
from[x,y,z] | "origin" | {snap: vertex|edge_mid|face_center|circle_center, at: [x,y,z]}Yes
from_face[x,y,z]Yes
from_planeXY|XZ|YZ|construction or offset plane name or id|{origin, normal}Yes
toYesthe same
to_face[x,y,z]Yes
to_planeYesa plane as from_plane; the point or face goes onto it along its normal, and the plane may move later: the bodies follow
flipboolNo
axes[x, y, z]Nopoint-to-point only: which world axes the offset moves along; default all three, at least one true
angleexprNoa turn about the target's direction after the move
Automation details

Command ID: solid.align

Parameters:

bodies: [names]; from: [x,y,z] | "origin" | {snap: vertex|edge_mid|face_center|circle_center, at: [x,y,z]} | from_face: [x,y,z] | from_plane: XY|XZ|YZ|construction or offset plane name or id|{origin, normal}; to: (the same) | to_face: [x,y,z] | to_plane: (a plane as from_plane; the point or face goes onto it along its normal, and the plane may move later: the bodies follow); from_frame / to_frame: a frame found again whenever the design changes, so the bodies follow it, in place of that side's point, face or plane: a joint origin as joint.create takes one ({face|circle|edge|point: [x,y,z]}, a face's name, a named joint origin) or {sketch, point|curve} (a sketch point, or a circle's, arc's or ellipse's centre, z along the sketch's normal), on the bodies' own component; faces, planes and frames also turn to meet; flip?: bool; axes?: [x, y, z] (point-to-point only: which world axes the offset moves along; default all three, at least one true); angle?: expr (a turn about the target's direction after the move)

Remove

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Yesremoved from here on in the timeline
Automation details

Command ID: solid.remove

Parameters:

bodies: [names] (removed from here on in the timeline)

Compute All

Command group: SOLID › MODIFY

Read the solid features guide.

Automation details

Command ID: timeline.compute_all

No parameter description is provided by the command registry.

Delete

Command group: SOLID › MODIFY

Default keyboard shortcut: Delete

Read the solid features guide.

ParameterTypeRequiredDescription
featureid|nameYes
features[id|name]Yes
groups[timeline folder ids]Yesa folder goes with all its features, joints and nested folders; one undo step; a sketch takes its dependent features with it
Automation details

Command ID: timeline.delete

Parameters:

feature: id|name | features: [id|name] | groups: [timeline folder ids] (a folder goes with all its features, joints and nested folders; one undo step; a sketch takes its dependent features with it) → deleted: [feature ids]; joints?: [joint ids]; groups?: [folder ids deleted]; failing?: [{feature, error}] (later features that worked and now fail)

Change Parameters

Command group: SOLID › MODIFY

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
deletenameYes
changes{name: expression, …}Yesexisting parameters, checked together and rebuilt once, all or nothing
Automation details

Command ID: parameters.change

Parameters:

name, expression (number or text), unit?: a unit expressions know (mm, in, deg, kg, mm³, m²…; every one is listed in docs/book/src/guide/parameters.md), "" or text (new parameters default to their value's kind's unit, a length the design's units; a text parameter's expression is its text, quotes round it optional: sketch texts' words are built from it), comment?, favorite?: bool, new_name?: rename (references follow; an expression `new = value` renames to `new` and sets value, or sets `new` when the expression is just `new`); or delete: name; or changes: {name: expression, …} (existing parameters, checked together and rebuilt once, all or nothing) → changed?: {name: value} (with changes), recomputed: features rebuilt, restored: features whose earlier result for the same inputs was reused (e.g. a value set back), switched?: [{feature, name, suppressed}] (the configuration rules that switch a feature's suppression and read a parameter whose value changed run in their order, as on activation; driven parameters and restrictions wait for a configuration edit or activation)

Physical Material

Command group: SOLID › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Yes
materialnameYesSteel, Aluminum, ABS Plastic, …, or one made with material.create; `material.list`
Automation details

Command ID: material.assign

Parameters:

bodies: [names]; material: name (Steel, Aluminum, ABS Plastic, …, or one made with material.create; `material.list`)

Appearance

Command group: SOLID › MODIFY

Default keyboard shortcut: A

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]No
faces[[x,y,z] on faces]Nobody?: which body, default the nearest
components[names or ids, or occurrence names]No
nameinert copied look labelNorequires color, mutually exclusive with appearance
pbr{metallic:0..1, roughness:0.045..1, dielectric_ior:1..3}Norequires color/appearance and opacity 1
Automation details

Command ID: appearance.assign

Parameters:

bodies?: [names]; faces?: [[x,y,z] on faces] (body?: which body, default the nearest); components?: [names or ids, or occurrence names]; appearance?: library name or stable starter.* ID (appearance.library), or in the app a look's name or entry ID in the kept local library (a name several looks share is refused) | color: "#rrggbb" or [r, g, b] (0–255), opacity? (0–1, default 1); name?: inert copied look label (requires color, mutually exclusive with appearance); pbr?: {metallic:0..1, roughness:0.045..1, dielectric_ior:1..3} (requires color/appearance and opacity 1); a starter ID or registered starter name resolves its recipe before color overrides; omitted pbr retains that response and pbr: null explicitly clears it. Unavailable glass recipes refuse through either selector. Other custom labels with an explicit color retain legacy scalar behavior. Neither appearance nor color (or color: null): clear, so the face follows its body, the body its component, the component its material

SOLID › CONSTRUCT

Offset Plane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
nameNo
Automation details

Command ID: construct.plane.offset

Parameters:

base: XY|XZ|YZ|plane name, or a planar face {face: [x,y,z], body?, index?, path?}; offset: expr, or through: a point ref (vertex, sketch point, construction point) the plane goes through, parallel to base; name?

Plane at Angle

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
axisX|Y|Z|construction axis name|{origin, dir}| {edge|face: [x,y,z]}Yesfollowed: the plane moves with the axis; origin: [x,y,z] of numbers or length expressions, followed as the parameters change; a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes
angleexprYes
direction_onlyboolNodefault false: turn about the axis as a line; true: project the axis direction onto base and turn about the line through pivot, or the base origin
pivotpoint refNoonly with direction_only; vertex, sketch point, construction point
through_axisboolNodefault false: the base turns about the axis where it is; true: the base is first brought onto the axis, so the plane goes through it even when it is off the base; not with direction_only
nameNo
Automation details

Command ID: construct.plane.at_angle

Parameters:

base?: XY|XZ|YZ|plane name, or a planar face {face: [x,y,z], body?, index?, path?} (omitted with a body edge as axis: a flat face that meets the edge, so the plane goes through it); axis: X|Y|Z|construction axis name (followed: the plane moves with the axis)|{origin, dir} (origin: [x,y,z] of numbers or length expressions, followed as the parameters change) | {edge|face: [x,y,z]} (a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes); angle: expr; direction_only?: bool (default false: turn about the axis as a line; true: project the axis direction onto base and turn about the line through pivot, or the base origin); pivot?: point ref (only with direction_only; vertex, sketch point, construction point); through_axis?: bool (default false: the base turns about the axis where it is; true: the base is first brought onto the axis, so the plane goes through it even when it is off the base; not with direction_only); name?

Plane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
refs1-3 refs in any orderYes
with{the method's other parameters: offset, angle, t, name…}No
Automation details

Command ID: construct.plane

Parameters:

refs: 1-3 refs in any order; with?: {the method's other parameters: offset, angle, t, name…}. Builds with the first of the family's CONSTRUCT commands that takes the refs in its reference parameters (and every key of `with`). Returns method: the command used

Axis

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
refs1-3 refs in any orderYes
with{the method's other parameters: offset, angle, t, name…}No
Automation details

Command ID: construct.axis

Parameters:

refs: 1-3 refs in any order; with?: {the method's other parameters: offset, angle, t, name…}. Builds with the first of the family's CONSTRUCT commands that takes the refs in its reference parameters (and every key of `with`). Returns method: the command used

Point

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
refs1-3 refs in any orderYes
with{the method's other parameters: offset, angle, t, name…}No
Automation details

Command ID: construct.point

Parameters:

refs: 1-3 refs in any order; with?: {the method's other parameters: offset, angle, t, name…}. Builds with the first of the family's CONSTRUCT commands that takes the refs in its reference parameters (and every key of `with`). Returns method: the command used

Axis Through Cylinder/Cone/Torus

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
facerefYesa cylinder, cone or torus face, or a circular edge
nameNo
Automation details

Command ID: construct.axis.through_cylinder

Parameters:

face: ref (a cylinder, cone or torus face, or a circular edge); name?

Axis Perpendicular To Face or Plane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
facerefYesa face, or a construction or origin plane, #23006
pointrefYesthe axis goes through it, square to the face or plane
nameNo
Automation details

Command ID: construct.axis.normal_to_face

Parameters:

face: ref (a face, or a construction or origin plane, #23006); point: ref (the axis goes through it, square to the face or plane); name?

Axis Through Two Planes

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
aplane or planar face refsYes
bplane or planar face refsYes
nameNo
Automation details

Command ID: construct.axis.two_planes

Parameters:

a, b: plane or planar face refs; name?

Axis Through Two Points

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
apoint refsYes
bpoint refsYesvertices, sketch points, points
nameNo
Automation details

Command ID: construct.axis.two_points

Parameters:

a, b: point refs (vertices, sketch points, points); name?

Axis Through Edge

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
edgerefYesa straight edge or sketch line
nameNo
Automation details

Command ID: construct.axis.edge

Parameters:

edge: ref (a straight edge or sketch line); name?

Point At Vertex

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
pointrefYesvertex, sketch point, point
nameNo
Automation details

Command ID: construct.point.vertex

Parameters:

point: ref (vertex, sketch point, point); name?

Point Through Two Edges

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
aedge or line refsYes
bedge or line refsYeswhere they meet, or come closest
nameNo
Automation details

Command ID: construct.point.two_edges

Parameters:

a, b: edge or line refs (where they meet, or come closest); name?

Point Through Three Planes

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
aplane or planar face refsYes
bplane or planar face refsYes
cplane or planar face refsYes
nameNo
Automation details

Command ID: construct.point.three_planes

Parameters:

a, b, c: plane or planar face refs; name?

Point At Center Of Circle/Sphere/Torus

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
ofrefYescircular edge, sketch circle or arc, sphere or torus face
nameNo
Automation details

Command ID: construct.point.center

Parameters:

of: ref (circular edge, sketch circle or arc, sphere or torus face); name?

Point At Edge And Plane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
edgeedge or line refYes
planeplane or planar face refYes
nameNo
Automation details

Command ID: construct.point.edge_plane

Parameters:

edge: edge or line ref; plane: plane or planar face ref; name?

Point Along Path

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
pathedge or sketch curve refYes
nameNo
Automation details

Command ID: construct.point.along_path

Parameters:

path: edge or sketch curve ref; t: expr, 0…1 along it (default 0.5); name?

Point at Average of Points

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
nameNo
Automation details

Command ID: construct.point.average

Parameters:

points: two or more point refs (vertices, sketch points, points), in any order; the new point sits at their average; name?

Midplane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
aplane or planar face refsYes
bplane or planar face refsYeshalfway between; bisecting when they meet at an angle
nameNo
Automation details

Command ID: construct.plane.midplane

Parameters:

a, b: plane or planar face refs (halfway between; bisecting when they meet at an angle); name?

Plane Through Two Edges

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
astraight edge or line refs in one planeYes
bstraight edge or line refs in one planeYes
nameNo
Automation details

Command ID: construct.plane.two_edges

Parameters:

a, b: straight edge or line refs in one plane; name?

Plane Through Axis And Point

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
pointoff-axis point refYes
nameNo
Automation details

Command ID: construct.plane.axis_point

Parameters:

axis: origin axis, construction axis, straight edge or sketch line ref; point: off-axis point ref; name?

Plane Through Three Points

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
apoint refsYes
bpoint refsYes
cpoint refsYes
nameNo
Automation details

Command ID: construct.plane.three_points

Parameters:

a, b, c: point refs; name?

Tangent Plane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
facerefYesany face: a cylinder, cone, sphere or torus, or another curved face such as a loft's, a sweep's or a patch's
at[x,y,z] where it touchesNothe point of the face nearest it; default: the face pick
referenceplane or planar face refNoon a cylinder, cone, sphere or torus only: the plane touches where the face turns towards it: parallel to it, on the side of `at`
angleexprNowith reference, default 0 deg: turned that far about the face's axis; not on a sphere
nameNo
Automation details

Command ID: construct.plane.tangent

Parameters:

face: ref (any face: a cylinder, cone, sphere or torus, or another curved face such as a loft's, a sweep's or a patch's); at?: [x,y,z] where it touches (the point of the face nearest it; default: the face pick); reference?: plane or planar face ref (on a cylinder, cone, sphere or torus only: the plane touches where the face turns towards it: parallel to it, on the side of `at`); angle?: expr (with reference, default 0 deg: turned that far about the face's axis; not on a sphere); name?

Plane Along Path

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
pathedge or sketch curve refYes
Automation details

Command ID: construct.plane.along_path

Parameters:

path: edge or sketch curve ref; t: expr, 0…1 along it (default 0.5); name? The plane is square to the path there

Perpendicular Plane

Command group: SOLID › CONSTRUCT

Read the solid features guide.

ParameterTypeRequiredDescription
planeplane or planar face refYes
Automation details

Command ID: construct.plane.perpendicular

Parameters:

plane: plane or planar face ref; line: straight edge, sketch line or axis ref; name? The plane holds the line and is square to the plane

Plane Through Point, Square To Line

Command group: SOLID › CONSTRUCT

Read the solid features guide.

Automation details

Command ID: construct.plane.square_to_line

Parameters:

line: straight edge, sketch line or axis ref; point: vertex, sketch point, construction point or fixed point; name? The plane passes through the point and is square to the line

SOLID › ASSEMBLE

New Component

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
namecomponent id or nameNo
parentcomponent id or nameNodefault: the active one
parent_pathexact parent placementNo
activateboolNodefault true
groundedboolNodefault: true for the design's first part, false otherwise
bom_quantitywhat one placement means in a bill of materialsNocomponent.metadata.set's
Automation details

Command ID: component.create

Parameters:

name?, parent?: component id or name (default: the active one); parent_path?: exact parent placement; activate?: bool (default true); grounded?: bool (default: true for the design's first part, false otherwise); bom_quantity?: what one placement means in a bill of materials (component.metadata.set's); virtual?: true, a component with no geometry (grease, paint, a label): listed in bills of materials with its quantity, never active (default activate false; true is refused), and nothing can be put in it

Insert Design

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

Automation details

Command ID: component.insert_design

Parameters:

path: a .sc design, or a file an installed importer plugin reads (format?: its plugin.entry, default the importer that claims the extension; options?: its declared options) → a new component linked to it, holding its solid bodies as placed in that design, its canvases and decals where the design shows them, and a copy of its design properties; document?: the design itself, as its JSON, for a design open in the session that has no file yet: its bodies come in as they are and the link names no file (not with path); configuration?: a row name or id (null or omitted: the saved source state); name? (default: the design's name); parent?: component id or name (default: the active one); translate?: [x,y,z] in mm from the destination parent's origin (default [0,0,0], also with reuse); axis?: [x,y,z], angle?: radians or "30 deg", origin?: [x,y,z]; matrix?: [12 or 16 numbers] (row-major 3x4 or 4x4, its translation column numbers or length expressions) or to_matrix?: [12 or 16 numbers]; tolerance?: largest accepted |RᵀR − I| (default 1e-9, at most 1e-3); reuse?: bool (default false): insert a free occurrence, reusing an existing link to the same file and configuration when available; structure?: bool (default false: every body goes into the one new component, whatever components the design has; true: a design with components of its own (an assembly) comes in as a subassembly: its components and their occurrences are kept as components inside the new one, each with its part properties, and stay where that design has them, so it moves as one (rigid; a joint made here to one of its components moves the whole of it) → subcomponents); flexible?: bool (default false: rigid; true: the components are kept as with `structure`, and this occurrence is flexible: the design's own joints are joints here too, on this occurrence's own copy of its components, named as there or `<occurrence>: <name>` where the name is taken, so joint.drive moves them; each occurrence is rigid or flexible on its own and has its own pose; also with reuse; a design without joints stays rigid) → joints; with reuse and a link to the file there already → occurrence, component, and warnings when `structure` is not how that link keeps the design (component.link_mode changes a link); a design with more components than a link keeps (5000, or 20000 occurrences) is refused with `structure: true`, and with `flexible` alone comes in as one component, with a warning

Joint

Command group: SOLID › ASSEMBLE

Default keyboard shortcut: J

Read the components and joints guide.

ParameterTypeRequiredDescription
ajoint originsYes
bjoint originsYes{occurrence, face|circle|edge|point: [x,y,z] in world, faces: [[x,y,z],[x,y,z]] (two parallel planar faces of one part: the plane midway between them, with optional snap?: a reference on the same occurrence projected onto that midplane), or face|circle: "<face name>", sketch: id|name with point|curve, plane: "XY"|"o:<ids>/origin/<item>"|"<name>", axis: "Z"|"o:<ids>/origin/<item>"|"<name>"; z? for a point, end?, x? as joint.origin} | origin name
values[angles in deg or expressions, distances]No
limits[[min, max] | null…]No
flipboolNodefault false: the origins are mated, b's z against a's as two faces meet - two plane or axis datums mate aligned, each part keeping its side of the datum, and flip mates them; true: b's z along a's, so two origins given at one point with the same z and x stay as they are; a point origin without x takes its x from z, so give x on both, or use joint.as_built, to keep a turned part where it is
offset_xlateral mm in a's frame or an expression the joint followsNo
offset_ylateral mm in a's frame or an expression the joint followsNo
offsetmm or an expressionNo
angledeg or an expressionNoan angle relation's tilt from mated; for other joints the default is none, or a half turn where that turns b less, so faces that already meet stay as they are
nameNo
Automation details

Command ID: joint.create

Parameters:

type: rigid|revolute|slider|cylindrical|pin_slot|planar|ball, or a relation: parallel|perpendicular|angle|point_on_plane|point_on_line|line_on_plane (ties only some directions or points, made where the parts are; several between two parts add up); a, b: joint origins ({occurrence, face|circle|edge|point: [x,y,z] in world, faces: [[x,y,z],[x,y,z]] (two parallel planar faces of one part: the plane midway between them, with optional snap?: a reference on the same occurrence projected onto that midplane), or face|circle: "<face name>", sketch: id|name with point|curve, plane: "XY"|"o:<ids>/origin/<item>"|"<name>", axis: "Z"|"o:<ids>/origin/<item>"|"<name>"; z? for a point, end?, x? as joint.origin} | origin name); values?: [angles in deg or expressions, distances]; limits?: [[min, max] | null…]; flip?: bool (default false: the origins are mated, b's z against a's as two faces meet - two plane or axis datums mate aligned, each part keeping its side of the datum, and flip mates them; true: b's z along a's, so two origins given at one point with the same z and x stay as they are; a point origin without x takes its x from z, so give x on both, or use joint.as_built, to keep a turned part where it is); offset_x?, offset_y?: lateral mm in a's frame or an expression the joint follows; offset?: mm or an expression; angle?: deg or an expression (an angle relation's tilt from mated; for other joints the default is none, or a half turn where that turns b less, so faces that already meet stay as they are); name?; quiet?: bool (leave out dof and fixed). An expression for offset, angle or a value is kept with the joint and worked out again whenever the design changes, so the joint follows the parameters it names; a joint whose expression no longer works out (a parameter deleted) is left out of the solve with the reason in its errors

As-Built Joint

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
typeYes
aoccurrenceYes
boccurrenceYesstay where they are
atjoint originNodefault: b's origin
nameNo
limits[[min, max] | null…]No
quietboolNo
Automation details

Command ID: joint.as_built

Parameters:

type, a: occurrence, b: occurrence (stay where they are); at?: joint origin (default: b's origin) — the joint's frame; one on a or b is kept on its face or hole there, so the joint follows it as the design changes; name?; limits?: [[min, max] | null…]; quiet?: bool

Rigid Group

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrences[ids or names]Yesmove together, as they are
Automation details

Command ID: joint.rigid_group

Parameters:

occurrences: [ids or names] (move together, as they are)

Drive Joints

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
jointid|nameYes
value[angles in deg or expressions, distances]Yesvalues not given keep theirs; a value driven drops the expression joint.create gave it; clamped to the limits; the other joints of a closed loop follow, and the motion stops where the loop can no longer close → stopped_by_loop
values[angles in deg or expressions, distances]Yesvalues not given keep theirs; a value driven drops the expression joint.create gave it; clamped to the limits; the other joints of a closed loop follow, and the motion stops where the loop can no longer close → stopped_by_loop
quietboolNoleave out dof and fixed
Automation details

Command ID: joint.drive

Parameters:

joint: id|name; value | values: [angles in deg or expressions, distances] (values not given keep theirs; a value driven drops the expression joint.create gave it; clamped to the limits; the other joints of a closed loop follow, and the motion stops where the loop can no longer close → stopped_by_loop); quiet?: bool (leave out dof and fixed) → values: [{name, value, unit: deg|mm, limits}] as joint.list gives them; requested: the values asked for, in the same form; held: [{name, requested, value, unit, why}] for each driven value that ended up elsewhere (a motion link sets it, as a screw's travel follows its turn; a limit; contact; a closed loop); warnings?: [string] (one for each value asked for beyond its limits, which holds it at the limit); moved: whether any occurrence moved; reason: why the joint can move nothing (suppressed: nothing is stored; its origins lost; its chain joined to nothing grounded → unconnected: the occurrence named; or, when nothing moved, the first held value's why); index?: zero-based coordinate to drive with value (the other coordinates follow); continuous?: bool (drag frame, suppress UI echo); stop_at_budget?: bool (default false: a contact check past its sample or work budget fails the drive; true: the drive stops at the last placement checked clear → stopped_by_budget {budget: samples|work|intersections, fraction})

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
ajointsYes
bjointsYes
ratioYesb = ratio · a + offset
offsetin b's unitsNodeg for an angle, mm for a distance, or an expression
iavalue indicesNo
ibvalue indicesNodefault 0
linkindexNoput this link in place of that motion link, as the gear and cam commands do
Automation details

Command ID: joint.motion_link

Parameters:

a, b: joints; ratio (b = ratio · a + offset): b's units per a's (mm per deg for an angle driving a distance); offset?: in b's units (deg for an angle, mm for a distance, or an expression); ia?, ib?: value indices (default 0); link?: index (put this link in place of that motion link, as the gear and cam commands do) → link: the link's index, as joint.list numbers them

Gear

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
internalboolNoone is a ring gear: both turn the same way; by default b turns the other way
reverseboolNo
linkindexNoreplace that motion link; a radius left out then keeps the old gear's, picked round face included
Automation details

Command ID: joint.gear

Parameters:

a, b: joints that turn (revolute), b driven by a; ra, rb: the gears' pitch radii (or tooth counts): mm, an expression, or {circle: [x,y,z], occurrence?}: the round face there, its radius (read again whenever the design changes, so the ratio follows edits); internal?: bool (one is a ring gear: both turn the same way; by default b turns the other way); reverse?: bool; link?: index (replace that motion link; a radius left out then keeps the old gear's, picked round face included) → link, ratio (b's degrees per a's); b keeps where it is, also when the link replaces another (at the current pose)

Rack and Pinion

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
radiusthe pinion's pitch radiusYesmm, an expression, or {circle: [x,y,z], occurrence?}
reverseboolNo
linkindexNoreplace that motion link; the radius left out then keeps the old pinion's, picked round face included
Automation details

Command ID: joint.rack_pinion

Parameters:

a, b: a joint that turns (revolute: the pinion) and one that slides (slider: the rack), in either order, b driven by a; radius: the pinion's pitch radius (mm, an expression, or {circle: [x,y,z], occurrence?}): the rack travels radius × the turn in radians; reverse?: bool; link?: index (replace that motion link; the radius left out then keeps the old pinion's, picked round face included) → link, ratio (mm per degree, or degrees per mm); b keeps where it is, also when the link replaces another (at the current pose)

Screw

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
pitchtravel per turnYesmm or an expression
reverseboolNoa left-hand thread
linkindexNoreplace that motion link; the pitch left out then keeps the old screw's
Automation details

Command ID: joint.screw

Parameters:

joint: a cylindrical joint (its turn drives its travel) | a, b: a joint that turns and one that slides, b driven by a; pitch: travel per turn (mm or an expression); reverse?: bool (a left-hand thread); link?: index (replace that motion link; the pitch left out then keeps the old screw's) → link, ratio (mm per degree, or degrees per mm); b keeps where it is, also when the link replaces another (at the current pose)

Cam

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
athe cam's jointYesrevolute
followerknife|roller|flatNodefault knife; flat: a face square to a slider's line
radiusthe roller's radiusNomm, an expression or {circle: [x,y,z], occurrence?}: the roller's round face, which is its tip too
flipboolNoride the cam from the other side than the one the follower is on now
linkindexNoreplace that motion link; profile, follower, radius and tip left out then keep that cam's definition, picked profile and round face included, and flip left out keeps the side it rides from now
Automation details

Command ID: joint.cam

Parameters:

a: the cam's joint (revolute); b: the follower's joint, a slider (a translating follower) or a revolute (an oscillating one),          b driven by a; profile: {sketch: id|name, index?: the profile (default: the largest)} | {edges: [[x,y,z]…] (points on edges of          the cam's bodies forming one closed loop, world), occurrence?}: the cam's outline, in a plane square to its axis, read again          whenever the design changes; follower?: knife|roller|flat (default knife; flat: a face square to a slider's line); radius?: the          roller's radius (mm, an expression or {circle: [x,y,z], occurrence?}: the roller's round face, which is its tip too); tip?: a          joint origin where the follower touches: its knife's point or its roller's centre, such as {circle: [x,y,z]} on the roller          (needed for an oscillating follower; a translating one's line runs through it, by default along its slider's axis); flip?: bool (ride the cam from the other side          than the one the follower is on now); link?: index (replace that motion link; profile, follower, radius and tip left out then keep that cam's definition, picked profile and round face included, and flip left out keeps the side it rides from now) → link, lift: {min, max, rise, unit} (b's travel          over a turn of the cam), reverse (the side it rides from), follower_offset (mm: how far a translating follower's line passes          from the cam's axis); b keeps where it is, also when the link replaces another (at the current pose)

Constrain

Command group: SOLID › ASSEMBLE

Read the solid features guide.

ParameterTypeRequiredDescription
typemate|flush|distance|concentric|insert|parallel|perpendicular|angle|tangent|point_on_axis|centerYesa between-faces reference midway between two faces
offsetthe gapNomm or an expression; needed for distance
angledeg or an expressionNoneeded for angle
flipturn b overNo
nameNodefault: the rule and a number, Mate1
Automation details

Command ID: assembly.constraint.create

Parameters:

type: mate|flush|distance|concentric|insert|parallel|perpendicular|angle|tangent|point_on_axis|center (a between-faces reference midway between two faces); a, b: references, as joint.create's origins (a planar face or a datum plane for a plane, a round face, circle or axis for an axis, a point; b moves); offset?: the gap (mm or an expression; needed for distance); angle?: deg or an expression (needed for angle); flip?: turn b over; name? (default: the rule and a number, Mate1); quiet?. Kept as a joint of the kind the rule needs (mate, flush and center planar, distance planar or point on plane, concentric cylindrical, insert revolute, tangent line on plane, point on axis point on line), made where the parts are, so b moves no further than the rule needs → joint, name, dof, conflicts, fixed as joint.create

Enable Contact Sets

Command group: SOLID › ASSEMBLE

Read the solid features guide.

ParameterTypeRequiredDescription
enabledboolNodefault true
Automation details

Command ID: contact.enable_sets

Parameters:

enabled?: bool (default true) — driving joints and motion studies stop where bodies in one contact set would pass through each other

Enable All Contact

Command group: SOLID › ASSEMBLE

Read the solid features guide.

Automation details

Command ID: contact.enable_all

Parameters:

every occurrence takes part in contact (one set of all)

Disable Contact

Command group: SOLID › ASSEMBLE

Read the solid features guide.

Automation details

Command ID: contact.disable_all

Parameters:

contact off

New Contact Set

Command group: SOLID › ASSEMBLE

Read the solid features guide.

ParameterTypeRequiredDescription
occurrences[ids or names]Yestwo or more
nameNo
Automation details

Command ID: contact.create

Parameters:

occurrences: [ids or names] (two or more); name?

Motion Study

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
nameNo
studyNoedit an existing one
stepsNotimeline length, default 100
keys[{joint, index?, points: [[step, value], …], expressions?}]Yesvalues: degrees for angles, mm for distances, or expressions; optional `expressions` matches `points` in length with `null` for plain numbers so `motion.list` keys round-trip unchanged; expressions naming parameters are kept and re-evaluated when parameters or configurations change
Automation details

Command ID: motion.study

Parameters:

name?; study? (edit an existing one); steps? (timeline length, default 100); keys: [{joint, index?, points: [[step, value], …], expressions?}] (values: degrees for angles, mm for distances, or expressions; optional `expressions` matches `points` in length with `null` for plain numbers so `motion.list` keys round-trip unchanged; expressions naming parameters are kept and re-evaluated when parameters or configurations change) → study, name, steps, keys, warnings?: [string] (one for each key that asks a joint value for more than its limits allow: motion.play holds the value at the limit)

Motion Trace

Command group: SOLID › ASSEMBLE

Read the components and joints guide.

ParameterTypeRequiredDescription
studyid|nameYes
jointid|name with from and toYesdegrees for angles, mm for distances, or expressions
Automation details

Command ID: motion.trace

Parameters:

occurrence: id|name, or an occurrence path [ids] (an instance inside sub-assemblies); point: [x,y,z] world point on it, where it is placed now; study: id|name, or joint: id|name with from and to (degrees for angles, mm for distances, or expressions) and index? (which value, default 0); samples? (2…500, default the study's steps + 1, or 100) - the point's path as the study plays or the joint is driven, closed loops following → points: [[x,y,z]…] world positions, samples (taken), stopped_at (the sample where the motion stopped short; the trace ends there), stopped_by_loop, stopped_by_contact (the design is not changed)

Exploded View

Command group: SOLID › ASSEMBLE

Read the solid features guide.

ParameterTypeRequiredDescription
nameNo
scaleNoautomatic: occupied sibling groups pushed away from their mean centre by scale × their offset, default 1
moves[{occurrence, translate: [x,y,z]}]Noinstead of automatic
Automation details

Command ID: explode.create

Parameters:

name?; scale? (automatic: occupied sibling groups pushed away from their mean centre by scale × their offset, default 1); moves?: [{occurrence, translate: [x,y,z]}] (instead of automatic)

SOLID › POSITION

Capture Position

Command group: SOLID › POSITION

Read the components and joints guide.

Automation details

Command ID: component.capture_position

Parameters:

keeps pending occurrence moves and saves every moving joint's values → captured, joints

Revert Position

Command group: SOLID › POSITION

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrences[ids]Nodefault all
Automation details

Command ID: component.revert_position

Parameters:

occurrences?: [ids] (default all); drops selected pending occurrence moves; with no occurrences the joints also go back to the values Capture Position saved (clamped to limits) → reverted, joints

SOLID › INSPECT

Interference

Command group: SOLID › INSPECT

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Nodefault: all, in world placement, but those in `against`; a name that is no body is refused
against[names]Noonly pairs with one body in `bodies` and the other here; a body named in both pairs with either, never with itself; a name that is no body is refused
skip_within"occurrence"| "component"| nullNopairs of bodies of one occurrence; pairs of bodies inside one placed component, its subcomponents included; every pair, as in inspect.clearance
budget_ssecondsNodefault 240, at most 86400: pairs not finished by then are listed in unchecked as "not checked: the time budget … ran out" and the call returns
exclude_pairs[[a, b]]Nopairs left out, such as a pin in its hole: each side a body's world name or an occurrence id|name, matching every body under it; pairs_excluded counts them
envelopesboolNodefault false: component envelopes, solid.bounding_solid with `component`, are left out unless named; true: each is checked instead of the bodies inside it, and a body named inside one means it; an envelope and a body inside it are never paired, counted in pairs_excluded
Automation details

Command ID: inspect.interference

Parameters:

bodies?: [names] (default: all, in world placement, but those in `against`; a name that is no body is refused); against?: [names] (only pairs with one body in `bodies` and the other here; a body named in both pairs with either, never with itself; a name that is no body is refused); skip_within?: "occurrence" (pairs of bodies of one occurrence) | "component" (pairs of bodies inside one placed component, its subcomponents included) | null (every pair, as in inspect.clearance); budget_s?: seconds (default 240, at most 86400: pairs not finished by then are listed in unchecked as "not checked: the time budget … ran out" and the call returns); exclude_pairs?: [[a, b]] (pairs left out, such as a pin in its hole: each side a body's world name or an occurrence id|name, matching every body under it; pairs_excluded counts them); envelopes?: bool (default false: component envelopes, solid.bounding_solid with `component`, are left out unless named; true: each is checked instead of the bodies inside it, and a body named inside one means it; an envelope and a body inside it are never paired, counted in pairs_excluded) → interferences: pairs that overlap with the overlap volume, area, bounding box and centre, and a_part, b_part: {component, path: [occurrence names], path_ids} where each body sits (also on unchecked pairs); unchecked: [{a, b, reason}], the pairs that could not be checked, with the reason, and each mesh body (STL, 3MF or OBJ import: not intersected) as {a: name, b: null, reason: "mesh body: not checked"}, so count: 0 is not read as no overlap (checked counts the solid bodies; with against, those of bodies). Bodies are pruned by bounding box first, then by their display meshes (pairs whose meshes stay apart by more than their chord tolerances, neither inside the other, are clear without a boolean), so any number of bodies is fine; the pairs left are intersected exactly, in parallel on desktop, the slowest first; at most 20000 pairs whose boxes overlap are intersected per call (truncated: true and skipped_pairs: n say when more were left out). Also: pairs_candidate (the pairs in scope, by bodies, against and skip_within, whose boxes overlap), pairs_cleared (by the meshes), pairs_intersected, pairs_not_checked, pairs_excluded, budget_exceeded, threads (worker threads; 0: on the calling thread), boolean_ms and tessellate_ms (kernel time summed over the pairs), slowest: [{a, b, ms, boolean_ms, tessellate_ms}] and ms

Bill of Materials

Command group: SOLID › INSPECT

Read the solid features guide.

ParameterTypeRequiredDescription
componentid or nameNodefault the design
levelsflat| top| allNodefault: every part at any depth, counted through its subassemblies; the component's direct children, subassemblies as one row each; as top, each subassembly's own rows listed after it, to any depth: items 1.1, 1.1.1, as in the CSV
show_purchased_contentstrueNoin all, a purchased part's contents listed under it too
show_suppressed_partstrueNoa part a configuration switches off, with no bodies and a suppressed feature of its own, listed as placed; by default it counts nowhere
group_by["part_number"]| ["definition"]Nodefault; components without a part number get a row per definition
group_childrentrueNoa component with a part number is one row, the parts placed inside it listed under it as children: [{item, part_number, description, revision, each, count, definition, material, mass_g?}], not as rows of their own
masstrueNomeasures each part: mass_g, what one of the row's parts weighs in grams with what is placed inside it, except what the list shows as rows of their own beside it (in parts only a part's contents are rows of their own, but not a folded part's or a purchased one's, and of an inseparable one's only its purchased parts are), so the rows add up to the assembly; a reference placement adds nothing; null when nothing in it has a body, a body can't be measured or the row's definitions differ
pathwrite a .csvNocolumns item, part_number, description, revision, count, definition, material, quantity, finish, and mass_g with mass
Automation details

Command ID: assembly.bom

Parameters:

component?: id or name (default the design); levels?: flat (default: every part at any depth, counted through its subassemblies) | top (the component's direct children, subassemblies as one row each) | all (as top, each subassembly's own rows listed after it, to any depth: items 1.1, 1.1.1, as in the CSV); show_purchased_contents?: true (in all, a purchased part's contents listed under it too); show_suppressed_parts?: true (a part a configuration switches off, with no bodies and a suppressed feature of its own, listed as placed; by default it counts nowhere); group_by?: ["part_number"] (default; components without a part number get a row per definition) | ["definition"]; group_children?: true (a component with a part number is one row, the parts placed inside it listed under it as children: [{item, part_number, description, revision, each, count, definition, material, mass_g?}], not as rows of their own); mass?: true (measures each part: mass_g, what one of the row's parts weighs in grams with what is placed inside it, except what the list shows as rows of their own beside it (in parts only a part's contents are rows of their own, but not a folded part's or a purchased one's, and of an inseparable one's only its purchased parts are), so the rows add up to the assembly; a reference placement adds nothing; null when nothing in it has a body, a body can't be measured or the row's definitions differ); path?: write a .csv (columns item, part_number, description, revision, count, definition, material, quantity, finish, and mass_g with mass) or .json file (children as items 1.1, 1.2…); format?: csv|json (default from the path). Each placement counts as its occurrence's bom_type, else its component's: phantom has no row (what it holds counts here; its own bodies, if it has any, are a row of their own), reference counts nowhere, purchased and inseparable are one row (in flat, an inseparable one's purchased parts are listed too, under it with group_children and a part number); placements of one component that count as different types are different rows → rows: [{item, part_number, description, revision, bom_type, count, definition, finish (the part's finish property, else a free property named finish), material (the physical materials of the definitions' own bodies, "; " between them; a row that weighs what is placed inside it shows the one material all of that shares, else ""), mass_g?, quantity? (when its definitions have a bom_quantity: what its placements add up to, a number with quantity_unit pieces or mm, a placement without one counting 1 piece; null with quantity_unknown mixed (pieces and a length) or invalid (a quantity that no longer evaluates)), components, properties, children?, static? (["material"]: a value typed in for the component, shown in place of the worked-out one)}] sorted by part number, total_occurrences (children included), total_mass_g (with mass: what the assembly weighs, measured from the design rather than added up from rows; null when unknown), numbered (the view's item numbers are saved: assembly.bom.renumber). In a numbered view each level is listed by item number and a row says provisional (its number not saved yet: a row added since shows the next number at its level, saved by the next change), locked and duplicate when true

Component Colors

Command group: SOLID › INSPECT

Read the solid features guide.

ParameterTypeRequiredDescription
enabledboolNoomitted: toggle
Automation details

Command ID: inspect.colored_components

Parameters:

enabled?: bool (omitted: toggle); temporary component colours, without changing appearances

Measure

Command group: SOLID › INSPECT

Default keyboard shortcut: I

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Nodefault all
within{min:[x,y,z], max:[x,y,z]}Noworld mm
modeintersects|insideNodefault intersects, includes touching
names_onlyboolNoeach world body's name and its definition's, nothing measured
Automation details

Command ID: inspect.measure

Parameters:

bodies?: [names] (default all); within?: {min:[x,y,z], max:[x,y,z]} (world mm); mode?: intersects|inside (default intersects, includes touching); names_only?: bool (each world body's name and its definition's, nothing measured) → closed per body; volume_mm3, center_of_mass, density_g_cm3 and mass_g only for closed, consistently oriented bodies; area, bbox and counts for all; total.open_bodies_skipped counts bodies excluded from volume/mass totals; unmeasured_bodies?: [{body, reason}] and warnings? name bodies that could not be measured at all (left out of every total); or items: [1-2 selections, or 3-64 round edges or cylinder faces with parallel axes] (face/edge: type, body, and point on it or index from model.faces/model.edges, or both) → length/area/volume; a face's perimeter_mm, with outer_perimeter_mm and inner_perimeter_mm on a flat face with holes; diameter, radius, circumference or arc_length/angle_deg of circles, arcs and cylinders; slot sizes; min (distance_mm, from, to), max, center_distance (centre to centre, or from an axis) and angle; three or more round items (a row of holes, a bolt circle): spacing {pattern: line|circle|none, order, gaps (centre to centre, in order along the row or round the circle), span, even, pitch, odd_gaps, and for a circle pcd, pcd_center, angle_deg}

Section Analysis

Command group: SOLID › INSPECT

Read the solid features guide.

ParameterTypeRequiredDescription
planeXY|XZ|YZ | construction plane name or id | {origin, normal}Yes
flipboolNohide the other side; the plane stays where it is
hatchboolNohatch the cut faces, in each body's colour; default true, or as it was with add or replace
addboolNoadd the plane to the section, starting one if there is none, instead of replacing it: each plane hides what lies on its positive side, so the section keeps only what every plane keeps, a quarter for two square planes; at most 6 planes, hidden ones included; the new plane takes the lowest id no plane has
replacea plane's idNomove that plane to `plane`, keeping its id and the others; a hidden one is shown
removea plane's idYestake that plane out; the last turns the section off
folderfalseYeshide the Analysis folder: the planes on show stop cutting and come back with folder: true; while it is hidden, hide and show change only which planes come back, and a plane added or moved shows it again, with them
cleartrueYesall planes
Automation details

Command ID: inspect.section

Parameters:

plane: XY|XZ|YZ | construction plane name or id | {origin, normal}; offset?: expr, how far the cut moves against the plane's normal as given (before any flip), so a positive distance cuts more away: into the part from a face's outward plane (XY: -Z, XZ: -Y, YZ: -X; negative moves it the other way); at?: expr, the cut's world coordinate on the named plane's axis (XY: Z, XZ: Y, YZ: X), instead of offset; flip?: bool (hide the other side; the plane stays where it is); hatch?: bool (hatch the cut faces, in each body's colour; default true, or as it was with add or replace); add?: bool (add the plane to the section, starting one if there is none, instead of replacing it: each plane hides what lies on its positive side, so the section keeps only what every plane keeps, a quarter for two square planes; at most 6 planes, hidden ones included; the new plane takes the lowest id no plane has); replace?: a plane's id (move that plane to `plane`, keeping its id and the others; a hidden one is shown); or remove: a plane's id (take that plane out; the last turns the section off); or hide / show: a plane's id or [ids] (a hidden plane stays in the section and cuts nothing until shown); or folder: false (hide the Analysis folder: the planes on show stop cutting and come back with folder: true; while it is hidden, hide and show change only which planes come back, and a plane added or moved shows it again, with them); or clear: true (all planes). Each change is one undo step; the design is untouched. Returns section: the plane made {id, origin, normal, hatch, and for a named plane axis and at} (null when the section is off, or for remove, hide, show and folder), planes: [{id, origin, normal, hidden}], every plane of the section by id, and folder: null, or while the folder is hidden the ids that come back with it

SOLID › CONFIGURE

Configure

Command group: SOLID › CONFIGURE

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
params[parameter names]No
features[feature names]No
joints[joint ids or names]No
materials[body names]No
appearances[body names]No
folders[folder ids or names]Nocolumns to add; with no rows yet, a "Default" row takes the current values
Automation details

Command ID: config.configure

Parameters:

params?: [parameter names]; features?: [feature names]; joints?: [joint ids or names]; materials?: [body names]; appearances?: [body names]; folders?: [folder ids or names] (columns to add; with no rows yet, a "Default" row takes the current values)

Display Configuration Table

Command group: SOLID › CONFIGURE

Read the parameters and expressions guide.

Automation details

Command ID: config.table

Parameters:

→ columns (param:<name>, suppress:<feature>, suppress_joint:<joint>, suppress_folder:<folder>, …), rows (each with its fixed id), the active row's name and whether the design still matches it

SKETCH › FINISH SKETCH

Finish Sketch

Command group: SKETCH › FINISH SKETCH

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
restore_markerboolNodefault true
Automation details

Command ID: sketch.finish

Parameters:

restore_marker?: bool (default true); false transfers the temporary marker directly to another editor without rebuilding the intervening timeline. A model sketch reports features that worked before the edit and now fail in `failing`

Cancel Sketch

Command group: SKETCH › FINISH SKETCH

Read the sketching and constraints guide.

Automation details

Command ID: sketch.cancel

Parameters:

Leaves the sketch without keeping what changed since it was created or opened for editing: the design goes back to how it was then (a new sketch is removed), as one step that Undo brings back. Refused when the undo history no longer leads back to that point (use Undo instead). restore_marker?: bool (default true); false transfers the temporary marker to another editor

Finish with AutoConstrain

Command group: SKETCH › FINISH SKETCH

Read the sketching and constraints guide.

Automation details

Command ID: sketch.finish_auto_constrain

Parameters:

like AutoConstrain, then Finish Sketch

SKETCH › CREATE

Line

Command group: SKETCH › CREATE

Default keyboard shortcut: L

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
points[[x,y] | "l1.end" | {at, ref}…]Yesx and y each a number or an expression over the design's parameters and the sketch's other points ("p1.x"), "W / 2": such a point is fixed where it comes to and follows the parameters, while text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the point; likewise wherever a point argument also takes a point id
closedboolNo
constructionboolNo
ids[..]No
inferboolNoadd horizontal/vertical
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.line

Parameters:

points: [[x,y] | "l1.end" | {at, ref}…] (x and y each a number or an expression over the design's parameters and the sketch's other points ("p1.x"), "W / 2": such a point is fixed where it comes to and follows the parameters, while text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the point; likewise wherever a point argument also takes a point id), closed?: bool, construction?: bool, ids?: [..], infer?: bool (add horizontal/vertical); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

2-Point Rectangle

Command group: SKETCH › CREATE

Default keyboard shortcut: R

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
equalboolNodefault false; use the larger corner extent to place a square and keep adjacent sides equal
constructionNo
rotatableboolNohold the sides parallel and perpendicular with only the bottom horizontal, so deleting that constraint lets the rectangle turn; default false: each side horizontal or vertical
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.rectangle.two_point

Parameters:

p0, p1: opposite corners [x,y] (a coordinate may be an expression over the design's parameters and the sketch's other points ("p1.x"): the corner is fixed and follows them; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the corner), or a snap that holds the corner there, as `sketch.point` takes one: "mid:<line>", "on:<curve>:x,y", "x:<a>+<b>:x,y", "vertex:x,y,z", {vertex: [x,y,z]} or {on_edge: [x,y,z]} of the model; equal?: bool (default false; use the larger corner extent to place a square and keep adjacent sides equal); construction?; rotatable?: bool (hold the sides parallel and perpendicular with only the bottom horizontal, so deleting that constraint lets the rectangle turn; default false: each side horizontal or vertical). Returns sides {bottom, right, top, left} (line ids) and corners {bottom_left, bottom_right, top_right, top_left} (point ids); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3-Point Rectangle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0first edgeYes
p1first edgeYes
p2point on the opposite edgeYes
equalboolNodefault false; keep the first edge's length and direction, use p2 to choose the square's side, and keep adjacent sides equal
constructionboolNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.rectangle.three_point

Parameters:

p0, p1: first edge; p2: point on the opposite edge; equal?: bool (default false; keep the first edge's length and direction, use p2 to choose the square's side, and keep adjacent sides equal); construction?: bool; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Rounded Rectangle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0opposite corners [x,y]Yes
p1opposite corners [x,y]Yesa coordinate may be an expression over the design's parameters and the sketch's other points ("p1.x"): the corner is fixed and follows them, as in `sketch.rectangle.two_point`; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the corner
radiusexprYesthe corner radius, less than half the shorter side
equalboolNodefault false; use the larger corner extent to place a square before checking the radius, and keep adjacent straight sides equal after rounding
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.rectangle.rounded

Parameters:

p0, p1: opposite corners [x,y] (a coordinate may be an expression over the design's parameters and the sketch's other points ("p1.x"): the corner is fixed and follows them, as in `sketch.rectangle.two_point`; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the corner); radius: expr (the corner radius, less than half the shorter side); equal?: bool (default false; use the larger corner extent to place a square before checking the radius, and keep adjacent straight sides equal after rounding); construction?. A 2-point rectangle whose four corners are filleted alike: one radius dimension (`param`), the other arcs equal to it. Returns sides {bottom, right, top, left} (line ids) and arcs (the corner arcs: bottom-left, bottom-right, top-right, top-left), diagonal (construction, between the bottom-left and top-right arc centres) and centre (the point held at its midpoint); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Center Rectangle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
equalboolNodefault false; use the larger centre-to-corner extent to place a square and keep adjacent sides equal
constructionboolNo
rotatableboolNoas in `sketch.rectangle.two_point`
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.rectangle.center

Parameters:

center, corner: [x,y] (a coordinate may be an expression over the design's parameters and the sketch's other points ("p1.x"): the point is fixed and follows them; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the point), or a snap that holds the point there, as `sketch.point` takes one: "mid:<line>", "on:<curve>:x,y", "x:<a>+<b>:x,y", "vertex:x,y,z", {vertex: [x,y,z]} or {on_edge: [x,y,z]} of the model; equal?: bool (default false; use the larger centre-to-corner extent to place a square and keep adjacent sides equal); construction?: bool; rotatable?: bool (as in `sketch.rectangle.two_point`). Returns sides {bottom, right, top, left} (line ids) and corners {bottom_left, bottom_right, top_right, top_left} (point ids); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Edge Center Rectangle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
corner[x,y]Yesa corner of the opposite edge
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.rectangle.edge_center

Parameters:

anchor: [x,y], a point id or "mid:<line>" (the midpoint of one edge); corner: [x,y] (a corner of the opposite edge); orientation of the anchored edge, one of direction: [dx,dy] | line: curve id (parallel to it) | none when anchor is "mid:<line>" (that line's direction); construction?: bool. The rectangle extends from the anchor toward the corner: its width is the corner's distance from the anchored edge, its half-length the corner's offset along the edge. Returns sides {anchor, side_a, far, side_b} (line ids) and corners {anchor_start, anchor_end, far_end, far_start} (point ids); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Center Diameter Circle

Command group: SKETCH › CREATE

Default keyboard shortcut: C

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
center[x,y] or point refYesa coordinate may be an expression over the design's parameters and the sketch's other points ("p1.x"): the centre is fixed and follows them; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the centre
radiusnumber or expressionYesan expression naming a parameter is a dimension driven by it; with `through` a point ref, that and the point both fix the radius
diameternumber or expressionYesan expression naming a parameter is a dimension driven by it; with `through` a point ref, that and the point both fix the radius
throughpoint refNoa point the circle passes through, kept on it: where the tool's second click snapped
constructionboolNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.circle.center

Parameters:

center: [x,y] or point ref (a coordinate may be an expression over the design's parameters and the sketch's other points ("p1.x"): the centre is fixed and follows them; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the centre), radius | diameter: number or expression (an expression naming a parameter is a dimension driven by it; with `through` a point ref, that and the point both fix the radius); through?: point ref (a point the circle passes through, kept on it: where the tool's second click snapped); construction?: bool; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

2-Point Circle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0diameter endsYes
p1diameter endsYes
constructionboolNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.circle.two_point

Parameters:

p0, p1: diameter ends; construction?: bool; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3-Point Circle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0[x,y] or point refYes
p1[x,y] or point refYes
p2[x,y] or point refYesa referenced point stays on the circle
constructionboolNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.circle.three_point

Parameters:

p0, p1, p2: [x,y] or point ref (a referenced point stays on the circle); construction?: bool; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3-Point Arc

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
start[x,y] or point refYes
end[x,y] or point refYes
through[x,y] or point refYesa referenced through point stays on the arc
constructionboolNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.arc.three_point

Parameters:

start, end, through: [x,y] or point ref (a referenced through point stays on the arc); construction?: bool; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Center Point Arc

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
centerYes
startYes
endYescounter-clockwise from start; clockwise?: bool for clockwise
centerYes
startYes
sweepsigned degreesYes
constructionboolNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.arc.center_point

Parameters:

center, start, end (counter-clockwise from start; clockwise?: bool for clockwise) | center, start, sweep: signed degrees; construction?: bool; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Inscribed Polygon

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
centerYes
radiusYesto vertices
sidesYes
angledegNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.polygon.inscribed

Parameters:

center, radius (to vertices), sides, angle?: deg; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Circumscribed Polygon

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
centerYes
radiusYesto edge midpoints
diameterYesto edge midpoints
sidesnumber or expressionYesread when drawn, it does not follow a later change
angledegNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.polygon.circumscribed

Parameters:

center, radius | diameter (to edge midpoints): number or expression (an expression naming a parameter is a dimension driven by it, so the polygon follows the parameter; on a sheet sketch the dimension keeps the expression and reads source parameters without defining any), sides: number or expression (read when drawn, it does not follow a later change), angle?: deg; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Edge Polygon

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0Yes
p1one edgeYes
sidesYes
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.polygon.edge

Parameters:

p0, p1: one edge, sides; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Center to Center Slot

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0Yes
p1arc centresYes
widthnumber or expressionYesan expression naming a parameter is a dimension driven by it
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.slot.center_to_center

Parameters:

p0, p1: arc centres, width: number or expression (an expression naming a parameter is a dimension driven by it); returns centre_line (construction, between the arc centres) and middle (the point held at its midpoint); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Overall Slot

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
p0Yes
p1overall endsYes
widthnumber or expressionYesan expression naming a parameter is a dimension driven by it
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.slot.overall

Parameters:

p0, p1: overall ends, width: number or expression (an expression naming a parameter is a dimension driven by it); returns centre_line (construction, between the arc centres) and middle (the point held at its midpoint); connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Point

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
idNo
connectboolNodefault true: a new point landing exactly on an existing point, the origin too, is made coincident with it
Automation details

Command ID: sketch.point

Parameters:

point: [x,y] (each a number or an expression over the design's parameters and the sketch's other points ("p1.x"): the point is then fixed where it comes to and follows them; text naming no parameter, such as "5", is just that number, in the design's length unit (a JSON number is mm), and does not itself fix the point) or a snap: "mid:<line>" (held at the line's midpoint), "on:<curve>:x,y" (on the curve near x,y), "x:<a>+<b>:x,y" (at the crossing of two curves near x,y), {vertex: [x,y,z]} or {on_edge: [x,y,z]} of the model; id?; connect?: bool (default true: a new point landing exactly on an existing point, the origin too, is made coincident with it). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Sketch Dimension

Command group: SKETCH › CREATE

Default keyboard shortcut: D

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
half_axesboolNodefault true; false: with auto, the minor radius wherever text_at is, as before half-axes, which the Dimension tool sends with Draw ellipses with their axes off
Automation details

Command ID: sketch.dimension

Parameters:

entities: [refs] (3D sketch geometry too, #10608: a drawn 3D line for its length, two 3D points such as "w1.start" for their distance, with type distance_x / distance_y / distance_z for the run along an axis, two drawn 3D lines for the angle between them, a drawn 3D arc for its radius, two points one of them an included model point or a 2D point, a 3D point and a plane (xy / yz / xz, a construction plane's name, or {face: [x,y,z], body?} on a planar model face) for its distance from the plane (keeping the side it is on), a drawn 3D line and a plane for its angle to the plane (0 to 90°); driven and value work as below; a line midpoint is "mid:line_id"; a model edge or vertex, {edge: [x,y,z], body?} or {vertex: [x,y,z], body?}, is projected into the sketch first and measured there: a point against the projected edge measures the distance to it), type?: auto|distance|horizontal|distance_x|vertical|distance_y|length|radius|diameter|major|minor|angle, value?: number or expression (default: current; a bare number is in the design's units, e.g. 2 means 2 in in an inch design; give a unit such as "50 mm" to override), or `name = expression` (e.g. "width = 40"; also `#name = expression`), which adds the user parameter `name` with that expression and dimensions with `name` (refused when the name is taken or reserved; the reply's `defined` names it); text_at?: [x, y]. Two points or a line off the axes: with auto, text_at across from them (between the perpendiculars through them, or a tenth of their distance past) is the distance between them; pulled further past an end, up or down from it horizontal, sideways vertical. Two midpoints: placing text above or below their bounding box measures horizontally, beside it vertically, anywhere else (inside it or past its corners) the distance between them. Two lines: the angle between them (acute, or 180° − it when the value is nearer that) unless text_at picks a sector. A line and a circle or arc: the distance from the line to its edge (the gap, or how far the edge reaches past a line that cuts it; 0 is tangent); dimension the centre point for the distance to the centre. A point and a circle or arc: the distance from the point to its edge (or how far within it a point inside lies). Two circles or arcs: the gap between their edges (or how far they overlap when they cross, or the narrowest gap between them when one lies inside the other), or the centre-to-centre distance when they are the two caps of a slot. An ellipse: a half-axis, the distance from the centre to an axis end (major or minor; with auto, text_at pulled across the major axis gives the major half-axis, pulled out past an end of it the minor one, the minor without text_at; previous_axis?: major|minor, the half-axis an earlier placement chose, kept while text_at is near the boundary between them; the reply's axis names the one chosen; with auto, when a driving dimension already holds one half-axis (or its whole axis), the other one, wherever text_at is; without its major axis line the major half-axis goes to the ellipse's own major end, without its minor axis line the minor half-axis is the minor radius); any other type, radius among them, the minor radius; an ellipse's axis line with auto: its length, the whole axis, wherever text_at is; half_axes?: bool (default true; false: with auto, the minor radius wherever text_at is, as before half-axes, which the Dimension tool sends with Draw ellipses with their axes off). An arc and one of its end points: the arc's length (type arc_length does it from the arc alone). A dimension the sketch already determines is refused (naming what determines it); if_redundant?: "driven" places it as a driven (reference) dimension instead. scale_sketch?: bool (the dimension tool sends the Sketch preference, on by default): when this is the sketch's first length dimension and nothing in the sketch fixes a size (no other driving length dimension, nothing fixed or projected), the whole sketch scales to the value instead of distorting: about the origin when the drawing is tied to it (joined to the origin, or constrained to a sketch axis), otherwise about the middle of the drawing, so it stays where it was drawn (#11043); scale_about_origin?: bool (default false; the dimension tool sends the Sketch preference) scales about the origin always, as before #11043. Returns measured in unit (mm or deg), and scaled: the factor when the sketch was scaled

Normal/Construction

Command group: SKETCH › CREATE

Default keyboard shortcut: X

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[ids]Yes
valueboolNodefault: construction unless all of them already are
Automation details

Command ID: sketch.construction

Parameters:

curves: [ids], value?: bool (default: construction unless all of them already are)

Midpoint Line

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
end[x,y]Yes
Automation details

Command ID: sketch.line.midpoint

Parameters:

mid: [x,y], point ref or snap ("mid:<line>", "on:<curve>:x,y", model vertex/edge); end: [x,y]; construction?. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Tangent Arc

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
startend point of a line or arcYes"l1.end"
end[x,y] or an existing point's idYes"l2.start": the arc ends on that point
curvethe curve to be tangent toNodefault: the one ending at start
Automation details

Command ID: sketch.arc.tangent

Parameters:

start: end point of a line or arc ("l1.end"), end: [x,y] or an existing point's id ("l2.start": the arc ends on that point); curve?: the curve to be tangent to (default: the one ending at start). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

2-Tangent Circle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[two lines/circles/arcs]Yes
radiusexprYes
diameterexprYes
near[x,y]Yeswhich of the solutions
Automation details

Command ID: sketch.circle.two_tangent

Parameters:

curves: [two lines/circles/arcs], radius | diameter: expr, near: [x,y] (which of the solutions). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3-Tangent Circle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[three lines/circles/arcs]Yes
near[x,y]Yeswhich of the solutions
Automation details

Command ID: sketch.circle.three_tangent

Parameters:

curves: [three lines/circles/arcs], near: [x,y] (which of the solutions). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Center Point Slot

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
centerslot centreYes
endone arc centreYes
widthnumber or expressionYesan expression naming a parameter is a dimension driven by it
Automation details

Command ID: sketch.slot.center_point

Parameters:

center: slot centre, end: one arc centre, width: number or expression (an expression naming a parameter is a dimension driven by it); returns centre_line and middle. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Three Point Arc Slot

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
startYes
throughYes
endpoints on the centre arcYes
widthnumber or expressionYesan expression naming a parameter is a dimension driven by it
Automation details

Command ID: sketch.slot.arc_three_point

Parameters:

start, through, end: points on the centre arc, width: number or expression (an expression naming a parameter is a dimension driven by it); returns centre_arc and middle. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Center Point Arc Slot

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
centerYes
startcentre arc startYes
enddirection of the centre arc endYescounter-clockwise
sweepdegreesYes0 < sweep < 360
widthnumber or expressionYesan expression naming a parameter is a dimension driven by it
Automation details

Command ID: sketch.slot.arc_center

Parameters:

center, start: centre arc start, end: direction of the centre arc end (counter-clockwise) or sweep: degrees (0 < sweep < 360), width: number or expression (an expression naming a parameter is a dimension driven by it); returns centre_arc and middle. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Ellipse

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
axesboolNodefault true; false: the ellipse alone, as the Ellipse tool draws it with Draw ellipses with their axes off
Automation details

Command ID: sketch.ellipse

Parameters:

center, major: end of the major axis [x,y] (a coordinate of either may be an expression over the design's parameters and the sketch's other points ("p1.x"): the point follows them), minor: a point the ellipse passes through on the minor side [x,y] | minor_radius: number or expression (an expression naming a parameter is a dimension driven by it). Also adds its major and minor axes as construction lines through the centre (their ends: the major end and the point opposite it, and the two ends of the minor axis on the ellipse), held by midpoint, perpendicular and point-on-curve constraints, so a half-axis is the distance from the centre to an axis end and an axis line's length is a full axis; axes?: bool (default true; false: the ellipse alone, as the Ellipse tool draws it with Draw ellipses with their axes off). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Fit Point Spline

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
points[[x,y] or point refs…]Yes2…500
Automation details

Command ID: sketch.spline.fit_point

Parameters:

points: [[x,y] or point refs…] (2…500): the spline passes through them; each fit point has an editable tangent handle whose direction and length control curvature, periodic?: boolean (default false); periodic cubic fit closes smoothly through at least 3 distinct samples. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Fit Spline Within Tolerance

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

Automation details

Command ID: sketch.spline.fit_tolerance

Parameters:

points: [[x,y]…] (2…10000, plain coordinates, in order along the contour): one fit point spline through as few of them as keep every given point within the tolerance, as a contour from a computation needs (traced, scanned or generated; sketch.spline.fit_point takes at most 500 and passes through each). tolerance?: mm (default 0.01, from 0.0001 to 10): how far any given point may stray from the spline. periodic?: boolean (default false): the contour closes smoothly (a closing repeat of the first point is dropped). Returns the curve, how many of the given points it passes through and the largest deviation reached (mm); when even 500 spline points do not reach the tolerance it refuses, naming the deviation, as sketch.equation_curve does. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Control Point Spline

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
pointscontrol pointsYes2…500
degreewhole number 1…9Nodefault 3, a cubic; fewer than degree + 1 points take the highest degree they allow
periodicbooleanNodefault false
control_polygoncreate selectable construction sidesNodefault false
Automation details

Command ID: sketch.spline.control_point

Parameters:

points: control points (2…500); degree?: whole number 1…9 (default 3, a cubic; fewer than degree + 1 points take the highest degree they allow); periodic?: boolean (default false): closes the control polygon into a loop (degree 3 to 9, at least degree + 1 points); control_polygon?: create selectable construction sides (default false). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Control Point Spline (Degree 5)

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
periodicbooleanNodefault false
control_polygoncreate selectable construction sidesNodefault false
Automation details

Command ID: sketch.spline.control_point_5

Parameters:

points: control points (2…500), degree 5; periodic?: boolean (default false): closes the control polygon into a loop (at least 6 points); control_polygon?: create selectable construction sides (default false). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Control Point Spline with Knots

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
pointscontrol pointsYes2…500
degree1…9Yes
Automation details

Command ID: sketch.spline.control_knots

Parameters:

points: control points (2…500); degree: 1…9; knots: the clamped knot vector, points + degree + 1 non-decreasing numbers (the first and last degree + 1 equal to its ends, no interior knot more than degree times): the curve is exactly this B-spline, drawn and extruded as given; weights?: one positive number per point (none: all 1), with degree 2 only (a rational quadratic, exact as conics). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Conic Curve

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
start[x,y] or point refsYes
end[x,y] or point refsYes
apex[x,y] or point refsYes
rho0…1Nodefault 0.5: parabola
Automation details

Command ID: sketch.conic

Parameters:

start, end, apex: [x,y] or point refs; rho?: 0…1 (default 0.5: parabola). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Centerline

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[line ids]Yes
valueboolNodefault toggles
Automation details

Command ID: sketch.centerline

Parameters:

curves: [line ids], value?: bool (default toggles): centerline line type (not in profiles; an axis)

Text

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
atbaseline start [x,y]Yes
heightcapital height mmNodefault 5
angledegNo
Automation details

Command ID: sketch.text

Parameters:

text: string (\n breaks lines), or text_expression: the words built from text parameters (parameters.add with unit text), number parameters and quoted texts joined by + ("Label + '-L'", "'W' + Width"; a number parameter shows its value in the design's units, "85 mm", an angle in degrees, "30°"; number(Width) is the number alone and number(Width, 2) has 2 decimals): the text keeps it, its words follow the parameters (a parameter edit or a configuration row relabels it) and `exprs` returns it as `text`; at: baseline start [x,y], height?: capital height mm (default 5), angle?: deg; at's x and y, height and angle each take a number or an expression over the design's parameters as a string ("plate_width / 2", "label_size"): the text keeps the expression, follows the parameters, and returns it in `exprs`; an expression naming no parameter is the number it comes to, a bare number in one is in the design's units, font?: an installed font's family or full name, or a .ttf/.otf file path (~ and %VAR% expand; default: the built-in Liberation Sans), bold?, italic?: bool (an installed family's bold or italic face; italic without one is slanted), align?: left|center|right (the lines against `at`, or along the path), vertical_align?: baseline|top|middle|bottom (the block of lines against `at` or the path: the first line's baseline (default), its capitals' tops, halfway between those and the last line's baseline, or the bottom of the last line's descenders), letter_spacing?: extra mm between letters, or an expression, line_spacing?: times the font's line distance (default 1), or an expression, path?: a curve id of the sketch the baseline follows ("": none; `at` and `angle` then do not place the text; the curve becomes construction, a guide the letters stand on), reverse?: bool (the other way along the path). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Construction Line

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line

Parameters:

Construction line, free. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Horizontal Construction Line

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.horizontal

Parameters:

Construction line, horizontal. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Vertical Construction Line

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.vertical

Parameters:

Construction line, vertical. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Construction Line at Angle

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.angle

Parameters:

Construction line, angle. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Parallel Construction Line

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.parallel

Parameters:

Construction line, parallel. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Perpendicular Construction Line

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.perpendicular

Parameters:

Construction line, perpendicular. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Tangent through External Point

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.tangent_external

Parameters:

Construction line, tangent_external. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Tangent at Curve Point

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.tangent_at

Parameters:

Construction line, tangent_at. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Common Tangent

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.tangent_two

Parameters:

Construction line, tangent_two. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Angle Bisector

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
throughsecond pointNo
curvesketch referencesNo
curve2sketch referencesNo
angledegrees from sketch XNo
offsetpositive lengthNoparallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at
solutionzero-based solution indexNo
Automation details

Command ID: sketch.construction_line.bisector

Parameters:

Construction line, bisector. at: point; through?: second point; curve?, curve2?: sketch references; angle?: degrees from sketch X; offset?: positive length (parallel: distance from the reference line; horizontal: distance from sketch X; vertical: distance from sketch Y; the side follows at) and a driving dimension at that value; near?: solution selector, and the side a line with a length runs towards; solution?: zero-based solution index; length?: a segment of this length from `at`, held by a length dimension, instead of an infinite line (horizontal, vertical, angle, parallel, perpendicular); construction?: false makes that segment a normal line. Tangents take circles/arcs, or an open spline/conic endpoint for tangent_at.. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Coordinate Crosshairs

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

Automation details

Command ID: sketch.crosshairs

Parameters:

sketch?: the sketch (default: the one being edited). Adds an infinite horizontal and an infinite vertical construction line              through the sketch's origin, both fixed, so they add no degrees of freedom: references to dimension and constrain to. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Divide Curve

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curveidYes
curves[ids]Yeseach divided on its own
Automation details

Command ID: sketch.point.divide

Parameters:

curve: id | curves: [ids] (each divided on its own); segments: whole number from 2 to 500. Places points that divide each curve into `segments` pieces of equal length along it (arc length): segments − 1 points on an open curve (line, arc, spline, conic), `segments` points on a closed one (a circle from its point on sketch +X, an ellipse from its major-axis end, a closed spline from its first point). Each point is constrained to its share of the curve's length, so it stays on the curve and keeps equal spacing as the curve changes; the curve is not changed. Infinite lines are refused. Returns points: [ids], per curve in order, and constraints: [ids]. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Equation Curve

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
xxYest
yyYest
explicittrue and y: fYesx
aloneYesno x
startthe range of tYes
endthe range of tYesor of x
tolerancemmNodefault 0.01
constructionboolNo
variable_unit"number"Nodefault
cosYes
Automation details

Command ID: sketch.equation_curve

Parameters:

x: x(t), y: y(t): formulas of t in the design's expression language and parameters ("r * (cos(t rad) + t * sin(t rad))"); or explicit: true and y: f(x) alone (no x); start, end: the range of t (or of x): a number or an expression. An angle result gives its number of radians ("360 deg" gives 2 * pi); a length gives its number in the design's unit; tolerance?: mm (default 0.01): how far the curve may stray from the formulas (0.0001 to 10); construction?: bool; variable_unit?: "number" (default) or "range". Plain numbers in sin(), cos() and tan() read degrees (sin(90) is 1); use rad for radians. A result without a unit is in the design's length unit. With variable_unit "range" it is a length, so a ^ 2 / (4 * t) is a length when a is one: start and end must both be lengths, or one a length and the other a plain number, which is then in the design's unit. Makes a fit point spline through fixed points, as many as the tolerance needs (up to 500), closed smoothly when it ends where it starts; the points are placed again from the formulas whenever the parameters change. Returns curve, points (how many), closed, deviation (mm). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Sketch Constrainer

Command group: SKETCH › CREATE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
entities[one or two sketch entity ids]: applies the constraint the geometry nearly hasYeshorizontal/vertical, parallel, perpendicular, collinear, coincident, concentric, equal, tangent
Automation details

Command ID: sketch.constrainer

Parameters:

entities: [one or two sketch entity ids]: applies the constraint the geometry nearly has (horizontal/vertical, parallel, perpendicular, collinear, coincident, concentric, equal, tangent)

SKETCH › CONSTRAINTS

Horizontal/Vertical

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
lineidYes
points[a, b]Yespoint ids or {midpoint: line_id}; accepted midpoints reuse or create a point with a Midpoint constraint
modehorizontal|verticalNo
Automation details

Command ID: sketch.constraint.horizontal_vertical

Parameters:

line: id | points: [a, b] (point ids or {midpoint: line_id}; accepted midpoints reuse or create a point with a Midpoint constraint); mode?: horizontal|vertical

Coincident

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

Automation details

Command ID: sketch.constraint.coincident

Parameters:

a, b: points (or a line's middle as {midpoint: line}, which becomes a point tied there), a point and a curve or sketch axis (x / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created), or two distinct lines (they become collinear), or two circles/arcs (the second lies on the first: concentric and equal, `constraints` lists both); in a 3D sketch, two points or a point and a line or circle, at least one of them drawn 3D geometry (`<3D curve>.start`, `.end`, `.through`, `.<n>`, a 3D point's id, a drawn 3D line or arc); the other may be fixed: a picked model edge is included as 3D geometry and a picked model vertex is projected onto the sketch plane, or give a model curve already included with sketch.include_3d (`<curve>.start`, `.end`, or the straight or circular curve itself) or a 2D point, line, circle or arc of the sketch; any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Tangent

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

Automation details

Command ID: sketch.constraint.tangent

Parameters:

a, b: curves or sketch axes (x / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created), or the end point of a line or an arc: that end then lies on the other curve (or on the other end point), and its curve is tangent there, in one step (`constraints` lists both); in a 3D sketch, a drawn 3D line and a drawn 3D arc that meet at an end (the line leaves the arc the way it runs on); any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Equal

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

Automation details

Command ID: sketch.constraint.equal

Parameters:

a, b: two lines, two circles/arcs or two ellipses (both half-axes alike) (in a 3D sketch, two drawn 3D lines or two drawn 3D arcs); or curves: [2 to 200 lines, circles/arcs or ellipses, all of one kind], each made equal to the first, in one step; any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Parallel

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
alines or sketch axesYes
blines or sketch axesYesx / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created
Automation details

Command ID: sketch.constraint.parallel

Parameters:

a, b: lines or sketch axes (x / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created); in a 3D sketch, two lines at least one a drawn 3D line (the other may be an included straight model edge or a 2D line), or a drawn 3D line and a plane: xy / yz / xz, a construction plane's name, or {face: [x,y,z], body?} on a planar model face; any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Perpendicular

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
alines or sketch axesYes
blines or sketch axesYesx / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created
Automation details

Command ID: sketch.constraint.perpendicular

Parameters:

a, b: lines or sketch axes (x / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created); in a 3D sketch, two lines at least one a drawn 3D line (the other may be an included straight model edge or a 2D line); any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Fix/Unfix

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
entitypoint or curveYes
entities[points and curves]Yes3D points and drawn 3D curves too, not mixed with planar ones
fixedboolNodefault: fix them all unless all are fixed, then unfix
Automation details

Command ID: sketch.constraint.fix

Parameters:

entity: point or curve | entities: [points and curves] (3D points and drawn 3D curves too, not mixed with planar ones); fixed?: bool (default: fix them all unless all are fixed, then unfix); unfixing a point placed by parameter expressions (`sketch.inspect` shows them as its `fixed_by`) frees it where they come to now, as plain numbers

MidPoint

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

Automation details

Command ID: sketch.constraint.midpoint

Parameters:

point, line | a, b in pick order: a point and a line or an arc (either way round; on an arc the point sits halfway along it, not at the middle of its chord), or two lines whose midpoints meet (the first stays, the second moves); any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Concentric

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

Automation details

Command ID: sketch.constraint.concentric

Parameters:

a, b: two circles/arcs, or a circle/arc and a sketch point (including origin), in either order; the point and the curve's centre become coincident; any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Collinear

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
alines or sketch axesYes
blines or sketch axesYesx / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created
Automation details

Command ID: sketch.constraint.collinear

Parameters:

a, b: lines or sketch axes (x / y: the sketch's own axes, unless a curve has that id; an axis becomes a linked construction line on it, reported in created); in a 3D sketch, two lines at least one a drawn 3D line (the other may be an included straight model edge or a 2D line); any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Symmetry

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
atwo points or two curvesYes
btwo points or two curvesYescircles/arcs mirror their centres
Automation details

Command ID: sketch.constraint.symmetry

Parameters:

a, b: two points or two curves (circles/arcs mirror their centres); mode?: endpoints (default) mirrors line ends, lines mirrors two supporting lines about an axis and leaves their ends free to slide; line: symmetry line id, or x / y for the sketch's own axes (a curve with that id wins; an axis becomes a linked construction line on it, reported in created); or point (or a point id as line, "origin" too): symmetric about that point, each pair joined by a construction line it is the midpoint of; any of them may be a model edge {edge: [x,y,z], body?} or vertex {vertex: [x,y,z], body?}, projected into the sketch first (reported in created)

Horizontal

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
lineidYes
points[a, b]Yespoint ids or {midpoint: line_id}, as for sketch.constraint.horizontal_vertical
Automation details

Command ID: sketch.constraint.horizontal

Parameters:

line: id | points: [a, b] (point ids or {midpoint: line_id}, as for sketch.constraint.horizontal_vertical); makes the line horizontal, or the two points level, whichever way the line or points run now

Vertical

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
lineidYes
points[a, b]Yespoint ids or {midpoint: line_id}, as for sketch.constraint.horizontal_vertical
Automation details

Command ID: sketch.constraint.vertical

Parameters:

line: id | points: [a, b] (point ids or {midpoint: line_id}, as for sketch.constraint.horizontal_vertical); makes the line vertical, or one point plumb above the other, whichever way the line or points run now

Curvature

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
atwo curves sharing an end pointYes
btwo curves sharing an end pointYescurvature continuous, G2
Automation details

Command ID: sketch.constraint.curvature

Parameters:

a, b: two curves sharing an end point (curvature continuous, G2)

Polygon

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
lines[line ids] of a closed chain: equal sides with every corner on one circleYesa regular polygon
Automation details

Command ID: sketch.constraint.polygon

Parameters:

lines: [line ids] of a closed chain: equal sides with every corner on one circle (a regular polygon)

AutoConstrain

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

Automation details

Command ID: sketch.auto_constrain

Parameters:

tolerance?: mm (default 0.01), angle_tolerance?: deg (default 1), dimensions?: bool (default true): infer constraints, then dimension until fully constrained

AutoConstrain from Datum

Command group: SKETCH › CONSTRAINTS

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
datumpoint refYesdefault origin
Automation details

Command ID: sketch.auto_constrain_from_datum

Parameters:

datum: point ref (default origin); like AutoConstrain with positions measured from the datum

SKETCH › MODIFY

Blend Curve

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
aYes
bend points of two curvesYes"l1.end", "a2.start"
continuityg1|g2|g3|g4Nodefault g1: a tangent spline; g2…g4 match the reference curves' curvature, curvature rate and 4th derivative as well, as one Bézier of degree 5, 7 or 9
Automation details

Command ID: sketch.blend_curve

Parameters:

a, b: end points of two curves ("l1.end", "a2.start"), continuity?: g1|g2|g3|g4 (default g1: a tangent spline; g2…g4 match the reference curves' curvature, curvature rate and 4th derivative as well, as one Bézier of degree 5, 7 or 9). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Merge Lines

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[line ids]Yesat least two, joined end to end on one straight line
Automation details

Command ID: sketch.merge_lines

Parameters:

curves: [line ids] (at least two, joined end to end on one straight line). The first keeps its id and runs from one outer end of the run to the other; the others go. Direction relations of the pieces move onto it, their lengths go, and a point between pieces that another curve or a constraint uses stays on it. Frame Members built on the sketch name it in place of the lines that went, and Rotate steps on those lines turn it. Returns line: the merged line's id, removed: [ids], frames: [Frame Members and Rotate steps changed]. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Fillet

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

Automation details

Command ID: sketch.fillet

Parameters:

point: corner shared by two curves ("l1.end") | points: [corners] (all rounded alike: one radius, the rest equal; a corner is a point reference or {a, b}, the two curves meeting there) | a, b: two curves meeting at a corner: lines, arcs, conics and open control point splines (two lines that share no end are first brought to where they meet: the nearer end of a line that stops short moves there, and a line that runs past is cut there, losing its shorter piece); radius: expr (two parallel lines `a`, `b` that share no end are joined by a half circle instead, alone and not in `points`: its radius is half their spacing, so `radius` is only checked and otherwise ignored; `end`: "start" (default) or "end" picks which end of line `a`'s direction it closes, and both lines are cut back to its ends; lines that do not overlap are refused, and lines on one line are refused as parallel). A corner that dimensions or constraints measure to stays as a virtual sharp corner on both curves' extensions (`virtual_corners`; the moved ones in `moved_to_virtual_corner`). A conic or control point spline side is cut back exactly to the tangent point and keeps its id (a conic's apex point moves with it; a spline keeps its degree and its knots past the cut, which becomes a knot). Refused: such a corner where it would have to stay as a virtual sharp corner (measured to, or a third curve ends there), a constraint on the cut curve other than a tangency at its far end, a held conic apex or a held spline control point that the cut moves, and a fit point spline (not supported yet). An ellipse's axis line is never a side of a corner (also for the chamfers). A corner of an offset's lines and arcs first releases that offset (also for the chamfers): its curves keep following their sources at the offset's distance, held by dimensions that keep its parameter (`offset_released`: curve ids) In a 3D sketch, `a` and `b` (alone or as `points` entries) may be two drawn 3D lines that share an end point, for a tube bend: both are shortened and a 3D arc in their plane joins them, tangent to both, its radius a dimension with a parameter of its own; what held the sharp corner holds a 3D point kept there on both lines (`virtual_corners`). Refused there, with the reason: lines that share no end point or lie in one straight line, a radius that needs a whole line, 3D arcs, 3D splines and linked curves, and 3D corners mixed with planar ones. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Equal Distance Chamfer

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
point[corners]| aYesevery corner cut alike; a corner is a point reference or {a, b}
points[corners]| aYesevery corner cut alike; a corner is a point reference or {a, b}
ba corner of two linesYestwo that share no end are first brought to where they meet, as in sketch.fillet
Automation details

Command ID: sketch.chamfer.equal_distance

Parameters:

point | points: [corners] (every corner cut alike; a corner is a point reference or {a, b}) | a, b: a corner of two lines (two that share no end are first brought to where they meet, as in sketch.fillet); distance. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Distance and Angle Chamfer

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
point[corners]| aYesevery corner cut alike; a corner is a point reference or {a, b}, and a point's `a` is the first of its two lines in curve order
points[corners]| aYesevery corner cut alike; a corner is a point reference or {a, b}, and a point's `a` is the first of its two lines in curve order
ba corner of two linesYestwo that share no end are first brought to where they meet, as in sketch.fillet
distancealong aYes
angledeg from aYes
Automation details

Command ID: sketch.chamfer.distance_angle

Parameters:

point | points: [corners] (every corner cut alike; a corner is a point reference or {a, b}, and a point's `a` is the first of its two lines in curve order) | a, b: a corner of two lines (two that share no end are first brought to where they meet, as in sketch.fillet); distance: along a, angle: deg from a. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Two Distance Chamfer

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
point[corners]| aYesevery corner cut alike; a corner is a point reference or {a, b}, and a point's `a` is the first of its two lines in curve order
points[corners]| aYesevery corner cut alike; a corner is a point reference or {a, b}, and a point's `a` is the first of its two lines in curve order
ba corner of two linesYestwo that share no end are first brought to where they meet, as in sketch.fillet
distancealong aYes
distance2along bYes
Automation details

Command ID: sketch.chamfer.two_distance

Parameters:

point | points: [corners] (every corner cut alike; a corner is a point reference or {a, b}, and a point's `a` is the first of its two lines in curve order) | a, b: a corner of two lines (two that share no end are first brought to where they meet, as in sketch.fillet); distance: along a, distance2: along b. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Offset

Command group: SKETCH › MODIFY

Default keyboard shortcut: O

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
flipbool reverses the primary sideNo
Automation details

Command ID: sketch.offset

Parameters:

curves: [ids], distance: number in mm or length expression (creates an editable dimension; positive = left of the chain, or toward `side`), side?: [x,y], chain?: bool (default true: the connected chain, including ends that only coincide). A corner is trimmed back to the crossing when the offset runs past it, and extended until the offset curves intersect when the corner falls short; direction?: one_side|symmetric (default one_side) or symmetric?: bool (the same distance each way; no `side`, whose job it takes over), distance2?: positive length expression (Two Sides: an independent distance the other way, as for `solid.extrude`). Each side is its own offset association, listed in `sides`; flip?: bool reverses the primary side; `param`/`param2` name the driving dimensions; instances?: whole number or unitless expression, 1…100 (default 1): each instance after the first offsets the instance before it by the same distance again, so instance n stands n distances from the curves picked. Every instance of a side is driven by that side's own dimension, and each entry of `sides` names its `instance`; an instance the shape cannot take refuses the whole command. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Trim

Command group: SKETCH › MODIFY

Default keyboard shortcut: T

Read the sketching and constraints guide.

Automation details

Command ID: sketch.trim

Parameters:

curve: id, at: [x,y] (the piece to remove: between the nearest crossings or points constrained onto the curve). Trimming a line, circle or arc that has offsets, or a piece of an offset's copy (from one curve, or from several lines and arcs), releases the offset first (offset_released: curve ids): each copy keeps following its source at the offset's distance, held by dimensions that keep the offset's parameter. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Extend

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curveidYes
at[x,y] near the end to extendYesa line runs on to the nearest curve, or the previewed reach when nothing is in the way; an arc grows along its circle and closes into a whole circle when nothing stops it
curves[id, id]Yestwo lines or arcs of this sketch, grown until they meet and joined there
at[[x,y],[x,y]]Noone point per curve: the end to grow; default the end nearest the meeting point
Automation details

Command ID: sketch.extend

Parameters:

curve: id, at: [x,y] near the end to extend (a line runs on to the nearest curve, or the previewed reach when nothing is in the way; an arc grows along its circle and closes into a whole circle when nothing stops it) | curves: [id, id] (two lines or arcs of this sketch, grown until they meet and joined there), at?: [[x,y],[x,y]] (one point per curve: the end to grow; default the end nearest the meeting point). `curve` and `curves` exclude each other; the two-curve form returns moved: the meeting point's id

Break

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curveidYes
at[x,y]Yessplit at the nearest crossing or constrained point on each side, keeping all pieces. At a shared end, the selected curve gets its own end there.
points[[x,y]…]Yes1…1000 positions projected onto the curve, with duplicates merged
Automation details

Command ID: sketch.break

Parameters:

curve: id, at: [x,y] (split at the nearest crossing or constrained point on each side, keeping all pieces. At a shared end, the selected curve gets its own end there.) | points: [[x,y]…] (1…1000 positions projected onto the curve, with duplicates merged). A circle needs two distinct boundaries or projected points. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Sketch Scale

Command group: SKETCH › MODIFY

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
entities[curve/point ids]Yes
base[x,y] or point refYes
factornumberYes
Automation details

Command ID: sketch.scale

Parameters:

entities: [curve/point ids], base: [x,y] or point ref, factor: number; the driving length and radius dimensions wholly inside the selection scale too (a formula becomes `(formula) * factor`); a hold tying the selection to a point that stays is let go when the scale moves away from it

Transform

Command group: SKETCH › MODIFY

Default keyboard shortcut: G

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
entities[curve/point ids]Yes
factornumberNoscale
angledegreesNoturn
center[x,y] or point refNowhat scales and turns stay put; default [0,0]
translate[dx,dy]Noapplied last
Automation details

Command ID: sketch.transform

Parameters:

entities: [curve/point ids], factor?: number (scale), angle?: degrees (turn), center?: [x,y] or point ref (what scales and turns stay put; default [0,0]), translate?: [dx,dy] (applied last); scales, turns and moves in one step; a free point held only to the picked geometry (a rounded rectangle's centre) goes with it; returns `released`: the constraints tying the picked geometry to what stays that the change let go, as {id, kind}

Move/Copy Sketch Entities

Command group: SKETCH › MODIFY

Default keyboard shortcut: M

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
entities[ids]Yes
translate[dx,dy]No
angledegNo
center[x,y]No
copyboolNo
zmm along the sketch's normalNo3D sketches: the moved lines and fit-point splines become drawn 3D curves that far off the plane, and drawn picks move that far along it
rotate_constraintsboolNodefault true; false keeps constraints unchanged
Automation details

Command ID: sketch.move

Parameters:

entities: [ids], translate?: [dx,dy], angle?: deg, center?: [x,y], copy?: bool, z?: mm along the sketch's normal (3D sketches: the moved lines and fit-point splines become drawn 3D curves that far off the plane, and drawn picks move that far along it); rotate_constraints?: bool (default true; false keeps constraints unchanged); a rotation turns the constraints tied to the sketch axes when all their geometry moves (horizontal and vertical relations and dimensions swap at odd quarter turns and stay at half turns, line angles turn with the line) and removes the horizontal and vertical ones that cannot hold at other angles; picking a text outline or linked point transforms its whole text source once, and copies remain editable text; copy also accepts drawn 3D curves, preserving exact arcs and height above the sketch plane; a turned rectangle keeps its shape: parallel and perpendicular relations replace the horizontal and vertical ones lost; `wire@index` picks a drawn 3D point, a drawn curve's id the whole curve: they move with the rest, along the plane and by `z` along its normal; returns `released`: the constraints tying the moved geometry to what stays that the move let go, as {id, kind}, and `added`: the relations put in their place, as {id, kind}. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

SKETCH › INSERT

Insert DXF

Command group: SKETCH › INSERT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
align"origin"| "center"Nodefault: `at` is where the file's origin goes; `at` is where the drawing's middle goes and it turns and scales about it
tolerancemm within which ends joinNodefault 0.0001
fixedboolNoa Fix constraint on every point the drawing adds, as sketch.constraint.fix puts one; a circle's or ellipse's radius stays free; default false
planeNowhen no sketch is active, a new sketch on it; default XY
Automation details

Command ID: sketch.insert_dxf

Parameters:

path | text: DXF, ASCII or (by `path`) binary (blocks expanded); at?: [x,y] offset, scale? | width? | height?: mm, the size of the drawn geometry's bounds before rotation, aspect kept (win over scale); angle?: degrees, about the drawing's origin (or its centre); align?: "origin" (default: `at` is where the file's origin goes) | "center" (`at` is where the drawing's middle goes and it turns and scales about it); tolerance?: mm within which ends join (default 0.0001); simplify?: mm on the drawing as it is drawn, at any scale, 0 to 100 (default 0: every edge as drawn) — runs of lines that meet end to end are replaced by fewer lines that follow them within this distance, so a dense drawing comes in with fewer curves (arcs, circles, splines and text stay as drawn); fixed?: bool (a Fix constraint on every point the drawing adds, as sketch.constraint.fix puts one; a circle's or ellipse's radius stays free; default false); plane?: (when no sketch is active, a new sketch on it; default XY). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Insert SVG

Command group: SKETCH › INSERT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
pathSVGYes
textSVGYes
size_from"geometry"| "viewbox"Nodefault: width and height are the bounds of the drawn geometry; the SVG sheet: its viewBox, else its width and height; a drawing smaller than its sheet then comes out smaller than width or height say
align"origin"| "center"Nodefault: `at` is where the file's origin goes; `at` is where the drawing's (or sheet's) middle goes and it turns and scales about it
tolerancemm within which ends joinNodefault 0.0001
fixedboolNoevery point it adds gets a Fix constraint, so the drawing stays where it is put
planeNowhen no sketch is active, a new sketch on it; default XY
Automation details

Command ID: sketch.insert_svg

Parameters:

path | text: SVG; at?: [x,y] offset, scale? | width? | height?: mm, the drawing's size before rotation, aspect kept (win over scale); dpi?: the dots per inch the file's pixels are read at, 1 to 10000 (default 96; a file drawn at 72 dpi comes in at its drawn size with 72; lengths with a unit such as mm keep it); size_from?: "geometry" (default: width and height are the bounds of the drawn geometry) | "viewbox" (the SVG sheet: its viewBox, else its width and height; a drawing smaller than its sheet then comes out smaller than width or height say); angle?: degrees, about the drawing's origin (or its centre); align?: "origin" (default: `at` is where the file's origin goes) | "center" (`at` is where the drawing's (or sheet's) middle goes and it turns and scales about it); tolerance?: mm within which ends join (default 0.0001); simplify?: mm on the drawing as it is drawn, at any scale, 0 to 100 (default 0: every edge as drawn) — runs of lines that meet end to end are replaced by fewer lines that follow them within this distance, so a dense drawing comes in with fewer curves (arcs, circles, splines and text stay as drawn); fixed?: bool (every point it adds gets a Fix constraint, so the drawing stays where it is put); plane?: (when no sketch is active, a new sketch on it; default XY). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Insert Airfoil

Command group: SKETCH › INSERT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
pathairfoil coordinatesYes.dat, Selig or Lednicer, told apart by content; format?: "selig" | "lednicer" overrides
textairfoil coordinatesYes.dat, Selig or Lednicer, told apart by content; format?: "selig" | "lednicer" overrides
chordmmYes> 0
pivotshare of the chord that at places and angle turns aboutNo0 leading edge, 0.25 quarter chord, 1 trailing edge; default 0
at[x,y] mmNodefault [0,0]
tolerancemm within which points joinNodefault 0.0001; a trailing edge within it is closed, else a line closes it
planeNowhen no sketch is active, a new sketch on it; default XY
namethe new sketch's nameNo
Automation details

Command ID: sketch.insert_airfoil

Parameters:

path | text: airfoil coordinates (.dat, Selig or Lednicer, told apart by content; format?: "selig" | "lednicer" overrides); chord: mm (> 0); pivot?: share of the chord that `at` places and `angle` turns about (0 leading edge, 0.25 quarter chord, 1 trailing edge; default 0); at?: [x,y] mm (default [0,0]); angle?: degrees, counter-clockwise about the pivot; flip?: bool, mirror across the chord line; tolerance?: mm within which points join (default 0.0001; a trailing edge within it is closed, else a line closes it); plane?: (when no sketch is active, a new sketch on it; default XY); name?: the new sketch's name. One fit point spline through every point; replies with the point count, the trailing edge's gap, the largest deviation of merged points and the largest bulge of the spline between points. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Canvas

Command group: SKETCH › INSERT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
resolutionpixelsNoan SVG's longest side, default 1024, at most 4096
planeXY|XZ|YZ|{face: [x,y,z]}|…Nodefault XY
center[x,y] on the planeNo
at[x,y,z]No
widthmmNodefault 100
angledegNo
opacity0…1Nodefault 0.5
flipNo
nameNo
Automation details

Command ID: canvas.insert

Parameters:

path: a PNG, JPEG or SVG file (an SVG is drawn into a PNG); resolution?: pixels (an SVG's longest side, default 1024, at most 4096); plane?: XY|XZ|YZ|{face: [x,y,z]}|… (default XY); center?: [x,y] on the plane, or at?: [x,y,z]; width?: mm (default 100); angle?: deg; opacity?: 0…1 (default 0.5); flip?; name?; frame?: true ties the image to a construction rectangle around it (in the sketch being edited, which it must lie on, else in a new sketch), as canvas.frame_sketch does; "auto" frames it in the sketch being edited only when it lies on its plane

Decal

Command group: SKETCH › INSERT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
resolutionpixelsNoan SVG's longest side, default 1024
widthmmNo
angledegNo
opacityNodefault 1
Automation details

Command ID: canvas.decal

Parameters:

path: a PNG, JPEG or SVG file; resolution?: pixels (an SVG's longest side, default 1024); face: [x,y,z] on a planar face (the image is centred there), or the picked face as sketch.create's plane takes it ({face, body, index, path?}); width?: mm; angle?: deg; opacity?: (default 1); frame?: true ties the image to a construction rectangle around it, as canvas.frame_sketch does; "auto" only in the sketch being edited, when the face is on its plane. A decal is part of the model's look: URDF export writes it as a textured visual of its component's link

Edit Canvas

Command group: SKETCH › INSERT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
canvasid or nameYes
centerNo
widthNo
angledegNo
opacityNo
flipNo
visibleNo
nameNo
lockedNoa locked canvas refuses center, width, angle, flip, Calibrate and Delete
anchor{sketch: id, bottom_left, bottom_right: point ids, top_left?: point id} | nullNothe sketch points the image's corners follow; without top_left the height follows the image; an anchored canvas refuses center, width, angle, Calibrate and Straighten
Automation details

Command ID: canvas.edit

Parameters:

canvas: id or name; center?, width?, angle?: deg, opacity?, flip?, visible?, name?, locked? (a locked canvas refuses center, width, angle, flip, Calibrate and Delete); anchor?: {sketch: id, bottom_left, bottom_right: point ids, top_left?: point id} | null (the sketch points the image's corners follow; without top_left the height follows the image; an anchored canvas refuses center, width, angle, Calibrate and Straighten)

SKETCH › INSPECT

Curvature Comb Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[sketch curve ids]Nosketch?: id|name, default active
edges[[x,y,z] points on body edges: the edge whose exact curve passes nearest]No
faces[[x,y,z] points on faces] with count?: isoparametric curves each wayNodefault 4; combs along the face's iso grid
scalecomb length per unit curvatureNodefault auto: the longest tooth a fifth of the combs' size
Automation details

Command ID: inspect.curvature_comb

Parameters:

curves?: [sketch curve ids] (sketch?: id|name, default active) | edges?: [[x,y,z] points on body edges: the edge whose exact curve passes nearest] | faces?: [[x,y,z] points on faces] with count?: isoparametric curves each way (default 4; combs along the face's iso grid); density?: teeth per curve, 2…2000 (default 40; on an edge or an iso curve exactly that many, evenly spaced along its parameter); scale?: comb length per unit curvature (default auto: the longest tooth a fifth of the combs' size); length?: a multiplier on the automatic scale, 0.01…100 (default 1; ignored with `scale`); add?: true keeps the combs shown and adds these, every comb again at one scale (with nothing picked it draws those shown again with this call's options, or turns the analysis on with none); clear?: true turns the analysis off. Every comb of a call shares one scale, so tooth lengths compare across curves; the viewport draws them. The curvature is exact: from each sketch curve, edge curve (line, circle, ellipse, B-spline, NURBS, intersection curve) or face surface's own derivatives, never from the display mesh; a face's teeth are the surface's normal curvature along each iso curve, along the surface normal. → combs: [{curve, teeth: [[foot, tip]], envelope: [tip], max_curvature, min_radius}] (those shown, with `add`), scale

Minimum Radius Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
curves[sketch curve ids]Nosketch?
edges[[x,y,z]…]No
faces[[x,y,z]…]Nodefault: every face of every body
Automation details

Command ID: inspect.minimum_radius

Parameters:

curves?: [sketch curve ids] (sketch?) | edges?: [[x,y,z]…] | faces?: [[x,y,z]…] (default: every face of every body); the smallest radius of curvature of each and where it is

Isocurve Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
faces[[x,y,z]…] points on facesYes1…100
addtrue keeps the faces already shownNo
cleartrue turns the analysis off.No
Automation details

Command ID: inspect.isocurve

Parameters:

faces: [[x,y,z]…] points on faces (1…100); count?: whole number of curves each way, 1…100 (default 8); add?: true keeps the faces already shown; clear?: true turns the analysis off. → each face's isoparametric curves, u = const and v = const of its surface, evenly spaced across it and cut to its trims, as points (`curves`) and per face (`faces`); the viewport draws them

Center of Mass

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

Automation details

Command ID: inspect.center_of_mass

Parameters:

bodies?: [names] (default all): the centre of mass (uniform density) of each and of all together, from the exact mass properties `inspect.measure` takes → center, volume, bodies: [{body, center, volume}], skipped: [{body, reason}] (bodies that enclose no volume or could not be measured)

Zebra Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
stripesnumber across the viewNodefault 12
cleartrue turns the analysis offNo
Automation details

Command ID: inspect.zebra

Parameters:

stripes?: number across the view (default 12); clear?: true turns the analysis off

Draft Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
pull[x,y,z] directionNodefault Z
angledegreesNodefault 1
cleartrue turns the analysis offNo
Automation details

Command ID: inspect.draft

Parameters:

pull?: [x,y,z] direction (default Z); angle?: degrees (default 1); clear?: true turns the analysis off

Environment Map Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
cleartrue turns the analysis offNo
Automation details

Command ID: inspect.environment_map

Parameters:

clear?: true turns the analysis off

Accessibility Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
direction[x,y,z] the tool comes fromNodefault Z, from above
cleartrue turns the analysis offNo
Automation details

Command ID: inspect.accessibility

Parameters:

direction?: [x,y,z] the tool comes from (default Z, from above); clear?: true turns the analysis off

Curvature Map Analysis

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
radiusmm shown redNodefault: a tenth of the model's size
cleartrue turns the analysis offNo
Automation details

Command ID: inspect.curvature_map

Parameters:

radius?: mm shown red (default: a tenth of the model's size); clear?: true turns the analysis off

Inspect Sketch

Command group: SKETCH › INSPECT

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
sketchid|nameNodefault active
Automation details

Command ID: sketch.inspect

Parameters:

sketch?: id|name (default active)

SKETCH › PATTERN

Mirror

Command group: SKETCH › PATTERN

Read the sketching and constraints guide.

Automation details

Command ID: sketch.mirror

Parameters:

entities: [curve/point ids], line: straight curve id, x / y for a sketch axis, or {axis: X|Y|Z} for an origin axis (the mirror line is the axis's projection into the sketch plane; an axis perpendicular to the plane is refused) (symmetry constraints are added). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Circular Pattern

Command group: SKETCH › PATTERN

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
alignmentleft|center|rightNodefault right
reversedboolNodefault false
Automation details

Command ID: sketch.pattern.circular

Parameters:

entities: [ids], center: [x,y] or point ref, count: 2…500 (number or unitless expression, retained through edits), angle?: total deg, number or expression (default 360); alignment?: left|center|right (default right); reversed?: bool (default false). Quantity includes the original. Center balances copies around it; reversed flips the direction and extra side for even totals. Partial arcs span angle with angle/(count-1) spacing; full turns use angle/count. Adds associative pattern constraints; a coordinate center creates a constrainable point. Returns pattern and center ids. pattern?: existing pattern id to edit (omitted values retained; surviving instance ids retained). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Rectangular Pattern

Command group: SKETCH › PATTERN

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
entities[ids]Yes
countYes
spacingYes
count2No
spacing2No
spacingslength numbers or expressionsYes
directionsketch line idsNo
direction2sketch line idsNolive references
dir[x,y] vectorsNo
dir2[x,y] vectorsNodefaults: sketch x, perpendicular to direction 1
alignmentNo
alignment2left|center|rightNodefault right
reversed2boolNodefault false
Automation details

Command ID: sketch.pattern.rectangular

Parameters:

entities: [ids], count, spacing; count2?, spacing2?; counts: positive integer numbers or expressions, at most 500 instances total; spacings: length numbers or expressions; direction?, direction2?: sketch line ids (live references); dir?, dir2?: [x,y] vectors (defaults: sketch x, perpendicular to direction 1); alignment?, alignment2?: left|center|right (default right). Signed spacings reverse each direction. reversed?, reversed2?: bool (default false); reverses placement and the extra side of even centered totals. distance1?, distance2?: count_spacing (default) | count_extent | spacing_extent | count_list, what sets each direction, as in solid.pattern.rectangular; extent1?, extent2?: original to last copy, a length number or expression above zero (count_extent spreads the count over it, spacing_extent fits as many spacings as it holds); spacing_list1?, spacing_list2?: [lengths] the gaps of count_list, used in turn; copy_at_end1?, copy_at_end2?: bool, with spacing_extent a last copy at the extent's end. A count or spacing the type works out is not read. Quantities include the original. Adds associative pattern constraints. Returns pattern id. pattern?: existing pattern id to edit (omitted values retained; surviving instance ids retained). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

SKETCH › REFERENCE

Project

Command group: SKETCH › REFERENCE

Default keyboard shortcut: P

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
refs[{edge: [x,y,z], body?} | {face: [x,y,z], body?} (its edge loops) | {body: name} (silhouette) | {vertex: [x,y,z], body?} | {sketch, curve} | {sketch, point} | {point: name} (a construction point) | "origin" | {axis: X|Y|Z|name} | {plane: XY|XZ|YZ|name}]Yes
projection_linkboolNodefault true
constructionboolNodefault the session's preference, off: the created curves are construction geometry
strict_occurrence_referencesboolNodefault false: keep ordinary links for ambiguous sketch sources and other placements of the receiving component; true requires a path for repeated sketch sources and refuses other placements of the receiving component or parts inside them
Automation details

Command ID: sketch.project

Parameters:

refs: [{edge: [x,y,z], body?} | {face: [x,y,z], body?} (its edge loops) | {body: name} (silhouette) | {vertex: [x,y,z], body?} | {sketch, curve} | {sketch, point} | {point: name} (a construction point) | "origin" | {axis: X|Y|Z|name} | {plane: XY|XZ|YZ|name}]; to project a copy other than a component's first placement, give the model ref path: [occurrence ids from the root] or name the copy's body (body: "Block (Part:2)"), otherwise the point is looked for at the first placement; projection_link?: bool (default true); construction?: bool (default the session's preference, off: the created curves are construction geometry); strict_occurrence_references?: bool (default false: keep ordinary links for ambiguous sketch sources and other placements of the receiving component; true requires a path for repeated sketch sources and refuses other placements of the receiving component or parts inside them). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Intersect

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
refs[{body}, {face: [x,y,z], body?}, {edge: [x,y,z], body?}, {sketch, curve}]: section curvesYesor points
projection_linkboolNodefault true
constructionboolNodefault the session's preference, off: the created curves are construction geometry
strict_occurrence_referencesboolNodefault false: keep ordinary links for ambiguous sketch sources and other placements of the receiving component; true requires a path for repeated sketch sources and refuses other placements of the receiving component or parts inside them
Automation details

Command ID: sketch.intersect

Parameters:

refs: [{body}, {face: [x,y,z], body?}, {edge: [x,y,z], body?}, {sketch, curve}]: section curves (or points) with the sketch plane; projection_link?: bool (default true); construction?: bool (default the session's preference, off: the created curves are construction geometry); strict_occurrence_references?: bool (default false: keep ordinary links for ambiguous sketch sources and other placements of the receiving component; true requires a path for repeated sketch sources and refuses other placements of the receiving component or parts inside them). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Include 3D Geometry

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
refslike ProjectYesedges, vertices, sketch curves and points
constructionboolNodefault the session's preference, off: the created curves are construction geometry
strict_occurrence_referencesboolNodefault false: keep ordinary links for ambiguous sketch sources and other placements of the receiving component; true requires a path for repeated sketch sources and refuses other placements of the receiving component or parts inside them
Automation details

Command ID: sketch.include_3d

Parameters:

refs: like Project (edges, vertices, sketch curves and points); curves out of the sketch plane are flattened onto it; construction?: bool (default the session's preference, off: the created curves are construction geometry); strict_occurrence_references?: bool (default false: keep ordinary links for ambiguous sketch sources and other placements of the receiving component; true requires a path for repeated sketch sources and refuses other placements of the receiving component or parts inside them). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Project To Surface

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

Automation details

Command ID: sketch.project_to_surface

Parameters:

curves: [{sketch, curve}…] (curves of other sketches), face: [x,y,z] point on the target face, body?: projected along the active sketch's normal onto the face, as linked 3D curves. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Intersection Curve

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

Automation details

Command ID: sketch.intersection_curve

Parameters:

a, b: {body} | {face: [x,y,z], body?} | {sketch, curve} (a curve of another sketch, standing in for its extrusion along that sketch's normal): where they meet, as linked 3D curves. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Spun Profile

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

Automation details

Command ID: sketch.spun_profile

Parameters:

body: name, axis: a line of the active sketch (curve id) | X|Y|Z: the body's outline revolved about the axis, in the sketch plane. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Isoparametric Curve

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

ParameterTypeRequiredDescription
face[x,y,z] point on the faceYesthe curve passes through it
bodyNo
directionu|v|[x,y,z]Nodefault u
Automation details

Command ID: sketch.isoparametric_curve

Parameters:

face: [x,y,z] point on the face (the curve passes through it), body?, direction?: u|v|[x,y,z] (default u): linked 3D curve. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Fit Curves to Mesh Section

Command group: SKETCH › REFERENCE

Read the sketching and constraints guide.

Automation details

Command ID: sketch.fit_curves_to_section

Parameters:

body: name (a mesh or solid body): its section with the sketch plane, fitted with lines and arcs, as normal (unlinked) geometry. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

SURFACE › INSPECT

Continuity Analysis

Command group: SURFACE › INSPECT

Read the solid features guide.

ParameterTypeRequiredDescription
bodynameNodefault: the visible bodies
edges[x,y,z] points or {"index": i}Nodefault: every edge of the body; a pick must match one body
gap_tolerance_mmNodefault 0.001
angle_tolerance_degNodefault 1
curvature_tolerance_per_mmNodefault 0.01
curvature_change_tolerance_per_mm2Nodefault 0.001
curvature_change_rate_tolerance_per_mm3Nodefault 0.0001
addtrue keeps the seams already shaded and adds theseNomeasuring an edge again replaces it
cleartrue turns the analysis off.No
Automation details

Command ID: inspect.continuity

Parameters:

body?: name (default: the visible bodies); edges?: [x,y,z] points or {"index": i} (default: every edge of the body; a pick must match one body); samples?: 3…257 stations along each edge, ends included (default 33); gap_tolerance_mm? (default 0.001), angle_tolerance_deg? (default 1), curvature_tolerance_per_mm? (default 0.01), curvature_change_tolerance_per_mm2? (default 0.001), curvature_change_rate_tolerance_per_mm3? (default 0.0001); add?: true keeps the seams already shaded and adds these (measuring an edge again replaces it); clear?: true turns the analysis off. → each edge's worst gap (G0), normal angle (G1), curvature jump (G2), jump of the curvature's change across the seam dκ/ds (G3) and of that change's rate d²κ/ds² (G4), from the faces' exact derivatives, as {value, at: [x,y,z], edge_fraction}; its order (g0…g4: the highest every station meets within the tolerances, null where the faces do not meet), its verdict (smooth: g2 or better, curvature_jump, sharp or gap) and a summary; the seams are shaded in the viewport

SURFACE › CREATE

Boundary Surface

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
curves[2 to 4 sketch curve ids in loop order]Yeseach one ends where the next begins and the last where the first does; two: the patch spans between them and leaves each boundary along the tangent across it; three or four: the flat patch of the loop, three collapsing the side opposite the first curve to the corner there
continuityg0|g1|g2|g3 | [one per curve]Nodefault g1: how much of the surface across each boundary the patch repeats — a sketch curve's own plane, so g1 and up hold exactly and g0 lets the middle bow
crownnumber -0.9…3Nodefault 0: how full the middle is, without touching a boundary; two curves only
operationnew|joinNodefault new; join sews the surface into the body of its first edge curve, a solid when it closes the gap
body_nameNoa surface body
Automation details

Command ID: surface.boundary

Parameters:

Either a loop of one sketch's curves — sketch?: id|name (default: the sketch being edited); curves: [2 to 4 sketch curve ids in loop order] (each one ends where the next begins and the last where the first does; two: the patch spans between them and leaves each boundary along the tangent across it; three or four: the flat patch of the loop, three collapsing the side opposite the first curve to the corner there); continuity?: g0|g1|g2|g3 | [one per curve] (default g1: how much of the surface across each boundary the patch repeats — a sketch curve's own plane, so g1 and up hold exactly and g0 lets the middle bow); crown?: number -0.9…3 (default 0: how full the middle is, without touching a boundary; two curves only); samples?: 8…512 stations per boundary (default 25) — or a curve network — u: [curve] (two or more one way: the surface lofts through them), v?: [curve] (crossing every u-curve once: two each way give a Coons patch, more a Gordon surface through every curve; a curve that misses another by more than 0.01 mm is refused, naming the pair), each curve "id" (a curve of `sketch`) | {sketch?: id|name, curves: [ids meeting end to end]} (planar or 3D sketch curves) | {body: name, edges: [[x,y,z]] (points on a chain of its edges), continuity?: g0|g1|g2 (default g0; g1 the surface leaves tangent to the face beside a surface's open edges, g2 with its curvature too; on curves of one direction only), strength?: expr 0.1…3 (with g1 or g2 only; default 1: a factor on the length of the surface's tangent across the curve, 1 being the step to the next curve; less turns sooner after the edge and rises less past its neighbour, more follows the face further)} | {point: [x,y,z]} (a side collapsed to a point: a three-sided patch); operation?: new|join (default new; join sews the surface into the body of its first edge curve, a solid when it closes the gap). name?, body_name? (a surface body)

Patch

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
sketchid|name and profiles?Noplanar patches of sketch regions
profiles_3d[indices]Yesthe sketch's planar 3D-sketch loops, each patched in its own plane, as listed by sketch.inspect
edges[[x,y,z]]Yespoints on a closed loop of a body's edges: one face on them, planar when the loop is, else a smooth B-spline surface
continuityg0|g1|g2|g3|g4Noedges only, default g0: how the patch meets the faces beside the loop — g1 their tangent planes, g2 also their curvature across the edges, g3 also its rate of change, g4 the change of that rate
points[[x,y,z]]Noedges only, up to 64: points the patch passes through
crownnumber −0.9…3Nodefault 0: only a fitted patch, whose middle becomes fuller by this many times the loop's size — the bump vanishes on the loop, so the face still meets the picked edges and the continuity across them; a loop that is planar and g0 is the exact plane whatever the crown; with points, crown needs a g1 or higher edge
nameNo
body_nameNo
Automation details

Command ID: surface.patch

Parameters:

sketch?: id|name and profiles? (planar patches of sketch regions) or profiles_3d: [indices] (the sketch's planar 3D-sketch loops, each patched in its own plane, as listed by sketch.inspect) | edges: [[x,y,z]] (points on a closed loop of a body's edges: one face on them, planar when the loop is, else a smooth B-spline surface) and body?; continuity?: g0|g1|g2|g3|g4 (edges only, default g0: how the patch meets the faces beside the loop — g1 their tangent planes, g2 also their curvature across the edges, g3 also its rate of change, g4 the change of that rate) or [{edge: [x,y,z], g: g0|g1|g2|g3|g4}] (those edges so, the rest g0) or {all, edges}; points?: [[x,y,z]] (edges only, up to 64: points the patch passes through); crown?: number −0.9…3 (default 0: only a fitted patch, whose middle becomes fuller by this many times the loop's size — the bump vanishes on the loop, so the face still meets the picked edges and the continuity across them; a loop that is planar and g0 is the exact plane whatever the crown; with points, crown needs a g1 or higher edge); name?, body_name?

Thicken

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[surface names]Yes
thicknessexprYesnegative: against the normal
symmetricboolNo
operationnew|join|cut|intersectNo
targetsNo
Automation details

Command ID: surface.thicken

Parameters:

bodies: [surface names]; thickness: expr (negative: against the normal); symmetric?: bool; operation?: new|join|cut|intersect; targets?

Surface Extrude

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
sketchid|nameNo
curves[curve ids]Noopen or closed chains of curves meeting end to end
distanceexprYesunless `to` or `to_next`
to[x,y,z]NoTo Object: end at the face, vertex or point there; a curved or slanted face trims the walls where they meet its surface
to_offsetexprNohow far past `to`; a flat face square to the extrusion or a point only
to_nextboolNoTo Next: each wall runs on, one way as `direction` says, until it first meets a solid or surface body, its faces as they are; a wall that meets none, or runs on past the side of a body covering only part of it, is refused
directionpositive|negative|symmetricNosymmetric: distance is the total, split evenly around the start plane, as solid.extrude
conventiontotal_distance|legacy_per_sideNoas solid.extrude; default total_distance; legacy_per_side: the distance on each side, as older symmetric surface extrudes keep
distance2exprNo
start_offsetexprNo
taperexprNoangle the walls lean by, the profile being the section at the start; positive: outward, so the far end is larger; closed profiles and closed loops of curves only, a profile's holes leaning the other way, as on solid.extrude's solid, whose side walls these are; one side only, not with `to` or `to_next`
cornerpreserve_curvature|tangent|roundNohow the taper closes a sharp corner, as solid.extrude
nameNo
body_nameNoa surface body: walls only, no caps
Automation details

Command ID: surface.extrude

Parameters:

sketch?: id|name; curves?: [curve ids] (open or closed chains of curves meeting end to end) and/or profiles? (their boundaries; the default when no curves are given); distance: expr (unless `to` or `to_next`); to?: [x,y,z] (To Object: end at the face, vertex or point there; a curved or slanted face trims the walls where they meet its surface); to_offset?: expr (how far past `to`; a flat face square to the extrusion or a point only); to_next?: bool (To Next: each wall runs on, one way as `direction` says, until it first meets a solid or surface body, its faces as they are; a wall that meets none, or runs on past the side of a body covering only part of it, is refused); direction?: positive|negative|symmetric (symmetric: distance is the total, split evenly around the start plane, as solid.extrude); convention?: total_distance|legacy_per_side (as solid.extrude; default total_distance; legacy_per_side: the distance on each side, as older symmetric surface extrudes keep); distance2?: expr; start_offset?: expr; taper?: expr (angle the walls lean by, the profile being the section at the start; positive: outward, so the far end is larger; closed profiles and closed loops of curves only, a profile's holes leaning the other way, as on solid.extrude's solid, whose side walls these are; one side only, not with `to` or `to_next`); corner?: preserve_curvature|tangent|round (how the taper closes a sharp corner, as solid.extrude); name?, body_name? (a surface body: walls only, no caps)

Surface Revolve

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
sketchid|nameNo
curves[curve ids] and/or profiles?Noas surface.extrude
axissketch line id|x|y|X|Y|Z|{type: world, axis: X|Y|Z}|{sketch, curve}|construction axis name|{origin, dir}| {edge|face: [x,y,z]}Yesa line of another sketch, followed in that sketch; origin: numbers or length expressions, followed when parameters change; a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes
angleexprNodefault 360 deg
angle2exprNothe other side
symmetricboolNo
facedboolNodefault true: each face faces the side Surface Extrude's would, the curve's direction crossed with the sketch normal, so out of a profile; false: each face along its surface's own normal, as surface revolves saved before it keep
stays_surfaceboolNodefault true: a full turn that closes the walls is a closed surface body, which Stitch makes a solid; false: it becomes a solid, as surface revolves saved before it keep
nameNo
body_nameNoa surface body, no caps
Automation details

Command ID: surface.revolve

Parameters:

sketch?: id|name; curves?: [curve ids] and/or profiles? (as surface.extrude); axis: sketch line id|x|y|X|Y|Z|{type: world, axis: X|Y|Z}|{sketch, curve} (a line of another sketch, followed in that sketch)|construction axis name|{origin, dir} (origin: numbers or length expressions, followed when parameters change) | {edge|face: [x,y,z]} (a straight or circular edge, or a cylinder, cone or torus face: about its axis, followed as the model changes); angle?: expr (default 360 deg); angle2?: expr (the other side); symmetric?: bool; faced?: bool (default true: each face faces the side Surface Extrude's would, the curve's direction crossed with the sketch normal, so out of a profile; false: each face along its surface's own normal, as surface revolves saved before it keep); stays_surface?: bool (default true: a full turn that closes the walls is a closed surface body, which Stitch makes a solid; false: it becomes a solid, as surface revolves saved before it keep); name?, body_name? (a surface body, no caps)

Surface Sweep

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
sketchid|nameNo
curves[curve ids] and/or profiles?Noas surface.extrude
path_sketchsketchYes
path[curve ids in order]Yesa path with corners, or 3D curves, gives ruled walls mitred at the corners
path_bodybody nameNo
path_edges[points on its edges]Nothe path is a chain of that body's edges, instead of a sketch's curves
orientationNo
twistNo
scaleNo
railsNo
rail_fitNoas solid.sweep
nameNo
body_nameNoa surface body, no caps
stays_surfaceboolNodefault true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep
Automation details

Command ID: surface.sweep

Parameters:

sketch?: id|name; curves?: [curve ids] and/or profiles? (as surface.extrude); path_sketch: sketch; path: [curve ids in order] (a path with corners, or 3D curves, gives ruled walls mitred at the corners); path_body?: body name; path_edges?: [points on its edges] (the path is a chain of that body's edges, instead of a sketch's curves); orientation?, twist?, scale?, rails?, rail_fit? (as solid.sweep); name?, body_name? (a surface body, no caps); stays_surface?: bool (default true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep)

Surface Loft

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
sections[{sketch, curves?: [curve ids], profiles?} | {body, edges: [[x,y,z]]}]Yes2…50 in order; each one chain: a profile without holes, or curves meeting end to end, planar or of a 3D sketch; all open or all closed (all open with a 3D sketch curve); a body edge chain takes the face the chain bounds as the surface the end repeats
continuity[g0|g1|g2|g3, g0|g1|g2|g3]Noeach end, default g0: how much of the surface at the first and last section the loft repeats — the tangent plane, the curvature, or how that curvature changes
crown[number, number]Nodefault 0: how full each end leaves, -0.9 flattest to 3 fullest
railsNo
rail_fitNoas solid.loft; sketch sections, both ends g0
facedboolNodefault true: through planar sketch sections, the walls face out of the region closed sections bound, as solid.loft's faces do, and an open section's direction crossed with its sketch normal, as surface.extrude's; false: each wall along its skinned surface's normal, as surface lofts saved before it keep
nameNo
body_nameNoa surface body: ruled between two sections, smooth through three or more; no caps
stays_surfaceboolNodefault true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep
Automation details

Command ID: surface.loft

Parameters:

sections: [{sketch, curves?: [curve ids], profiles?} | {body, edges: [[x,y,z]]}] (2…50 in order; each one chain: a profile without holes, or curves meeting end to end, planar or of a 3D sketch; all open or all closed (all open with a 3D sketch curve); a body edge chain takes the face the chain bounds as the surface the end repeats); continuity?: [g0|g1|g2|g3, g0|g1|g2|g3] (each end, default g0: how much of the surface at the first and last section the loft repeats — the tangent plane, the curvature, or how that curvature changes); crown?: [number, number] (default 0: how full each end leaves, -0.9 flattest to 3 fullest); rails?, rail_fit? (as solid.loft; sketch sections, both ends g0); faced?: bool (default true: through planar sketch sections, the walls face out of the region closed sections bound, as solid.loft's faces do, and an open section's direction crossed with its sketch normal, as surface.extrude's; false: each wall along its skinned surface's normal, as surface lofts saved before it keep); name?, body_name? (a surface body: ruled between two sections, smooth through three or more; no caps); stays_surface?: bool (default true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep)

Offset Surface

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
faces[[x,y,z]]Yespoints on the faces
bodyNo
distanceexprYessigned, along the faces' normals; 0 copies the faces
chainboolNoeach pick's whole smooth chain of faces
toleranceexprNohow far a fitted face may stray, default 0.01 mm
stays_surfaceboolNodefault true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep
Automation details

Command ID: surface.offset

Parameters:

faces: [[x,y,z]] (points on the faces); body?; distance: expr (signed, along the faces' normals; 0 copies the faces); chain?: bool (each pick's whole smooth chain of faces); tolerance?: expr (how far a fitted face may stray, default 0.01 mm). Planes and cylinders move exactly; other faces are fitted. A new surface body; stays_surface?: bool (default true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep)

Midsurface

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
bodyYes
max_thicknessexprNodefault: the analysis's suggestion
min_thicknessexprNodefault 0
min_aspectnumberNodefault 5: walls whose span is less than this many times their thickness need a decision; lower flags fewer, higher more
pairs[[[x,y,z], [x,y,z]]]Noa point on each face of each pair to build, as surface.midsurface_analyze lists them; default: the pairs it is sure of
exclude[[x,y,z]]Nopoints on faces whose pairs are left out
include_review_pairsboolNodefault false
carry_holesboolNodefault true: holes through both faces stay holes
suppress_holes_belowexprNodefault 0: holes no wider are filled
keep_originalboolNodefault true
stitchboolNodefault true: one surface body sewn where sheets meet, edges where three meet left open, a solid where the sheets close, as surface.stitch's; false: a body per sheet, and per piece of a sheet a joint cut in pieces across a carried hole
Automation details

Command ID: surface.midsurface

Parameters:

body; max_thickness?: expr (default: the analysis's suggestion); min_thickness?: expr (default 0); min_aspect?: number (default 5: walls whose span is less than this many times their thickness need a decision; lower flags fewer, higher more); pairs?: [[[x,y,z], [x,y,z]]] (a point on each face of each pair to build, as surface.midsurface_analyze lists them; default: the pairs it is sure of); exclude?: [[x,y,z]] (points on faces whose pairs are left out); include_review_pairs?: bool (default false); carry_holes?: bool (default true: holes through both faces stay holes); suppress_holes_below?: expr (default 0: holes no wider are filled); keep_original?: bool (default true); stitch?: bool (default true: one surface body sewn where sheets meet, edges where three meet left open, a solid where the sheets close, as surface.stitch's; false: a body per sheet, and per piece of a sheet a joint cut in pieces across a carried hole); name?, body_name?. The surface halfway between each pair of faces that face each other across material (flat walls, drafted walls up to 10 degrees on the plane bisecting their faces, and round walls), joined where walls meet. The feature stores the pairs chosen (a round pair not built yet among them); the reply's warning lists what is not covered

Ruled Surface

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
bodyYes
edges[[x,y,z]]Yespoints on a chain of its edges, open or closed
distanceexprYeshow far the strip reaches
modenormal|tangent|angle|directionNodefault normal: along the normal of the face beside each edge; tangent: continuing it
angleexprNoangle mode: from `direction`, else from the face's normal, turned away from the face; 90 deg from the normal is tangent
direction[x,y,z]Nodirection mode: the rulings; angle mode: the reference, e.g. a pull direction for a draft
face[x,y,z]Noa point on the face the directions come from; default: the face beside the most picked edges
flipboolNothe other side
cornersmitre|roundNosharp corners of the chain; inside corners are always cut back
stays_surfaceboolNodefault true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep
Automation details

Command ID: surface.ruled

Parameters:

body; edges: [[x,y,z]] (points on a chain of its edges, open or closed); distance: expr (how far the strip reaches); mode?: normal|tangent|angle|direction (default normal: along the normal of the face beside each edge; tangent: continuing it); angle?: expr (angle mode: from `direction`, else from the face's normal, turned away from the face; 90 deg from the normal is tangent); direction?: [x,y,z] (direction mode: the rulings; angle mode: the reference, e.g. a pull direction for a draft); face?: [x,y,z] (a point on the face the directions come from; default: the face beside the most picked edges); flip?: bool (the other side); corners?: mitre|round (sharp corners of the chain; inside corners are always cut back); far?: [null|[[x,y,z]]] (per chain edge, the interior control points of a free strip's far curve, as the default curve's handles list them; null: the default). A constant ruling, or one keeping its angle to an arc's axis, gives an exact plane, cylinder or cone; where the rulings turn freely along an edge, the strip is the exact ruled surface to a far curve of its own (from corner to corner, fair, near the rulings' ends). A new surface body; stays_surface?: bool (default true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep)

Blend Surface

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
from{body, edges: [[x,y,z]]}Yes
to{body, edges: [[x,y,z]]}Yespoints on the edges of one chain of each body: two picks on the same edge is that one edge, more chain up
continuity[g0|g1|g2|g3, g0|g1|g2|g3]Noeach end, default g1: how much of the surface at the picked edges the blend repeats — the tangent plane, the curvature, or how that curvature changes
bulge[number, number]Nodefault 0: how full each end leaves, -0.9 flattest to 3 fullest
align[[x,y,z], [x,y,z]]Noa point each end leaves towards, when the faces at the picks do not say
seam[[x,y,z], [x,y,z]]Noa point on each chain its stations start from: two closed chains otherwise pair the way that keeps the blend from twisting; an open chain starts at the end nearer its point; a closed chain blends only to a closed chain
stitchboolNosew the blend onto its two bodies where the boundaries meet, replacing them
nameNo
body_nameNo
Automation details

Command ID: surface.blend

Parameters:

from, to: {body, edges: [[x,y,z]]} (points on the edges of one chain of each body: two picks on the same edge is that one edge, more chain up); continuity?: [g0|g1|g2|g3, g0|g1|g2|g3] (each end, default g1: how much of the surface at the picked edges the blend repeats — the tangent plane, the curvature, or how that curvature changes); bulge?: [number, number] (default 0: how full each end leaves, -0.9 flattest to 3 fullest); align?: [[x,y,z], [x,y,z]] (a point each end leaves towards, when the faces at the picks do not say); seam?: [[x,y,z], [x,y,z]] (a point on each chain its stations start from: two closed chains otherwise pair the way that keeps the blend from twisting; an open chain starts at the end nearer its point; a closed chain blends only to a closed chain); stitch?: bool (sew the blend onto its two bodies where the boundaries meet, replacing them); name?, body_name?

Offset Curve

Command group: SURFACE › CREATE

Read the solid features guide.

ParameterTypeRequiredDescription
face[x,y,z]Yesa point on the face; from a sketch curve the offset goes toward the side of the curve that the point is on, and a point on the curve is refused
bodyNothe face's body; default: the body nearest the point
from{edge: [x,y,z], body?}| {sketch, curve}Yesthe edge of the face nearest this edge point: the offset always goes into the face; body, if given, must be the face's body, default the face's body; a curve or 3D curve of another, earlier sketch lying on the face
tolerancemmNodefault 0.01: how far the fitted cubic spline through the offset's points may be from the true offset, measured between them
Automation details

Command ID: surface.offset_curve

Parameters:

face: [x,y,z] (a point on the face; from a sketch curve the offset goes toward the side of the curve that the point is on, and a point on the curve is refused), body? (the face's body; default: the body nearest the point); from: {edge: [x,y,z], body?} (the edge of the face nearest this edge point: the offset always goes into the face; body, if given, must be the face's body, default the face's body) | {sketch, curve} (a curve or 3D curve of another, earlier sketch lying on the face);distance: mm (> 0), measured along the face: each point that far along the straightest path on the face leaving the source square to it (a plane: the ordinary offset; a cylinder, cone or extrusion: the offset in the face unrolled); tolerance?: mm (default 0.01: how far the fitted cubic spline through the offset's points may be from the true offset, measured between them). Where the offset would leave the face it stops at the face's edge; an offset that leaves the face's surface, one that folds over itself (the distance past the source's radius of curvature on the face), a source not on the face and a pole on the way are refused. Needs an active sketch: a linked 3D curve that follows the face and the source; the reply gives the deviation and whether the face's edge cut it. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

SURFACE › EDIT

Stitch

Command group: SURFACE › EDIT

Read the solid features guide.

ParameterTypeRequiredDescription
bodies[names]Yessurfaces sewn into the first; a solid when they close
toleranceexprNodefault: tight
Automation details

Command ID: surface.stitch

Parameters:

bodies: [names] (surfaces sewn into the first; a solid when they close); tolerance?: expr (default: tight)

Extend

Command group: SURFACE › EDIT

Read the solid features guide.

ParameterTypeRequiredDescription
bodysurface nameYes
edges[[x,y,z]]Yespoints on boundary edges to push out
distanceexprYesunless up_to
modenatural| tangent| curvature| lawNothe surface itself continued: a B-spline's end spans continued, which keeps planes and surfaces of revolution on themselves; the default; the face continued tangent to its surface across the edge, G1; continued keeping the surface's curvature across the edge too, G2; a ruled strip built from the picked edges themselves, one chain of them, so trimmed edges extend too; it leaves the edge at `angle` to the surface
angleexprNolaw only, default 0 deg: tangent to the surface; positive turns the strip toward the side the face's normal points to; strictly between -90 and 90 deg
up_toplane| {body, point}| {body}| "bounds"NoXY|XZ|YZ|plane name|{origin, normal}; a face, its surface extended; a whole body, where the surface first runs into any of its faces; natural or law: a law strip stops there; natural: back to the surface's own bounds, undoing a trim
neighboursboolNodefault true: the edges next to an extended edge are lengthened to meet it; false: the extension's sides run square to the edge
stays_surfaceboolNodefault true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep
Automation details

Command ID: surface.extend

Parameters:

body: surface name; edges: [[x,y,z]] (points on boundary edges to push out); distance: expr (unless up_to); mode?: natural (the surface itself continued: a B-spline's end spans continued, which keeps planes and surfaces of revolution on themselves; the default) | tangent (the face continued tangent to its surface across the edge, G1) | curvature (continued keeping the surface's curvature across the edge too, G2) | law (a ruled strip built from the picked edges themselves, one chain of them, so trimmed edges extend too; it leaves the edge at `angle` to the surface); angle?: expr (law only, default 0 deg: tangent to the surface; positive turns the strip toward the side the face's normal points to; strictly between -90 and 90 deg); up_to?: plane (XY|XZ|YZ|plane name|{origin, normal}) | {body, point} (a face, its surface extended) | {body} (a whole body, where the surface first runs into any of its faces; natural or law: a law strip stops there) | "bounds" (natural: back to the surface's own bounds, undoing a trim); neighbours?: bool (default true: the edges next to an extended edge are lengthened to meet it; false: the extension's sides run square to the edge); stays_surface?: bool (default true: a result whose shells close stays a surface body, which Stitch makes a solid; false: it becomes a solid, as features saved before it keep)

Trim

Command group: SURFACE › EDIT

Read the solid features guide.

ParameterTypeRequiredDescription
bodysurface nameYes
planeXY|XZ|YZ|plane name|{origin, normal} or tool: {body}| {body, point}Yesthe whole bounded cutting sheet; a face, its surface extended
curves{sketch, curves?: [curve ids] (chains of curves meeting end to end; default every curve), direction?: normal|face_normal|[x,y,z] (swept onto the surface along the sketch's normal, the default, or this direction; face_normal: projected along the surface's own normal, each point of a curve to its nearest point of the surface, and keep picks regions)}Yes
keep[x,y,z]Yesa point on the side to keep
keep_with[x,y,z] or [[x,y,z], …]Yeswhat to keep of it
extendboolNoa surface that stops short of the other is extended to meet it
stitchboolNothe kept pieces sewn into `body`; `with` is then gone
Automation details

Command ID: surface.trim

Parameters:

body: surface name; plane: XY|XZ|YZ|plane name|{origin, normal} or tool: {body} (the whole bounded cutting sheet) | {body, point} (a face, its surface extended) or curves: {sketch, curves?: [curve ids] (chains of curves meeting end to end; default every curve), direction?: normal|face_normal|[x,y,z] (swept onto the surface along the sketch's normal, the default, or this direction; face_normal: projected along the surface's own normal, each point of a curve to its nearest point of the surface, and `keep` picks regions)}; keep: [x,y,z] (a point on the side to keep) or [[x,y,z], ...] (points on the regions to keep: the pieces that hang together once cut). Mutual trim: with: another surface (one face each; leave out plane, tool and curves), keep_with: [x,y,z] or [[x,y,z], ...] (what to keep of it); each is cut where the other's surface (extended) meets it; extend?: bool (a surface that stops short of the other is extended to meet it); stitch?: bool (the kept pieces sewn into `body`; `with` is then gone)

Untrim

Command group: SURFACE › EDIT

Read the solid features guide.

ParameterTypeRequiredDescription
face{body, point}Yes
holesall|[[x,y,z]]Nopoints on the inner loops to remove; default: all
outerboolNorestore the outer boundary to the surface's natural bounds: a free-form surface's own, an analytic surface's span of the face
in_placeboolNountrim a surface body's face where it is; a solid's face is always copied out
Automation details

Command ID: surface.untrim

Parameters:

face: {body, point}; holes?: all|[[x,y,z]] (points on the inner loops to remove; default: all); outer?: bool (restore the outer boundary to the surface's natural bounds: a free-form surface's own, an analytic surface's span of the face); in_place?: bool (untrim a surface body's face where it is; a solid's face is always copied out). A surface body; the face keeps its name

SURFACE › MODIFY

Unstitch

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodyYes
faces[[x,y,z]]Nopoints on the faces to take out, each its own surface body; the rest stay together under the body's name; default: every face its own surface body
Automation details

Command ID: surface.unstitch

Parameters:

body; faces?: [[x,y,z]] (points on the faces to take out, each its own surface body; the rest stay together under the body's name; default: every face its own surface body). A solid comes apart into surfaces

Reverse Normal

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodyYesa surface
faces[[x,y,z]]Nopoints on the faces to turn over; default: all of them
Automation details

Command ID: surface.reverse_normal

Parameters:

body (a surface); faces?: [[x,y,z]] (points on the faces to turn over; default: all of them)

Fair Surface

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodysurface nameYes
faces[[x,y,z]] points on the faces to fairNodefault: every face
strengthnumberNo0..1 of the full fairing step, default 1
iterationsnumberNo1..1000 steps, default 1
keep_edgesboolNodefault true: hold the boundary row and the row next to it, so a face keeps meeting its neighbours in position and in tangent
nameNo
Automation details

Command ID: surface.fair

Parameters:

body: surface name; faces?: [[x,y,z]] points on the faces to fair (default: every face); strength?: number (0..1 of the full fairing step, default 1); iterations?: number (1..1000 steps, default 1); keep_edges?: bool (default true: hold the boundary row and the row next to it, so a face keeps meeting its neighbours in position and in tangent); tolerance?: expr mm (how far a control vertex may move, default 0.001 of the body's size). Moves the interior control vertices of each B-spline face to flatten its curvature variation while the boundary stays put: the face keeps its edges and the body its shape within the tolerance, and the warning in the reply carries the energy before and after; name?

Surface Fillet

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
a{body, point}Yes
b{body, point}Yestwo bodies, a point [x,y,z] mm on each face: each a surface body of one face, or one of them a solid body, whose face at the point the ball rolls on; not both solids; the points pick the side of the other surface or face that is kept: the side the rolling ball stays on; a point the round would cut away is refused
radiusexprYeslength > 0
trimboth|first|noneNodefault both: each surface is cut back to the round and sewn to it, one body under a's name, b's body gone; first: only a is cut back and sewn to the round, b is left as it was; none: neither changes and the round alone is a new surface body; with a solid, both and first alike cut back only the surface and sew it to the round under the surface's name
Automation details

Command ID: surface.fillet

Parameters:

a, b: {body, point} (two bodies, a point [x,y,z] mm on each face: each a surface body of one face, or one of them a solid body, whose face at the point the ball rolls on; not both solids; the points pick the side of the other surface or face that is kept: the side the rolling ball stays on; a point the round would cut away is refused); radius: expr (length > 0); trim?: both|first|none (default both: each surface is cut back to the round and sewn to it, one body under a's name, b's body gone; first: only a is cut back and sewn to the round, b is left as it was; none: neither changes and the round alone is a new surface body; with a solid, both and first alike cut back only the surface and sew it to the round under the surface's name); extend?: bool (default false; true extends a surface that stops short of the other so that they meet). The two must meet along one seam: more than one seam is refused. Each is cut where the other meets it, the kept pieces are sewn and the seam is rounded with an exact fillet. A solid is never changed: the round is not joined to it. One undo step; nothing is made if they don't meet, or the ball does not fit

Surface Chamfer

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
a{body, point}Yes
b{body, point}Yestwo bodies, in either order, a point [x,y,z] mm on each face: each a surface body of one face, or one of them a solid body, whose face at the point the bevel runs on, as surface.fillet; not both solids; the points pick the side of the other surface or face that is kept; a point the bevel would cut away is refused
distanceexprYeslength > 0; alone: how far back along each surface the bevel reaches; with distance2 or angle: along the reference surface
flipboolNodefault false: the reference surface is the face whose normal at the middle of the seam points most upward, +Z, whichever of a and b it is; true: the one pointing most downward, -Z; no effect with distance alone
trimboth|first|noneNoas surface.fillet: both: each surface is cut back and sewn to the bevel, one body under a's name; first: only a, whatever flip says; none: the bevel alone as a new surface body; with a solid, both and first alike cut back only the surface, and the solid is never changed
extendboolNodefault false; true extends a surface that stops short of the other so that they meet
Automation details

Command ID: surface.chamfer

Parameters:

a, b: {body, point} (two bodies, in either order, a point [x,y,z] mm on each face: each a surface body of one face, or one of them a solid body, whose face at the point the bevel runs on, as surface.fillet; not both solids; the points pick the side of the other surface or face that is kept; a point the bevel would cut away is refused); distance: expr (length > 0; alone: how far back along each surface the bevel reaches; with distance2 or angle: along the reference surface); distance2?: expr (length > 0: how far back along the other surface, not the reference) or angle?: expr (strictly between 0 and 180 deg: the angle the bevel makes with the reference surface), not both; flip?: bool (default false: the reference surface is the face whose normal at the middle of the seam points most upward, +Z, whichever of a and b it is; true: the one pointing most downward, -Z; no effect with distance alone); trim?: both|first|none (as surface.fillet: both: each surface is cut back and sewn to the bevel, one body under a's name; first: only a, whatever flip says; none: the bevel alone as a new surface body; with a solid, both and first alike cut back only the surface, and the solid is never changed); extend?: bool (default false; true extends a surface that stops short of the other so that they meet). The two must meet along one seam: more than one seam is refused. One undo step; nothing is made if they don't meet, or the bevel does not fit

Match Surface

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodysurface nameYesthe body whose face is rebuilt
faces[[x,y,z]]Nopoints on that face, default: the body's first
targetbody nameYesthe body the seam must meet
edges[[x,y,z]]Yespoints on one edge chain of the target: the rebuilt boundary takes its place
orderg1|g2|g3Nodefault g2: position and tangent plane, the curvature too, or how that curvature changes along the seam
Automation details

Command ID: surface.match

Parameters:

body: surface name (the body whose face is rebuilt); faces?: [[x,y,z]] (points on that face, default: the body's first); target: body name (the body the seam must meet); edges: [[x,y,z]] (points on one edge chain of the target: the rebuilt boundary takes its place); order?: g1|g2|g3 (default g2: position and tangent plane, the curvature too, or how that curvature changes along the seam). The far boundary stays where it was and the body keeps its name

Morph

Command group: SURFACE › MODIFY

Read the solid features guide.

ParameterTypeRequiredDescription
bodysolid or surface body nameYes
faces[[x,y,z]]Nooptional points on specific faces, default: whole body
basebody name carrying the base reference surfaceYes
base_face[x,y,z]No
controlbody name carrying the target reference surfaceYes
control_face[x,y,z]No
projectionnormal|directionNodefault normal
direction[dx,dy,dz]No
map_modenormal_to_normal|translateNodefault normal_to_normal
scalenumber or exprNodefault 1
tolerancelength or exprNodefault 0.01 mm
flip_uboolNo
flip_vboolNo
swap_uvboolNo
keep_originalboolNo
Automation details

Command ID: surface.morph

Parameters:

body: solid or surface body name; faces?: [[x,y,z]] (optional points on specific faces, default: whole body); base: body name carrying the base reference surface; base_face?: [x,y,z]; control: body name carrying the target reference surface; control_face?: [x,y,z]; projection?: normal|direction (default normal); direction?: [dx,dy,dz]; map_mode?: normal_to_normal|translate (default normal_to_normal); scale?: number or expr (default 1); tolerance?: length or expr (default 0.01 mm); flip_u?: bool; flip_v?: bool; swap_uv?: bool; keep_original?: bool

SURFACE › FORMS

Import Blender Forms

Command group: SURFACE › FORMS

Read the solid features guide.

ParameterTypeRequiredDescription
path.blend fileYes
Automation details

Command ID: form.blend.import

Parameters:

path: .blend file; objects?: exact names (default all supported mesh objects, maximum 16). Open editable cages with units, transforms and creases; Finish saves staged Forms, Cancel discards the import. Unsupported objects are reported.

Export Blender Forms

Command group: SURFACE › FORMS

Read the solid features guide.

ParameterTypeRequiredDescription
path.blend destinationYes
surfacefalseNoeditable quad cages with subdivision and creases
featuressaved feature idsNocages require Forms
namecurrent editor object nameNo
Automation details

Command ID: form.blend.export

Parameters:

path: .blend destination; surface?: false (editable quad cages with subdivision and creases) or true (evaluated CAD triangle meshes, no subdivision modifier); features?: saved feature ids (cages require Forms); name?: current editor object name; tolerance?, operation?, targets?: active Form fitting/Finish options. Default: current editor and staged Forms, otherwise saved Forms for cages or current bodies for surfaces. Export never finishes the live editor.

Form Pipe

Command group: SURFACE › FORMS

Read the solid features guide.

ParameterTypeRequiredDescription
diameterNo
section_density1..12No
path_samples1..20No
Automation details

Command ID: form.pipe

Parameters:

sketch and optional curves, or body and optional edges: source path; diameter?, section_density?:1..12, path_samples?:1..20. Overrides replace the segment list; zero diameter/samples inherit globals. regenerate?: false, required to replace a sculpted pipe cage.

Form Surface

Command group: SURFACE › FORMS

Read the solid features guide.

ParameterTypeRequiredDescription
bodyexisting CAD sourceYes
faceexisting CAD sourceYes
segments[U,V]No2,2
continuity0|1No
Automation details

Command ID: form.surface

Parameters:

body, face: existing CAD source; segments?: [U,V] (2,2); continuity?:0|1. Edit interior guide points while retaining the source rim; Finish replaces that face in its solid. A retained-repair tool preview requires reattach:{swap,reverse_u,reverse_v} and unchanged guide counts.

Create Form

Command group: SURFACE › FORMS

Read the solid features guide.

ParameterTypeRequiredDescription
primitivebox|cylinder|quadball|sphere|pipe|face|torus|tubeNo
dimensions[x,y,z] mmNo
segments[x,y,z]No
radii[major,minor]No
path[[x,y,z]]No
size40 mmNo
spans2No
levels0..4No3
Automation details

Command ID: form.prototype.create

Parameters:

primitive?: box|cylinder|quadball|sphere|pipe|face|torus|tube; dimensions?: [x,y,z] mm; segments?: [x,y,z]; radii?: [major,minor]; path?: [[x,y,z]]; size?: 40 mm; spans?: 2; levels?: 0..4 (3). Begin an editable Form session. Finish Form saves fitted CAD and editable source.

SHEET METAL › CREATE

Flange

Command group: SHEET METAL › CREATE

Create a sheet metal base, bend an existing edge into a wall, or build a contour from an open sketch. The sheet metal rule supplies the material thickness and bend settings so the folded and flat versions describe the same part.

Before you start

Flange typeWhat you need to selectResult
BaseA closed region in a finished sketch.A new flat sheet metal body.
EdgeOne or more supported edges of an existing sheet metal body.Bent walls along those edges. A sketch is not required for this mode.
ContourAn open chain of straight sketch lines.A sheet following that outline, extended by the chosen distance.

Choose or create a Sheet Metal Rule before building the part. To work from an ordinary solid plate, use Convert to Sheet Metal first. An arbitrary solid edge does not become a sheet metal edge just by selecting Flange.

Options

ChoiceMeaning
TypeBase, Edge or Contour. The selection determines which input is appropriate.
RuleSets thickness, bend radius, K-factor and the gaps/reliefs that keep bends manufacturable. Change thickness in the rule, not as a flange height.
HeightSets the edge flange’s height. Check the height reference and preview when matching a drawing dimension.
AngleSets how far the edge bends; 90° makes a right-angle wall.
Per-edge angle and heightLets selected edges in one feature have different dimensions. Empty values use the common setting.
PositionPlaces the flange relative to the selected edge. The preview shows which material remains inside or outside the original outline.
FlipBends toward the other side of the sheet.
Corner Relief Shape and sizeUse the rule’s setting or override relief between edge flanges of this feature. These overrides are not available for base or contour flanges.
DistanceSets the length of a contour flange’s extrusion along the open sketch.

Try it: two sides of a tray

  1. Set a sheet rule with 1.5 mm thickness and 1.5 mm bend radius.
  2. Draw and finish an 80 × 50 mm rectangular sketch.
  3. Choose Flange, select the rectangle’s region and make a Base flange.
  4. Choose Flange again, select an edge and set its height to 20 mm.
  5. Add another 20 mm flange on the opposite edge. Check the bend directions before confirming each feature.
  6. Use Create Flat Pattern to inspect the developed part and bend lines.

Tips and common mistakes

  • Do use one edge flange feature for adjoining walls whose shared corners should close together. Flanges made as separate features keep their own ends.
  • Do inspect warnings and the flat pattern; a relief that cannot fit may be left out with a warning.
  • Don’t confuse height with sheet thickness. The rule owns thickness.
  • Don’t select a sketch point for an edge flange: choose an edge of the sheet. For a base flange, select a closed sketch region instead.

Examples and community resources

ResourceWhat to exploreAuthor and licence
Editable sheet metal demoThe rule, base sketch and two edge flanges used in this illustration.SolidCraft contributors; MIT OR Apache-2.0.

Contribute a tip, demo, model or screenshot, explaining the edge or region that must be selected.

See also

Hem returns an edge back toward the sheet. Fold bends a sheet along a chosen line. Sheet Metal Rules controls thickness and bend settings. Create Flat Pattern shows the developed part.

ParameterTypeRequiredDescription
basesketch + profiles?Yesomitted: nested outlines keep holes; rule?, flip?
contoursketch + curvesYesopen chain of lines and tangent arcs
radiusNodefault: rule
orientationcenter|side1|side2Nowhere the contour lies across the sheet thickness; default side1
symmetricboolNothe distance each way across the sketch plane; total width is twice the distance
ruleNo
flipNo
reverseedges: [[x,y,z] on top/bottom edges, or {point: [x,y,z], angle?, height?, segments?} for an edge with its own angle and height, or split into 1…64 segments [{from, to, angle?, height?, flip?}] that tile the stretch the sheet still has there (from, to are fractions 0…1 of it, first from 0, last to 1; consecutive segments that match make one bend)] + heightNoalong the flange, to its far edge
edgeedges: [[x,y,z] on top/bottom edges, or {point: [x,y,z], angle?, height?, segments?} for an edge with its own angle and height, or split into 1…64 segments [{from, to, angle?, height?, flip?}] that tile the stretch the sheet still has there (from, to are fractions 0…1 of it, first from 0, last to 1; consecutive segments that match make one bend)] + heightNoalong the flange, to its far edge
angleNodefault 90 deg
radiusNodefault: rule
height_fromouter|inner|tangentNowhere the height is measured from: the outer virtual sharp (default), the inner virtual sharp, or past 90 deg the line square to the flange touching the bend's outside (tangent; up to 90 deg the outer sharp)
positioninside|outside|middle|material_outside|tangentNowhere the bend starts: the outer virtual sharp on the edge (default), the bend starting at the edge (bend_outside is the same), half way, the inner virtual sharp on the edge, or the bend's outer face tangent to the edge's face (below 90 deg the bend's end on that face)
offsetNohow far each bend moves out past its position, the panel growing by that strip; negative moves it in; default 0
start_setbackNo
end_setbackNohow far each flange, its bend with it, stops short of its edge's start and end, the start met first walking along the edge with the sheet on the left; only at an end no other edge of the feature meets, a corner between two of its edges closing as without them; the rule's bend relief is cut beside each end it stops short of, or where the sheet runs on less than its width past the end, the sheet is cut back to the bend's tangent line; default 0
start_extensionNo
end_extensionNohow far each flange's flat runs on past its bend's start and end, at the same ends, the bend staying as long as the edge; default 0
flipNo
bodyNo
corner_relief_shapenotch|round|rectangular|tear and corner_relief?Nosize across
bend_relief_shaperectangular|obround|tearNothe relief beside a bend's end where the sheet runs on past it; default: the rule's
typebase|edge|contourNodefault from the inputs
Automation details

Command ID: sheet.flange

Parameters:

base: sketch + profiles? (omitted: nested outlines keep holes; rule?, flip?) | contour: sketch + curves (open chain of lines and tangent arcs) + distance; radius? (default: rule); orientation?: center|side1|side2 (where the contour lies across the sheet thickness; default side1); symmetric?: bool (the distance each way across the sketch plane; total width is twice the distance); rule?, flip?, reverse? | edge: edges: [[x,y,z] on top/bottom edges, or {point: [x,y,z], angle?, height?, segments?} for an edge with its own angle and height, or split into 1…64 segments [{from, to, angle?, height?, flip?}] that tile the stretch the sheet still has there (from, to are fractions 0…1 of it, first from 0, last to 1; consecutive segments that match make one bend)] + height (along the flange, to its far edge), angle? (default 90 deg), radius? (default: rule), height_from?: outer|inner|tangent (where the height is measured from: the outer virtual sharp (default), the inner virtual sharp, or past 90 deg the line square to the flange touching the bend's outside (tangent; up to 90 deg the outer sharp)), position?: inside|outside|middle|material_outside|tangent (where the bend starts: the outer virtual sharp on the edge (default), the bend starting at the edge (bend_outside is the same), half way, the inner virtual sharp on the edge, or the bend's outer face tangent to the edge's face (below 90 deg the bend's end on that face)), offset? (how far each bend moves out past its position, the panel growing by that strip; negative moves it in; default 0), start_setback?, end_setback? (how far each flange, its bend with it, stops short of its edge's start and end, the start met first walking along the edge with the sheet on the left; only at an end no other edge of the feature meets, a corner between two of its edges closing as without them; the rule's bend relief is cut beside each end it stops short of, or where the sheet runs on less than its width past the end, the sheet is cut back to the bend's tangent line; default 0), start_extension?, end_extension? (how far each flange's flat runs on past its bend's start and end, at the same ends, the bend staying as long as the edge; default 0), flip?, body?, corner_relief_shape?: notch|round|rectangular|tear and corner_relief? (size across): the relief at the corners these flanges make (default: the rule's); bend_relief_shape?: rectangular|obround|tear (the relief beside a bend's end where the sheet runs on past it; default: the rule's); then?: [{angle?, height, flip?}] further bends (at most 16), each a flange on the far edge of the one before, flip: true turns that bend the other way (edge only); type?: base|edge|contour (default from the inputs); name?, body_name? (the new body). Thickness, K-factor and bend radius come from the rule (sheet.manage_rules); passing them here is refused, and so is the corner or bend relief on a base or contour flange

Path Flange

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
edge[x,y,z] on a top or bottom edge of the sheetYes
radiusNodefault: rule
Automation details

Command ID: sheet.path_flange

Parameters:

edge: [x,y,z] on a top or bottom edge of the sheet; sketch + curves: an open chain of sketch lines drawn on a plane across that edge, from the edge out (each line one flange as long as the line, to the outer face from the virtual sharp; each corner one bend, turning the way the lines turn); radius? (default: rule); body?. One feature, one body

Tab

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
profilesNodefault: all
exact_regionsboolNoas solid.extrude
Automation details

Command ID: sheet.tab

Parameters:

sketch?: id|name (default: active or last sketch), drawn on a flat face of a sheet (either side) or in a plane level with one; profiles? (default: all): closed profiles touching or overlapping that face's outline; exact_regions?: bool (as solid.extrude); body? (default: the sheet whose face the profile meets). The profile's area joins that panel of the same body through the sheet's thickness (no new body): it unfolds with its panel, and later flanges, hems and folds can use its edges. Refused when the profile doesn't meet the face, adds nothing, reaches into a bend zone, would overlap another panel once folded or flat or would join more than one panel, or the sheet is unfolded

Perforate

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
diameterexprYes
pitchexprYes
marginexprNoclear of edges, cut-outs, bends and the outline; default: the diameter
patternstaggered| squareNo60°, default
cutannotate| modelNodefault; the holes cut into the solid too, each on a flat panel clear of every bend; margin at least 0.01 mm
bodyNo
Automation details

Command ID: sheet.perforate

Parameters:

diameter, pitch: expr; margin?: expr (clear of edges, cut-outs, bends and the outline; default: the diameter); pattern?: staggered (60°, default) | square; cut?: annotate (default) | model (the holes cut into the solid too, each on a flat panel clear of every bend; margin at least 0.01 mm); body?; sketch? + profiles? (the outline: closed profiles of a sketch on a face of the sheet; holes only inside them, out of their inner loops) - a perforation field over the whole flat sheet or inside the outline: holes in the flat pattern (perforations), the DXF (layer PERFORATION) and the measured volume, and with cut: model in the B-rep (#732)

Press-in Hardware

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
kindnut|flush_nut|stud|standoffYes
thread"M3"YesISO metric coarse; the sizes each kind has are in docs/hardware-catalogue.md
lengthexprNostud and standoff: required; a nut takes none
diameterexprNothe mounting hole: the table's size to 0.08 mm over it; default the table's
directionNo
targetsNo
Automation details

Command ID: sheet.hardware

Parameters:

kind: nut|flush_nut|stud|standoff; thread: "M3" (ISO metric coarse; the sizes each kind has are in docs/hardware-catalogue.md); length?: expr (stud and standoff: required; a nut takes none); diameter?: expr (the mounting hole: the table's size to 0.08 mm over it; default the table's); sketch + points? (the holes' centres, as solid.hole), single?, flip? | position: [x,y,z] on the sheet's face; direction?; targets?; name? - cuts the mounting hole of press-in hardware (a plain through hole, in the folded part, the flat pattern and the DXF) and records the hardware on it: kind, thread, length and part (e.g. nut.m3). A sheet thinner than the hardware's minimum is refused; a centre nearer an edge, a cut-out or a bend than its minimum is a warning (the hole is still cut). Redefine the hole with this command, not solid.hole

Hem

Command group: SHEET METAL › CREATE

Fold a sheet metal edge back through a half turn to form a return. Use a hem when you need a doubled-over edge, rather than an upright wall.

Before you start

  • You need an existing sheet metal body and a supported free sheet edge. Make a base flange or convert a suitable solid plate first.
  • Select the edge, not a sketch line, face or point. Hem does not require a new sketch. A bend along a line inside the sheet uses Fold instead.
  • Leave room for the return so it does not run into another wall or return.

Options

ChoiceMeaning
EdgesThe sheet edges to turn back. Check that the preview changes the intended edge.
LengthThe return’s length, measured to its outer face. It is not the thickness of the sheet.
GapControls the inner radius of the return bend. Leave it empty to use the sheet rule’s hem setting.
FlipTurns the return toward the other side of the sheet.

Try it: a returned edge

  1. Create an 80 × 50 mm base flange in 1.5 mm sheet.
  2. Choose Hem and select a free 80 mm edge of the sheet.
  3. Set Length to 8 mm and Gap to 1.5 mm.
  4. Check which side receives the return; use Flip if necessary, then confirm.
  5. Inspect Create Flat Pattern to see the material needed for the bend.

Tips and common mistakes

  • Do check the bend in the preview: an edge returning toward another feature needs enough clearance.
  • Don’t draw a sketch line to tell Hem where to bend. Its input is an existing sheet edge; use Fold for a bend line through a panel.
  • Don’t use Hem for an ordinary right-angle wall. That is an edge Flange.

Examples and community resources

ResourceWhat to exploreAuthor and licence
Editable hem demoThe sheet rule, base flange and 8 mm return used in this illustration.SolidCraft contributors; MIT OR Apache-2.0.

Contribute a tip, demo, model or screenshot, explaining the selected edge and dimensions.

See also

Flange makes a base sheet or an angled wall. Fold bends along a line in the sheet. Sheet Metal Rules sets the default hem gap. Create Flat Pattern shows the developed part and bend lines.

ParameterTypeRequiredDescription
edges[[x,y,z] on sheet edges]Yes
lengthYesto the outer face
gapNobetween the leg and the face it folds over, twice the bend's inner radius; default: rule
flipNo
bodyNo
Automation details

Command ID: sheet.hem

Parameters:

edges: [[x,y,z] on sheet edges]; length (to the outer face); gap? (between the leg and the face it folds over, twice the bend's inner radius; default: rule); flip?; body?

Fold

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
linesketch + curveYesa sketch line on a flat face of the sheet; followed when the sketch changes
points[[x,y,z], [x,y,z]]Yes
angleNodefault 90 deg
radiusNodefault: rule
positioncenterline|start|end|mouldNowhere the line sits in the bend, default centerline
flipNofold the other way
bodyNo
Automation details

Command ID: sheet.fold

Parameters:

line: sketch + curve (a sketch line on a flat face of the sheet; followed when the sketch changes) or points: [[x,y,z], [x,y,z]]; angle? (default 90 deg); radius? (default: rule); position?: centerline|start|end|mould (where the line sits in the bend, default centerline); stays?: left|right (the side of the line as drawn that stays, seen from the sheet's surface) or fixed?: [x,y,z] on the sheet, on that side (default: the side with more of the sheet joined to it; decided once, as the fold is made, and kept); flip? (fold the other way); body?

Convert to Sheet Metal

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
bodyYesa solid or a surface body
ruleNo
Automation details

Command ID: sheet.convert

Parameters:

body (a solid or a surface body); rule?; bends?: [[x,y,z] on sharp edges]. (#6748) surfaces become the rule's sheet, its thickness, radius and reliefs whatever the body's: every face of the body but skip?: [faces left out, as points or names], each a panel however thin the body (a thin plate is six panels; sheet.recognize reads a body that is sheet metal already as one sheet); or, with face?: [x,y,z] on a face or its name from model.faces, and faces?: [more faces], those faces and every face a bend joins to them. No face is fixed. A cylinder or cone is a roll at its own radius, and a bend modelled with its radius is a bend (pick it on its roll); every sharp edge between two faces of the sheet is cut open with the rule's gap but the `bends`; a ring of bends is refused; the faces' holes become cut-outs, but engrave?: [the walls and floor of a recess in a face] makes that recess a pocket of the face's panel, as deep as its floor lies; panels whose material would overlap are refused, naming them; direction?: inside (default) | outside (the side of the faces the material lies on). The body becomes the folded sheet, and sheet.flat_pattern shows its flat

Recognize Sheet Metal

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
bodyYessheet metal already: a shell, a plate, an imported part, of one even thickness
skip[faces left out]No
bends[[x,y,z] on sharp edges]No
Automation details

Command ID: sheet.recognize

Parameters:

body (sheet metal already: a shell, a plate, an imported part, of one even thickness); face?: [x,y,z] on a face, or its name from model.faces, whose side is the sheet's surface (default: the body's largest face's side); skip?: [faces left out]; bends?: [[x,y,z] on sharp edges]; rule? | new_rule?: name (a new rule of the body's own thickness and the radius most of its modelled bends have, the rest the active rule's). (#6748) The body becomes the rule's sheet with no picks: a cylinder modelled between two planes is a bend, other cylinders and cones are rolls, every other sharp edge is cut open with the rule's gap but the `bends`; a body of walls of two thicknesses is refused, naming them (Convert takes its surfaces). sheet.measure_body reads what Recognize reads

Create Flat Pattern

Command group: SHEET METAL › CREATE

Read the sheet metal guide.

ParameterTypeRequiredDescription
bodyboolNo
summaryboolNodefault false; replace outline and cutout point lists with compact shapes
Automation details

Command ID: sheet.flat_pattern

Parameters:

body?, summary?: bool (default false; replace outline and cutout point lists with compact shapes) → flat size, outline loops and cut-outs (flat coordinates, as point lists), cutout_shapes (the same cut-outs exactly, in the same order: {circle: {center, radius}} for a round hole, else {segments: [{line: [a, b]} | {arc: {center, radius, start_deg, sweep_deg}} | {polyline: [...]}]}), pockets (with their own cutout_shapes), bend lines and the bend table

SHEET METAL › MODIFY

Corner Join

Command group: SHEET METAL › MODIFY

Read the sheet metal guide.

ParameterTypeRequiredDescription
overlaplength expression for partial_overlap onlyYes
gaplength expressionNodefault: sheet rule
bodysheet bodyNo
nameNo
Automation details

Command ID: sheet.corner_join

Parameters:

covering, covered: central edge names <face>|<face>, e.g. F3:bend.inner:F2:side:l1|F3:bottom:F2:side:l1; kind?: butt (default), partial_overlap or full_overlap; overlap: length expression for partial_overlap only; gap?: length expression (default: sheet rule); body?: sheet body; name?

Unfold

Command group: SHEET METAL › MODIFY

Read the sheet metal guide.

ParameterTypeRequiredDescription
bodyNodefault: the last sheet body
fixed[x,y,z] on the flat panel that stays where it isNodefault: the largest flat panel, or the one an earlier unfold of the sheet fixed
Automation details

Command ID: sheet.unfold

Parameters:

body? (default: the last sheet body) — all bends; fixed?: [x,y,z] on the flat panel that stays where it is (default: the largest flat panel, or the one an earlier unfold of the sheet fixed)

Refold

Command group: SHEET METAL › MODIFY

Read the sheet metal guide.

ParameterTypeRequiredDescription
bodyNodefault: the last unfolded sheet
Automation details

Command ID: sheet.refold

Parameters:

body? (default: the last unfolded sheet)

Sheet Metal Rules

Command group: SHEET METAL › MODIFY

Read the sheet metal guide.

ParameterTypeRequiredDescription
nameYesnew or existing
thicknessNo
k_factorNo
bend_radiusNo
relief_widthNo
relief_depthNo
corner_reliefNo
hem_gapNo
gapNoexpressions; `Thickness` is the rule's; gap: between flanges that meet at a corner, whose ends are closed toward each other at any angle
corner_relief_shapenotch|round|rectangular|tearNowhat is cut where two bends meet at a corner of the panel they stand on: round and rectangular a relief `corner_relief` across; tear none, each bend's end is cut straight from the corner to its flange's end; default notch
bend_relief_shaperectangular|obround|tearNothe bend relief beside a bend's end where the base runs on: a slot relief_width wide and relief_depth past the bend line, default rectangular; obround rounds its inner end and needs relief_depth at least half relief_width; tear removes nothing and cuts the flat pattern along the bend's end
angle_displaybend|includedNohow the DXF bend notes read the bend angles: the bend angle, default, or the included angle left between the bend's sides, 180° less it; the bend table gives both, and a flange's `angle` is always the bend angle
unfold_methodk_factor|deduction|allowanceNowhere the bends' K-factor comes from: k_factor, default, or worked out from unfold_value, a press brake chart's 90° bend deduction or allowance for this thickness and radius
unfold_valueNolength expression
activeboolNo
deleteboolNo
materialtextNothe material the rule is for, a label saved with it
Automation details

Command ID: sheet.manage_rules

Parameters:

name (new or existing); thickness?, k_factor?, bend_radius?, relief_width?, relief_depth?, corner_relief?, hem_gap?, gap? (expressions; `Thickness` is the rule's; gap: between flanges that meet at a corner, whose ends are closed toward each other at any angle); corner_relief_shape?: notch|round|rectangular|tear (what is cut where two bends meet at a corner of the panel they stand on: round and rectangular a relief `corner_relief` across; tear none, each bend's end is cut straight from the corner to its flange's end; default notch); bend_relief_shape?: rectangular|obround|tear (the bend relief beside a bend's end where the base runs on: a slot relief_width wide and relief_depth past the bend line, default rectangular; obround rounds its inner end and needs relief_depth at least half relief_width; tear removes nothing and cuts the flat pattern along the bend's end); angle_display?: bend|included (how the DXF bend notes read the bend angles: the bend angle, default, or the included angle left between the bend's sides, 180° less it; the bend table gives both, and a flange's `angle` is always the bend angle); unfold_method?: k_factor|deduction|allowance (where the bends' K-factor comes from: k_factor, default, or worked out from unfold_value, a press brake chart's 90° bend deduction or allowance for this thickness and radius); unfold_value? (length expression); active?: bool; delete?: bool; material?: text (the material the rule is for, a label saved with it); gauge?: with material, a gauge (16 ga) or metric thickness (1.5 mm) of the standard library (sheet.rule_library): the rule takes its thickness and keeps its own bend radius; its K-factor is the bend model's estimate at the rule's R/T for bend_method?: air|bottoming|coining (default air), said in notes, unless k_factor is given; notes also say when the radius is under the material's published minimum

WELDMENTS › CREATE

Frame Member

Command group: WELDMENTS › CREATE

ParameterTypeRequiredDescription
sketchthe frame sketchNoid or name; 2D or 3D
lines[curve ids]Noone member each; default: every straight line drawn in the sketch: not construction, not projected or otherwise linked, not of no length
pairs[{a, b}]Noone straight member from point a to point b each, after the lines' members, found again whenever the design changes; a and b are point references: {vertex: [x,y,z]}, {sketch, point} (a 3D sketch node as `wire:index`), {construct_point: name}, a snap point or the origin, as saved ({type, …}) too; typed coordinates are not points here; each pair is named pair1, pair2… and a pair's id is never given again; Edit Feature gives back the pairs it keeps with their `id` and `next_pair`, and an `id` without `next_pair` is refused
continuousboolNodefault false; one member along explicitly selected lines and circular arcs in connected tangent path order, curves reversed as needed, stable member id `$path`; corner None only, without overrides, Fit Ends, Coped, Flip, gap or point pairs
anchororigin|center|centroid|top_left|top|top_right|left|right|bottom_left|bottom|bottom_rightNothe profile point that sits on each line, default origin
locate[x,y]Nothe profile point that sits on each line, in mm from the profile's own origin: a bar's or an angle's bottom-left corner, a channel's web back at mid-height, the centre of other profiles; takes precedence over `anchor` and keeps the member attached at that point when the profile size changes
cornerauto|none|mitre|buttNohow members ending at one point are cut; default none
flipboolNoa butt's other member runs through
fit_endsboolNofit free ends to earlier Frame Members' tubes; default false
copedboolNocut every butt joint to the other tube's real shape, radii kept: butts, ends on a tube's middle, crossings, overlaps and fitted ends, mitres left as they are; not under none; default false; an older `coped_butt`, the frame's or an override's, reads as butt with coped
corners[{members: [2 to 1000 line or pair ids, or {line}], kind: auto|none|mitre|butt, gap?: length expr}]Nothat corner's, crossing's or overlap's own type, and its own weld gap; the members in order: the first runs through a butt, or stays whole at a crossing or overlap, and of three or more the first two make the corner; an older script's `corner` reads as `kind`, and its `flip` is saved as the order today's rules give with the first two swapped; an overlap takes no gap
gaplength exprNothe weld gap at every welded end, 0…1000 mm, default 0: each mitre plane half of it back, a butting or fitted end, a crossing's pieces' included, that far off the member it meets; through members keep their length, overlaps are notched without it
angleangle exprNothe profile turned about the line; default 0: its y as near world up as the line allows, a vertical member's x along world X
upX|-X|Y|-Y|Z|-ZNothe world axis that is up for the profile, default Z; a part drawn with Y up takes Y, so its members need no angle and lines along Y are its vertical members, their x along world X, or world Y when X is up
mirrorboolNothe profile mirrored across its y axis
nameNo
body_nameNowhat the members are named after, then numbered: `Rail`, `Rail (2)`…; default the size's name, `RSC 203x89`, the profile's description, `Rect Tube 40x40x3`, or the profile sketch's name
Automation details

Command ID: frame.member

Parameters:

sketch?: the frame sketch (id or name; 2D or 3D); lines?: [curve ids] (one member each; default: every straight line drawn in the sketch: not construction, not projected or otherwise linked, not of no length); pairs?: [{a, b}] (one straight member from point a to point b each, after the lines' members, found again whenever the design changes; a and b are point references: {vertex: [x,y,z]}, {sketch, point} (a 3D sketch node as `wire:index`), {construct_point: name}, a snap point or the origin, as saved ({type, …}) too; typed coordinates are not points here; each pair is named pair1, pair2… and a pair's id is never given again; Edit Feature gives back the pairs it keeps with their `id` and `next_pair`, and an `id` without `next_pair` is refused); give `sketch`, `pairs` or both; continuous?: bool (default false; one member along explicitly selected lines and circular arcs in connected tangent path order, curves reversed as needed, stable member id `$path`; corner None only, without overrides, Fit Ends, Coped, Flip, gap or point pairs); profile: {kind: bar|round_bar|rect_tube|round_tube|angle|channel|i_beam, …its dimensions: each a number in the design's units or a length expression over its parameters ("tube_wall", "2 in"); a channel's flange_slope is an angle (a number of degrees)} (frame.profile.list gives each kind's dimensions and an example; dimensions left out take defaults from the profile's size) | {size: a standard steel size by name, such as "RSC 203x89", "PFC 200x90x30", "RSA 50x50x5", "SHS 100x100x5", "RHS 200x100x6.3" or "CHS 42.4x3.2" (frame.profile.list lists them), alone: it brings its dimensions} | profile_sketch: a sketch whose profile is the section, in its own x and y around its origin, with profiles?: picks as solid.extrude takes them (default: its material, nested loops alternating, so two circles make a tube); anchor?: origin|center|centroid|top_left|top|top_right|left|right|bottom_left|bottom|bottom_right (the profile point that sits on each line, default origin); locate?: [x,y] (the profile point that sits on each line, in mm from the profile's own origin: a bar's or an angle's bottom-left corner, a channel's web back at mid-height, the centre of other profiles; takes precedence over `anchor` and keeps the member attached at that point when the profile size changes); corner?: auto|none|mitre|butt (how members ending at one point are cut; default none); flip?: bool (a butt's other member runs through); fit_ends?: bool (fit free ends to earlier Frame Members' tubes; default false); coped?: bool (cut every butt joint to the other tube's real shape, radii kept: butts, ends on a tube's middle, crossings, overlaps and fitted ends, mitres left as they are; not under none; default false; an older `coped_butt`, the frame's or an override's, reads as butt with coped); corners?: [{members: [2 to 1000 line or pair ids, or {line}], kind: auto|none|mitre|butt, gap?: length expr}] (that corner's, crossing's or overlap's own type, and its own weld gap; the members in order: the first runs through a butt, or stays whole at a crossing or overlap, and of three or more the first two make the corner; an older script's `corner` reads as `kind`, and its `flip` is saved as the order today's rules give with the first two swapped; an overlap takes no gap); gap?: length expr (the weld gap at every welded end, 0…1000 mm, default 0: each mitre plane half of it back, a butting or fitted end, a crossing's pieces' included, that far off the member it meets; through members keep their length, overlaps are notched without it); angle?: angle expr (the profile turned about the line; default 0: its y as near world up as the line allows, a vertical member's x along world X); up?: X|-X|Y|-Y|Z|-Z (the world axis that is up for the profile, default Z; a part drawn with Y up takes Y, so its members need no angle and lines along Y are its vertical members, their x along world X, or world Y when X is up); mirror?: bool (the profile mirrored across its y axis); name?; body_name? (what the members are named after, then numbered: `Rail`, `Rail (2)`…; default the size's name, `RSC 203x89`, the profile's description, `Rect Tube 40x40x3`, or the profile sketch's name); names?: {line or pair id: name} (names to keep, as Edit Feature keeps them). One body per line or pair, from its start to its end; each member keeps its name when other lines or pairs are added or deleted. Returns the feature and the bodies it made

Mounting Plate

Command group: WELDMENTS › CREATE

Mounting plates and bolted end plates

frame.plate creates a separate plate body on a planar support face. Use it for a base plate beneath a post or a bolted end plate on a structural member. It does not join the plate to the member or drill the member.

In Weldments > Create > Mounting Plate, select the flat end face, including the thin ring around a hollow tube’s opening. Choose a rectangular or round outline, set its dimensions and thickness, then choose no holes, four holes on a rectangular pitch, or holes on a bolt circle. The dialog previews the result. Edit Feature restores the face and the plate’s values.

The plate is centred on the current supporting face’s area centroid, rather than at the clicked point. Its thickness extends outwards along that face’s normal, so a plate on the underside of a post extends downwards. Offset moves it along that normal; a negative value moves it into the support. X Offset and Y Offset move it in the face’s canonical axes before Angle rotates the plate. Bolt patterns turn with the plate; a bolt circle also has its own pattern angle.

For example, on the top of a 40 mm square tube centred at X = 200, Y = 0, ending at Z = 300:

{
  "command": "frame.plate",
  "params": {
    "face": [219, 0, 300],
    "width": "100 mm",
    "height": "80 mm",
    "thickness": "8 mm",
    "holes": {
      "pattern": "rectangle",
      "diameter": "10 mm",
      "pitch_x": "70 mm",
      "pitch_y": "50 mm"
    },
    "body_name": "End plate"
  }
}

For an exact pick, also supply body and index, and path when selecting a particular occurrence. The face index is only used to capture the initial face; the feature saves its persistent identity. Lengths accept design parameters and unit expressions. Bare length numbers use the design’s length unit; bare angles are degrees. World face coordinates are always millimetres.

A round plate uses shape: "round" and diameter, omitting width and height. A bolt circle uses holes: {"pattern": "circle", "diameter": "10 mm", "pitch_diameter": "90 mm", "count": 6, "angle": "15 deg"}. Circle counts must be whole numbers from 2 to 128. All holes must remain separate and strictly inside the plate perimeter; touching holes and edge breakouts are refused.

The plate follows supported changes to its face and its placement. A lost or ambiguous face produces an error; the plate never silently attaches to a nearby body. This first tool creates constant-thickness flat plates. Standard flange size tables, arbitrary sketch outlines, welds and strength calculations are not part of it.

ParameterTypeRequiredDescription
face[x,y,z] on a planar support faceYesworld mm
bodyexact face pickNo
indexexact face pickNo
pathexact face pickNo
shaperectangle| roundNodefault
widthYes
heightrectangle length expressionsYes
diameterround length expressionYes
thicknesspositive length expressionYes
Automation details

Command ID: frame.plate

Parameters:

face: [x,y,z] on a planar support face (world mm); body?, index?, path?: exact face pick; shape?: rectangle (default) | round; width,height: rectangle length expressions | diameter: round length expression; thickness: positive length expression; offset?, x_offset?, y_offset?: signed length expressions, default 0; angle?: angle expression, default 0; holes?: {pattern: none} (default) | {pattern: rectangle, diameter, pitch_x, pitch_y} (four holes) | {pattern: circle, diameter, pitch_diameter, count: 2…128, angle?}. A mounting/base plate or bolted end flange, kept as a separate body centred on the current face's area centroid, extending along its outward normal; holes must be inside its perimeter and separate. Does not drill the support. name?, body_name?, body_names?, participants? (ignored)

End Cap

Command group: WELDMENTS › CREATE

ParameterTypeRequiredDescription
thicknesslength in design units or a parameter expressionYes
ratiothe inset as a share of the thicknessNogive offset or ratio, not both; neither: the plate is flush with the outside of the profile
chamfercorner chamfer length along each edge from the cornerNodefault 0; a rounded corner needs at least its rounding
Automation details

Command ID: frame.end_cap

Parameters:

faces: [{face:[x,y,z],body,index,path?}] planar end faces of frame members, picked in world mm (1–256); thickness: length in design units or a parameter expression; offset?: inset of the plate from the outside of the profile, a length; ratio?: the inset as a share of the thickness (give offset or ratio, not both; neither: the plate is flush with the outside of the profile); chamfer?: corner chamfer length along each edge from the corner (default 0; a rounded corner needs at least its rounding); direction?: outward|inward (default outward: past the end; inward: the member is cut back by the thickness and the cap takes its place). One separate body per face, named `<member> End Cap`; the plate is the profile's outer outline on a closed section (tube, pipe, bar), its outside on an open one (angle, channel, beam, slotted extrusion): the edges on the rectangle round the profile with their rounds and chamfers, inward stretches closed along the rectangle. Common name/body_names fields supported.

Gusset

Command group: WELDMENTS › CREATE

ParameterTypeRequiredDescription
supportsexactly two {face:[x,y,z],body,index,path?} planar face picks in world mmYes
leg1lengths in design units or parameter expressionsYes
leg2lengths in design units or parameter expressionsYes
thicknesslengths in design units or parameter expressionsYes
reliefinside-corner setback along each legNodefault 0
clipequal-distance clipping at both outer tipsNodefault 0: triangle
offsetsigned distance along the joint from the centre of the faces' overlapping spanNodefault 0
Automation details

Command ID: frame.gusset

Parameters:

supports: exactly two {face:[x,y,z],body,index,path?} planar face picks in world mm; leg1, leg2, thickness: lengths in design units or parameter expressions; relief?: inside-corner setback along each leg (default 0); clip?: equal-distance clipping at both outer tips (default 0: triangle); offset?: signed distance along the joint from the centre of the faces' overlapping span (default 0); placement?: center|positive|negative (default center). Ordered outward support normals define the positive joint/thickness direction by their cross product. Contact strips must fit entirely on both finite faces. Creates a separate body, named `Gusset`, `Gusset (2)`… unless body_name is given; does not join, drill or add a weld. Common name/body_name fields supported.

Weld

Command group: WELDMENTS › CREATE

ParameterTypeRequiredDescription
weld_typefillet|butt|edge|plug|spot|seam|stud|surfacing|tackYes
sizetype-specific {a,z,z1,z2,h,s,d,w,t,l,e: length expr; n: positive integer}No
picksgrouped exact referencesNo
sidearrow|otherNo
processISO 4063 textNo135, 131-D, 522+15
positionPA..PKNo
qualitye.gNo
wpstextNo
tail_texttextNo
fillertextNo
ndt{methods: {VT|PT|MT|UT|RT: extent %}, note?}No
densityoptional expressionsNo
overlapoptional expressionsNo
spans{count,length_mm,pitch_mm}No
symbol_standardiso2553_2019_a|iso2553_2019_b|aws_a2_4_2020No
groovenamesNo
penetrationnamesNo
rootnamesNo
tack_modenamesNo
root_gaplengthNo
add_filletboolNo
endsnamesNo
spot_looknamesNo
reference_planenamesNo
symbolsettings symbolNo
Automation details

Command ID: weld.create

Parameters:

weld_type: fillet|butt|edge|plug|spot|seam|stud|surfacing|tack; size?: type-specific {a,z,z1,z2,h,s,d,w,t,l,e: length expr; n: positive integer}; picks?: grouped exact references; side?: arrow|other; process?: ISO 4063 text (135, 131-D, 522+15); position?: PA..PK; quality?: e.g. ISO 5817-C; wps?, tail_text?, filler?: text; ndt?: {methods: {VT|PT|MT|UT|RT: extent %}, note?}; density?, overlap?: optional expressions; spans?: {count,length_mm,pitch_mm}; symbol_standard?: iso2553_2019_a|iso2553_2019_b|aws_a2_4_2020; groove?, penetration?, root?, tack_mode?: names; root_gap?: length; add_fillet?: bool; ends?, spot_look?, reference_plane?: names; symbol?: settings symbol → id, number

WELDMENTS › MODIFY

Trim/Extend

Command group: WELDMENTS › MODIFY

ParameterTypeRequiredDescription
members[member…]Yesthe members to trim or extend: each a member's body name, or {feature: the frame member feature (name or id), line: its line's id}
to[target…]Yesor one target: what each member's end is trimmed or extended to: a member (its body name, or {member, side?: right|left|top|bottom of its profile; default the side the trimmed member meets}): a butt joint against that side, worked out from its line and profile so it follows edits; or {plane: XY|XZ|YZ|a construction plane|{origin, normal}|{face: [x,y,z]} a planar face}, or {plane_ref} a plane as the design saves it, as Edit Feature keeps it; or {point: a point reference as `construct` reads it: {vertex: [x,y,z]}, {sketch, point}, {construct_point: name}, the origin…}: the end cut square to the member through the point; or {line: a line reference: {edge: [x,y,z]}, {sketch, curve} a sketch line, {axis: name}…}: the end cut in the plane through the line nearest square to the member, a line along the member refused; or {surface: a face reference, {face: [x,y,z]}}: the end run on past the face and cut by its surface (extended), flat or curved; or {body: a body's name, not a member's}: the end run on past the body and coped to it (a solid cut out of the member, a surface body cutting it); a surface or body must cut across the member's whole section, the piece holding the member's middle is kept, takes no gap, and a member coped so reads as changed after; points and lines as saved ({type, …}) too, as Edit Feature keeps them
endauto|start|endNowhich end of each member moves; default auto: for each target the end nearer it
gaplength exprNothe weld gap between each end and its target, default 0, at most 1 m
Automation details

Command ID: frame.trim

Parameters:

members: [member…] (the members to trim or extend: each a member's body name, or {feature: the frame member feature (name or id), line: its line's id}); to: [target…] (or one target: what each member's end is trimmed or extended to: a member (its body name, or {member, side?: right|left|top|bottom of its profile; default the side the trimmed member meets}): a butt joint against that side, worked out from its line and profile so it follows edits; or {plane: XY|XZ|YZ|a construction plane|{origin, normal}|{face: [x,y,z]} a planar face}, or {plane_ref} a plane as the design saves it, as Edit Feature keeps it; or {point: a point reference as `construct` reads it: {vertex: [x,y,z]}, {sketch, point}, {construct_point: name}, the origin…}: the end cut square to the member through the point; or {line: a line reference: {edge: [x,y,z]}, {sketch, curve} a sketch line, {axis: name}…}: the end cut in the plane through the line nearest square to the member, a line along the member refused; or {surface: a face reference, {face: [x,y,z]}}: the end run on past the face and cut by its surface (extended), flat or curved; or {body: a body's name, not a member's}: the end run on past the body and coped to it (a solid cut out of the member, a surface body cutting it); a surface or body must cut across the member's whole section, the piece holding the member's middle is kept, takes no gap, and a member coped so reads as changed after; points and lines as saved ({type, …}) too, as Edit Feature keeps them); end?: auto|start|end (which end of each member moves; default auto: for each target the end nearer it); gap?: length expr (the weld gap between each end and its target, default 0, at most 1 m). Each member's end that meets a target is rebuilt flat against it (a slanted face cuts it at a slant); a member keeps its body and name. Members changed by later features are refused as members or member targets; use a planar face target for a modified body. Every member must meet a target, and two targets may not move the same end. Returns the feature and the bodies it changed

Rotate Member

Command group: WELDMENTS › MODIFY

Automation details

Command ID: frame.rotate_member

Parameters:

face: {face:[x,y,z],body,index,path?} a face of the frame member to turn, picked in world mm; angle: the angle the member is turned to about its own line, counter-clockwise looking back from the line's end (an angle or a parameter expression; 0 = as the Frame Member laid it, turned about the profile's centre). Adds a step after the Frame Member. parallel_to?: a straight edge, a sketch line ({sketch, curve}) or an axis: the angle is worked out once so the picked flat side ends up parallel to it (the nearest turn, within a quarter turn of the member's current one), and only that angle is stored, not the line; it wins over `angle` when both are given. Common name field supported.

PLASTIC › CREATE

Boss

Command group: PLASTIC › CREATE

Read the plastic parts guide.

ParameterTypeRequiredDescription
position[x,y,z] on a faceYes
directionNodefault: out of the face
diameterYes
heightYes
hole_diameterNo
hole_depthNodefault: to the face
draftNoangle
filletNoroot radius
ribsNocount
rib_thicknessNo
rib_lengthNoout from the wall
rib_offsetNobelow the top
bodyNo
Automation details

Command ID: plastic.boss

Parameters:

position: [x,y,z] on a face; direction? (default: out of the face); diameter, height; hole_diameter?, hole_depth? (default: to the face); draft? (angle), fillet? (root radius); ribs? (count), rib_thickness?, rib_length? (out from the wall), rib_offset? (below the top); body?

Lip

Command group: PLASTIC › CREATE

Read the plastic parts guide.

ParameterTypeRequiredDescription
face[x,y,z] on the rim face of a shelled bodyYes
widthYes
heightYes
typelip|grooveNo
gapNogroove clearance
sideinside|outsideNowhich rim edge
bodyNo
Automation details

Command ID: plastic.lip

Parameters:

face: [x,y,z] on the rim face of a shelled body; width, height; type?: lip|groove; gap? (groove clearance); side?: inside|outside (which rim edge); body?

Snap Fit

Command group: PLASTIC › CREATE

Read the plastic parts guide.

ParameterTypeRequiredDescription
position[x,y,z] on a faceYes
directionNodefault: out of the face
hook[x,y,z]Yesthe catch's direction
lengthYes
thicknessYes
widthYes
catch_depthYes
catch_lengthYes
base_heightNoextends the base below the face
new_bodyboolNomake a separate body instead of joining
bodyNo
Automation details

Command ID: plastic.snap_fit

Parameters:

position: [x,y,z] on a face; direction? (default: out of the face); hook: [x,y,z] (the catch's direction); length, thickness, width, catch_depth, catch_length; base_height? (extends the base below the face); new_body?: bool (make a separate body instead of joining); body?

Rest

Command group: PLASTIC › CREATE

Read the plastic parts guide.

ParameterTypeRequiredDescription
position[x,y,z] on a faceYesthe rest's centre
directionNodefault: out of the face
widthYesround: the diameter
lengthNoa rectangle, along `along`
along[x,y,z]No
heightYes
draftNoangle; default: the body's plastic rule
thicknessNowall of a hollow rest
bodyNo
Automation details

Command ID: plastic.rest

Parameters:

position: [x,y,z] on a face (the rest's centre); direction? (default: out of the face); width (round: the diameter); length? (a rectangle, along `along`); along?: [x,y,z]; height; draft? (angle; default: the body's plastic rule); thickness? (wall of a hollow rest); body?

PLASTIC › SETUP

Manage Plastic Rules

Command group: PLASTIC › SETUP

Read the plastic parts guide.

ParameterTypeRequiredDescription
nameYeslibrary or new rule; a new one starts from `from`, default ABS (1.5mm)
fromNo
materialNo
thicknessNo
nominal_radiusNo
clearanceNo
knife_edgeNo
reveal_heightNo
thickness_variationNo
draftNo
max_thicknessNo
min_thicknessNo
min_draftNoexpressions; `Thickness` is the rule's
activeboolNorule for bodies without one
deleteboolNoa design rule; a library rule goes back to the library values
Automation details

Command ID: plastic.manage_rules

Parameters:

name (library or new rule; a new one starts from `from`, default ABS (1.5mm)); from?; material?; thickness?, nominal_radius?, clearance?, knife_edge?, reveal_height?, thickness_variation?, draft?, max_thickness?, min_thickness?, min_draft? (expressions; `Thickness` is the rule's); active?: bool (rule for bodies without one); delete?: bool (a design rule; a library rule goes back to the library values)

Assign Plastic Rule

Command group: PLASTIC › SETUP

Read the plastic parts guide.

ParameterTypeRequiredDescription
bodies[names]Yes
rulenameYesempty: no rule
Automation details

Command ID: plastic.assign_rule

Parameters:

bodies: [names]; rule: name (empty: no rule) — plastic features on these bodies take its draft and clearance as defaults

Other commands: sketch

Edit Sketch

ParameterTypeRequiredDescription
sketchid or nameYes
viewopen Model view idNo
restore_markernonnegative timeline positionNo
nullYesend
Automation details

Command ID: sketch.edit

Parameters:

sketch: id or name; view?: open Model view id; restore_marker?: nonnegative timeline position, null (end) or false. A position or null: temporarily roll to this sketch and restore that position on Finish or Cancel; Finish groups the edit into one Undo step. Omitted: the same with the current position when features come after the sketch, so they rebuild once at Finish rather than after every sketch command. false: leave the timeline in place (later features rebuild after every sketch command)

Draw Dimensioned Sketch Geometry

Automation details

Command ID: sketch.draw.dimensioned

Parameters:

command: sketch creation command, params: object, dimensions: object of role to numeric or expression value, or `name = expression` (also `#name = expression`), which defines the user parameter `name` as sketch.dimension does (the reply's `defined` lists the names) (optional with as_drawn or locate), as_drawn?: bool (also dimension every other role of the shape at its size as drawn; a radius or diameter given takes the place of the other, as an edge polygon's side length does its radius, a circle otherwise takes its diameter, and a size the sketch already determines, such as the angle of a line inferred horizontal, is left out), locate?: bool (then place the shape from the sketch origin until nothing of it is left free: horizontal and vertical distances from the origin to its points, centres first, each kept only where it removes freedom, so a shape anchored to the origin or to placed geometry gets none; a point on an axis goes onto that axis instead of a 0 distance; the reply's located lists them); creates geometry and all driving dimensions atomically in one undo step. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Delete Sketch Entities

ParameterTypeRequiredDescription
entities[curve, point or constraint ids]Yes
Automation details

Command ID: sketch.delete

Parameters:

entities: [curve, point or constraint ids]; preserve_projection_link?: bool (default false: break what remains of a partially deleted projection into normal geometry). With true, leave deleted source edges out and keep the rest linked where identifiable; otherwise break it off (listed in `broken_links` with why)

Detach Sketch Point

ParameterTypeRequiredDescription
curvecurve idYes
pointpoint refYes
offset[dx, dy]No
distancemm along real curveNo
constraintidNo
Automation details

Command ID: sketch.detach_point

Parameters:

curve: curve id, point: point ref, offset?: [dx, dy], distance?: mm along real curve, constraint?: id

ParameterTypeRequiredDescription
curvecurve idYes
kindequal | parallelYes
Automation details

Command ID: sketch.unlink_curve_group

Parameters:

curve: curve id, kind: equal | parallel

Drag Sketch Point

ParameterTypeRequiredDescription
pointrefYes
to[x,y]Yes
Automation details

Command ID: sketch.move_point

Parameters:

point: ref, to: [x,y]

Move Sketch Points

ParameterTypeRequiredDescription
moves[{point: ref | near: [x,y], to: [x,y]}]Yeseach point to its own target; `near`: the sketch point closest to it, refused when none lies within `tolerance` or two are as close
tolerancemmNodefault 0.1
sketchNo
Automation details

Command ID: sketch.move_points

Parameters:

moves: [{point: ref | near: [x,y], to: [x,y]}] (each point to its own target; `near`: the sketch point closest to it, refused when none lies within `tolerance` or two are as close), tolerance?: mm (default 0.1); sketch? → moved: [{point, to, at, reached}] (`at`: where it ended up after the one solve; `reached`: whether that is `to`); a point placed by parameter expressions is refused, naming them (unfix it with sketch.constraint.fix first)

Drag Sketch Geometry

Automation details

Command ID: sketch.drag

Parameters:

entity: point or curve, from: [x,y] where it was grabbed, to: [x,y], live?: bool: points and the material point grabbed on a line move toward `to` within the design constraints. When exact placement is impossible, bounded feasible steps minimize cursor distance. Splines slide by to - from; a circle or arc grabbed on its edge takes the radius to `to`. `with?`: [point or curve ids] moves the rest of a selection with the entity as one translation (circles keep their radii). Long moves retain the solution branch; arcs cannot sweep through their starts. Returns `reached`: progress projected onto the requested move (0..1), `at`: the grabbed position for the next frame, and `retry`: budget-limited progress can continue in another frame. `live: true` shares a work budget across held-solve decomposition and cursor correction; ordinary recovery and the final model evaluation retain their existing limits, not a wall-clock deadline. Later features stay stale until `sketch.drag_end`; `dof` stays from before the drag

End Sketch Drag

Automation details

Command ID: sketch.drag_end

Parameters:

constraint?: {command: a sketch.constraint.* id, params}: ends a drag made of `sketch.drag` `live: true` frames: adds the constraint it let go on (not kept if it over-constrains the sketch), then evaluates the whole model once; returns the constraint's result and the sketch's solved state and degrees of freedom

Move Dimension Text

ParameterTypeRequiredDescription
dimensionconstraint id or parameter nameYes
at[x,y] text centreYessketch coordinates
resettrueYesdefault place
Automation details

Command ID: sketch.dimension_text

Parameters:

dimension: constraint id or parameter name; at: [x,y] text centre (sketch coordinates) | reset: true (default place)

Sketch Palette Options

ParameterTypeRequiredDescription
sketchid|nameNodefault active
Automation details

Command ID: sketch.options

Parameters:

sketch?: id|name (default active); any of show_profile, show_points, show_dimensions, show_constraints, show_projected, show_construction, show_control_polygons, grid, snap, slice, sketch_3d: bool. Returns them all

Chain

ParameterTypeRequiredDescription
curveid: the curves joined to it end to endYeswhat a double-click selects
Automation details

Command ID: sketch.chain

Parameters:

curve: id: the curves joined to it end to end (what a double-click selects)

Solve Sketch

Automation details

Command ID: sketch.solve

Parameters:

reports the solver status and degrees of freedom

Add Spline Point

Automation details

Command ID: sketch.spline.insert_point

Parameters:

curve: fit point spline id, at: [x,y]: a fit point is inserted where the curve passes nearest to it, between its neighbours (the curve still runs through it and all its old points; constraints on them stay); end?: start|end: `at` becomes the spline's new first or last point instead, and the curve runs on to it (refused when that end is joined to other geometry). Control point splines take no new points yet. Returns point: the new point's id

Remove Spline Point

Automation details

Command ID: sketch.spline.remove_point

Parameters:

curve: spline id, point: one of its points (a point id, or the curve's start or end such as s1.end): the spline runs through (or over) its other points only, and the point goes with the constraints on it unless another curve uses it. Fit point, control point and closed splines. Refused for a closed spline's closing point, for an end joined to other geometry or held by a constraint, when fewer than 2 points would be left (3 on a closed spline), and for a projected, offset or patterned spline. Returns curve, point: the point's id, deleted: whether the point went too

Add Control Polygon

ParameterTypeRequiredDescription
curvean editable control point spline idYes
Automation details

Command ID: sketch.spline.control_polygon

Parameters:

curve: an editable control point spline id. Add finite construction segments between its own control points for sketch constraints and dimensions. Returns the segment ids in order.

Add Tangent Handles

Automation details

Command ID: sketch.spline.handles

Parameters:

curve: fit point spline id: gives it a tangent handle at each fit point (a free point joined to it by a construction line) where the curve already runs, so its shape does not change until a handle is moved; moving a fit point moves the handles nobody has turned with it. In the app a selected spline shows its handles and the first drag of one adds them. Refused for a spline that has handles already, a control point, projected, offset, patterned or equation spline. Returns curve, handles: the handle point ids in fit point order

Reset Tangent Handles

Automation details

Command ID: sketch.spline.reset_handles

Parameters:

curve: fit point spline id: removes its tangent handles (the handle points, their construction lines and the constraints on them), so the curve runs through its fit points as if the handles had never been moved; selected, it shows them again where they start. Refused for a spline without tangent handles. Returns curve, removed: the removed handle point ids in fit point order

Reverse Spline Direction

ParameterTypeRequiredDescription
curvespline idYesfit point, control point or closed
Automation details

Command ID: sketch.spline.reverse

Parameters:

curve: spline id (fit point, control point or closed): its last point becomes its first and the curve runs the other way along the same path; its points and the constraints on them stay. Refused for a projected spline and for one an offset uses or makes. Returns curve

Infinite Line

ParameterTypeRequiredDescription
curves[line ids]Yes
valueboolNodefault toggles
Automation details

Command ID: sketch.infinite

Parameters:

curves: [line ids], value?: bool (default toggles): infinite line type (#1359): construction geometry drawn across the whole view through the line's two points; off, a normal line

Edit Text

ParameterTypeRequiredDescription
livebool: one frame of an interactive changeNothe sketch is solved, the features after it stay as they were until `sketch.drag_end`
Automation details

Command ID: sketch.edit_text

Parameters:

link: the text's link id (or entity: one of its curves), text? or text_expression? (as in sketch.text; typed words replace the expression), at?, height?, angle?: deg (numbers or expressions as in sketch.text; a number replaces an expression, and so does moving the text), font?: family or file path (empty: the built-in font), bold?, italic?: bool (an installed family's bold or italic face; italic without one is slanted), align?: left|center|right (the lines against `at`, or along the path), vertical_align?: baseline|top|middle|bottom (the block of lines against `at` or the path: the first line's baseline (default), its capitals' tops, halfway between those and the last line's baseline, or the bottom of the last line's descenders), letter_spacing?: extra mm between letters, or an expression, line_spacing?: times the font's line distance (default 1), or an expression, path?: a curve id of the sketch the baseline follows ("": none; `at` and `angle` then do not place the text; the curve becomes construction, a guide the letters stand on), reverse?: bool (the other way along the path) (each kept when left out); or edits: [{link or entity, text?, at?, …}]: several texts changed together, the design rebuilt once (all or nothing; returns edits: each one's result); live?: bool: one frame of an interactive change (the sketch is solved, the features after it stay as they were until `sketch.drag_end`). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Edit Equation Curve

ParameterTypeRequiredDescription
curvean equation curve's idYes
Automation details

Command ID: sketch.equation_curve.edit

Parameters:

curve: an equation curve's id; x?, y?, explicit?, start?, end?, tolerance?, variable_unit?: as in sketch.equation_curve, each kept when left out (explicit: true drops x; false needs x). Older curves keep their radians convention. The points are chosen again for the new formulas; the curve's start point (and the end point of an open curve) keeps its id, so geometry joined there stays joined. Returns curve, points, closed, deviation

Toggle Driven Dimension

ParameterTypeRequiredDescription
constraintdimension idYes
drivenboolNodefault toggles
Automation details

Command ID: sketch.toggle_driven

Parameters:

constraint: dimension id, driven?: bool (default toggles); a driving dimension gets a parameter with its current value

Toggle Radius / Diameter

ParameterTypeRequiredDescription
diameterboolNodefault: the other one
sketchid|nameNodefault: the one being edited
Automation details

Command ID: sketch.toggle_diameter

Parameters:

constraint: a circle's or an arc's radius or diameter dimension id, or the distance from a point or line to a construction line, centreline or axis (shown as a diameter: twice the distance); diameter?: bool (default: the other one); sketch?: id|name (default: the one being edited). The circle stays the same size: its parameter is halved or doubled (a plain value is rewritten, an expression becomes `(e) / 2` or `2 * (e)`); refused when anything else uses that parameter

Constraint Glyphs

ParameterTypeRequiredDescription
sketchidNo
nameevery constraint with where to draw its glyphYessketch coordinates
Automation details

Command ID: sketch.glyphs

Parameters:

sketch?: id|name: every constraint with where to draw its glyph (sketch coordinates)

Snap Inference

ParameterTypeRequiredDescription
at[x,y]Yes
from[x,y]Noprevious click
radiusmmNosnap distance, default 1
Automation details

Command ID: sketch.snap

Parameters:

at: [x,y], from?: [x,y] (previous click), radius?: mm (snap distance, default 1): what a click there would snap to and infer

Pierce

ParameterTypeRequiredDescription
pointa point of this sketchYes
Automation details

Command ID: sketch.constraint.pierce

Parameters:

point: a point of this sketch; curve: {sketch, curve}, a curve of an earlier sketch (its id or name, and the curve's id) that crosses this sketch's plane: the point is held where it crosses (the first crossing along the curve) and follows the curve when that sketch changes

Drawing Size

ParameterTypeRequiredDescription
pathSVG or DXFYesby `format`: "svg" | "dxf", default by the file name, else SVG
textSVG or DXFYesby `format`: "svg" | "dxf", default by the file name, else SVG
fitboolNoalso work out the smallest Simplify distance, mm on the drawing to 0.01, at which `sketch.insert_svg`/`_dxf` would add it to a sketch without running out of points or curves — `auto_simplify`: 0 when it fits as drawn, left out when no distance up to the cap does; the window's Auto figures
Automation details

Command ID: sketch.drawing_bounds

Parameters:

path | text: SVG or DXF (by `format`: "svg" | "dxf", default by the file name, else SVG); dpi?: SVG only, the dots per inch its pixels are read at, 1 to 10000 (default 96); fit?: bool (also work out the smallest Simplify distance, mm on the drawing to 0.01, at which `sketch.insert_svg`/`_dxf` would add it to a sketch without running out of points or curves — `auto_simplify`: 0 when it fits as drawn, left out when no distance up to the cap does; the window's Auto figures); returns min, max, width and height of the drawn geometry in the file's own size, how many drawn elements it has (`edges`, about what the insert adds curves for), and for an SVG with a viewBox (or width and height) its sheet: {min, max, width, height}

Save As DXF

ParameterTypeRequiredDescription
sketchid|nameNodefault active
pathfile to writeNoelse the DXF text is returned
units"design" | "in" | "inch" | "mm" | "cm" | "m" | "ft"Nodefault mm
layerprofile layer nameNodefault "0"
layers"single" | "roles"Nodefault "single": all on `layer`; "roles": outer on "OUTLINE", holes on "CUT"
joinboolNodefault false: R12 LINE/ARC; true: closed loops as LWPOLYLINE with arc bulges
Automation details

Command ID: sketch.export_dxf

Parameters:

sketch?: id|name (default active); path?: file to write (else the DXF text is returned); units?: "design" | "in" | "inch" | "mm" | "cm" | "m" | "ft" (default mm); layer?: profile layer name (default "0"); layers?: "single" | "roles" (default "single": all on `layer`; "roles": outer on "OUTLINE", holes on "CUT"); join?: bool (default false: R12 LINE/ARC; true: closed loops as LWPOLYLINE with arc bulges)

Save As SVG

ParameterTypeRequiredDescription
sketchid|nameNodefault active
pathfile to writeNoelse the SVG text is returned
Automation details

Command ID: sketch.export_svg

Parameters:

sketch?: id|name (default active); path?: file to write (else the SVG text is returned); units?: "mm" | "cm" | "in" | "inch" (default mm). The file's width and height carry the unit and its viewBox is the same size without one, so it opens 1:1; the Y axis points down as SVG has it, so the picture is the sketch as seen. Each closed profile is one closed path with its holes as sub-paths; circles, arcs and lines stay themselves and other curves are line segments; construction curves are left out

Loose Ends

ParameterTypeRequiredDescription
sketchid|nameNodefault active
untied[{point, curve, at, touches: {point}|{curve}}] ends that touch another curve only by positionYesthe profile closes now, but nothing keeps it closed when a dimension changes
Automation details

Command ID: sketch.loose_ends

Parameters:

sketch?: id|name (default active): the ends of profile curves (not construction, projected or text) that can make a profile fail. open: [{point, curve, at}] ends that touch no other profile curve (no profile runs through them); untied: [{point, curve, at, touches: {point}|{curve}}] ends that touch another curve only by position (the profile closes now, but nothing keeps it closed when a dimension changes)

Tie Loose Ends

ParameterTypeRequiredDescription
sketchid|nameNodefault active
Automation details

Command ID: sketch.loose_ends.tie

Parameters:

sketch?: id|name (default active); points?: [point ids] (default: every untied end): ties each untied end to what it touches, coincident with another curve's end or on another curve. Returns constraints: [ids added], and the untied ends left

3D Sketch

ParameterTypeRequiredDescription
nameNo
Automation details

Command ID: sketch.create3d

Parameters:

name?; view?: open Model view id (defaults to focused or most recent Model). Starts a 3D sketch with no plane to choose: a new sketch with 3D Sketch on, opened for editing, so sketch.line3d, sketch.spline3d, sketch.arc3d and sketch.point3d draw in it at once. It rests on the active component's XY origin plane and its curves may leave that plane. One undo step

3D Line

Automation details

Command ID: sketch.line3d

Parameters:

points: [[x,y,z]…] world points (2 or more; a coordinate may be an expression over the design's parameters, the point then held where it comes to and following them, in a sketch whose component is not moved): one 3D line per segment, joined end to end with a Coincident at each joint and to the drawn 3D ends it starts or ends on (needs 3D Sketch on); constraints lists the joints and placed points. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3D Spline

ParameterTypeRequiredDescription
points[[x,y,z]…] world fit pointsYes2 or more, coordinates numbers or expressions as for sketch.line3d
Automation details

Command ID: sketch.spline3d

Parameters:

points: [[x,y,z]…] world fit points (2 or more, coordinates numbers or expressions as for sketch.line3d): a smooth 3D curve through them (needs 3D Sketch on). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3D Control Point Spline

Automation details

Command ID: sketch.spline3d.control_point

Parameters:

points: [[x,y,z]…] world control points (3 or more, coordinates numbers or expressions as for sketch.line3d): a smooth cubic 3D curve that starts on the first control point, ends on the last and is pulled towards the ones between without passing through them (needs 3D Sketch on). Stored exactly (the B-spline over its control points), so a path follows the curve itself; sketch.move3d moves a control point. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3D Arc

Automation details

Command ID: sketch.arc3d

Parameters:

start, through, end: [x,y,z] world points (coordinates numbers or expressions as for sketch.line3d): an exact circular arc through them, from start through through to end (needs 3D Sketch on). Stored exactly (centre, radius, angles), so path consumers can treat it as a true arc. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3D Blend Curve

Automation details

Command ID: sketch.blend_curve3d

Parameters:

a, b: an end of each of two 3D curves of the sketch, as the curve's id and `.start` or `.end` (`w1.end`, `w2.start`): curves drawn in it (3D Line, 3D Arc, 3D Spline, 3D Control Point Spline) or model edges included with sketch.include_3d. Joins the two ends with one curve tangent (G1) to both where it meets them: it runs on from `a` and into `b`, each inner control point a third of the distance between the ends along that end's tangent. Kept as a 3D control point spline of four control points, joined to the ends with a Coincident each; it does not follow a later change of the curves' directions (needs 3D Sketch on). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

3D Point

Automation details

Command ID: sketch.point3d

Parameters:

point: [x,y,z] world point, coordinates numbers or expressions as for sketch.line3d (needs 3D Sketch on). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Move 3D Point

ParameterTypeRequiredDescription
to[x,y,z]Yes
by[dx,dy,dz]Yesworld
Automation details

Command ID: sketch.move3d

Parameters:

wire: drawn 3D curve or point id, index?: fit point, or control point of a control point spline (default 0) | point: a point on the sketch plane (`l1.end`, `p3`: a line's end, a fit point of a spline, a lone point; needs 3D Sketch on); to: [x,y,z] | by: [dx,dy,dz] (world); points joined to it move too, and the sketch's 3D constraints are solved with the moved point held where it was put (refused when they cannot hold it there, or when it is fixed). A `point` on the plane first turns the lines and fit-point splines through it (or the lone point) into drawn 3D curves through the same places, which `curves` lists (`wire` and `index` say where the point is now); their constraints and dimensions go. Arcs, circles, ellipses, conics and control-point or closed splines through it are refused

Along Axis

ParameterTypeRequiredDescription
linea drawn 3D line's idYes
lines[ids]Yes
axisx|y|zYesthe axes of the sketch's 3D space: its component's, for a sketch in a component
sketchid|nameNo
Automation details

Command ID: sketch.constraint.along_axis

Parameters:

line: a drawn 3D line's id | lines: [ids]; axis: x|y|z (the axes of the sketch's 3D space: its component's, for a sketch in a component); sketch?: id|name. Holds each line parallel to the axis; refused when that conflicts with the sketch's other 3D constraints. Returns one constraint id per line

On Plane

ParameterTypeRequiredDescription
pointa 3D point refYes`w1.start`, `.end`, `.through`, `.<n>`, or a 3D point's id
points[refs]Yes
sketchid|nameNo
Automation details

Command ID: sketch.constraint.on_plane

Parameters:

point: a 3D point ref (`w1.start`, `.end`, `.through`, `.<n>`, or a 3D point's id) | points: [refs]; plane: xy|yz|xz (the origin planes of the sketch's 3D space), a construction plane's name, or {face: [x,y,z], body?} (the planar model face through that point, kept by its face name); sketch?: id|name. Holds each point on the plane; refused when that conflicts with the sketch's other 3D constraints. Returns one constraint id per point

3D Brush

Default keyboard shortcut: W

ParameterTypeRequiredDescription
points[[x,y,z]…] world fit points in mmYes
diameterbrush diameter in mmNodefault 1
colorsRGB bytes [r,g,b]No
sketchid or nameNodefault: active
Automation details

Command ID: sketch.brush_3d

Parameters:

points: [[x,y,z]…] world fit points in mm; diameter?: brush diameter in mm (default 1); color?: sRGB bytes [r,g,b]; sketch?: id or name (default: active). Adds one freehand stroke and enables 3D Sketch.

Paste Strokes

ParameterTypeRequiredDescription
strokes[{points: world fit points in mm, diameter: width in mm, color?: sRGB bytes}]Yes
sketchtargetNodefault: active sketch, or a new sketch
Automation details

Command ID: sketch.paste_ink

Parameters:

strokes: [{points: world fit points in mm, diameter: width in mm, color?: sRGB bytes}]; sketch?: target (default: active sketch, or a new sketch). Pastes and selects the strokes in one undo step.

Erase Stroke

Default keyboard shortcut: Shift+W

ParameterTypeRequiredDescription
strokes[{sketch: id or name, wire: stroke id}]Yes
Automation details

Command ID: sketch.erase_ink

Parameters:

strokes: [{sketch: id or name, wire: stroke id}]. Erases the strokes in one undo step.

Edit Stroke

ParameterTypeRequiredDescription
strokes[{sketch: id or name, wire: stroke id}]Yes
diameterwidth in mmNo
colorsRGB bytes [r,g,b]No
Automation details

Command ID: sketch.edit_ink

Parameters:

strokes: [{sketch: id or name, wire: stroke id}], diameter?: width in mm, color?: sRGB bytes [r,g,b]. Give at least one style change.

Move Brush Stroke

ParameterTypeRequiredDescription
strokes[{sketch: id or name, wire: stroke id}]Yes
Automation details

Command ID: sketch.move_ink

Parameters:

strokes: [{sketch: id or name, wire: stroke id}]; one of by: [dx,dy,dz] or matrix: rigid world transform. One undo step.

Scale Strokes

ParameterTypeRequiredDescription
strokes[{sketch: id or name, wire: stroke id}]Yes
factor0.01 to 100Yes
Automation details

Command ID: sketch.scale_ink

Parameters:

strokes: [{sketch: id or name, wire: stroke id}], factor: 0.01 to 100. Uniformly scales strokes and their thickness around the selection center in one undo step.

Break Offset Association

ParameterTypeRequiredDescription
curvederived offset curve idYesretains geometry and makes its points editable
Automation details

Command ID: sketch.offset.break

Parameters:

curve: derived offset curve id (retains geometry and makes its points editable)

Trim Along Path

Automation details

Command ID: sketch.trim.path

Parameters:

points: [[x,y]…] (2…2000 positions: a path drawn across the sketch). Every piece the path crosses is removed as `sketch.trim` removes the piece at that crossing, in the order the path crosses them; a piece crossed again after it is gone is not trimmed twice; offset copies are trimmed as `sketch.trim` trims them, keeping their distance; projected geometry, infinite lines, offset copies trim can't release and pieces trim refuses are passed over (why in `skipped`). dry_run?: bool (report without changing the design). One undo step → trimmed: [each trim's result], removed: [[[x,y]…]] (each removed piece as a polyline). Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

ParameterTypeRequiredDescription
linklink idNoj1
entities[curve or point ids]: linked geometry becomes normal sketch geometryNo
Automation details

Command ID: sketch.break_link

Parameters:

link?: link id (j1) | entities?: [curve or point ids]: linked geometry becomes normal sketch geometry

Auto-Project Edges on Reference

ParameterTypeRequiredDescription
valueboolNodefault toggles
Automation details

Command ID: sketch.auto_project

Parameters:

value?: bool (default toggles): project a face's edges when a sketch is created on it

Sketch References

ParameterTypeRequiredDescription
staleYesshown where the source is now, but stored where it was: editing the sketch or Update References stores it
pendingYesa placement it reads has an uncaptured move, which it follows once captured
frozenYes
lostYeswith the reason; it keeps its last geometry
lostYes
missing_edgesYesthe source edges, by persistent name, its curves were projected from that are gone
stale_curvesYesits curves whose edge is gone or whose geometry differs from the source now: Update References with reproject brings them up to date
Automation details

Command ID: sketch.references

Parameters:

sketch?: id|name (default: the active sketch, else every sketch with links). Each link: its source, the occurrence placement it reads (path and name) and the placement of the sketch's component it was made in, its curves and points, hidden, frozen and status: current; stale (shown where the source is now, but stored where it was: editing the sketch or Update References stores it); pending (a placement it reads has an uncaptured move, which it follows once captured); frozen; lost (with the reason; it keeps its last geometry). Also: stale (what it stores differs from what its source gives now, a frozen projection too); lost; missing_edges (the source edges, by persistent name, its curves were projected from that are gone); stale_curves (its curves whose edge is gone or whose geometry differs from the source now: Update References with reproject brings them up to date)

Update References

ParameterTypeRequiredDescription
sketchid|nameNodefault: every sketch with links
captureboolNofirst capture the uncaptured moves of the placements the links read
filesboolNofirst update linked designs, one component at a time: a component whose file cannot be read keeps its bodies and is reported unavailable
Automation details

Command ID: sketch.update_references

Parameters:

sketch?: id|name (default: every sketch with links); capture?: bool (first capture the uncaptured moves of the placements the links read); files?: bool (first update linked designs, one component at a time: a component whose file cannot be read keeps its bodies and is reported unavailable); reproject?: bool (also read the frozen projections once, where their sources are now: a stale or partly orphaned one gets its missing and moved edges back, its healthy curves keep their ids and the constraints on them; they report changed, unchanged or lost (the source is gone: ok is false) and stay frozen). Reads each link where its source is now, solves and stores the sketch, rebuilds what follows. Reports each link changed, unchanged, frozen or lost, and the features that failed (ok: false)

ParameterTypeRequiredDescription
linkidNo
links[ids]No
entities[curve or point ids]No
sketchid|nameNodefault: the active sketch
Automation details

Command ID: sketch.freeze_link

Parameters:

link?: id | links?: [ids] | entities?: [curve or point ids]; sketch?: id|name (default: the active sketch). The links keep the geometry they show and stop following their sources until resumed

ParameterTypeRequiredDescription
linkidNo
links[ids]No
entities[curve or point ids]No
Automation details

Command ID: sketch.resume_link

Parameters:

link?: id | links?: [ids] | entities?: [curve or point ids]; sketch?: id|name (default: the active sketch). Frozen links follow their sources again, from now

ParameterTypeRequiredDescription
linkidYes
refa reference as sketch.project takes itYeswith path?: [occurrence ids]
Automation details

Command ID: sketch.repair_link

Parameters:

link: id; ref: a reference as sketch.project takes it (with path?: [occurrence ids]). The link reads the new source; its curves and points keep their ids, and the constraints on them, where the new geometry has the same shape

Remove Projection

ParameterTypeRequiredDescription
linkidNo
links[ids]No
entities[curve or point ids]No
Automation details

Command ID: sketch.remove_link

Parameters:

link?: id | links?: [ids] | entities?: [curve or point ids]; sketch?: id|name (default: the active sketch). Removes whole links: their curves, points and 3D curves, and the constraints and dimensions on them (Break Link keeps the geometry instead)

Show/Hide Projection

ParameterTypeRequiredDescription
linkidNo
links[ids]No
entities[curve or point ids]No
sketchid|nameNodefault: the active sketch
visibleboolNodefault toggles
Automation details

Command ID: sketch.link_visibility

Parameters:

link?: id | links?: [ids] | entities?: [curve or point ids]; sketch?: id|name (default: the active sketch); visible?: bool (default toggles). Hidden links are not drawn or picked; they still bound profiles, keep their constraints and follow their sources

Redefine Sketch Plane

ParameterTypeRequiredDescription
sketchid or nameYes
planeas sketch.createYes
flipbool | "x" | "y" as sketch.createNonot on a face; default: when the new plane faces the other way, it is turned so the sketch keeps facing the way it did and stays upright, and the reply's `flip` says about which axis; false keeps the new plane's own side
frameas sketch.createNo
author_pathexact owner occurrence idsNo
Automation details

Command ID: sketch.redefine

Parameters:

sketch: id or name; plane: as sketch.create; flip?: bool | "x" | "y" as sketch.create (not on a face; default: when the new plane faces the other way, it is turned so the sketch keeps facing the way it did and stays upright, and the reply's `flip` says about which axis; false keeps the new plane's own side); frame?: as sketch.create; author_path?: exact owner occurrence ids; explicitly rebinds or freezes the plane while preserving geometry and dimension names; a construction plane later in the timeline that the sketch can't use where it is moves the sketch to just after that plane in the same step (note says so), refused with why when the plane uses the sketch or the move breaks a feature

Copy Sketch Entities

ParameterTypeRequiredDescription
entities[curve or point ids]Nodefault: the selected sketch geometry
Automation details

Command ID: sketch.copy

Parameters:

entities?: [curve or point ids] (default: the selected sketch geometry); the constraints and dimensions among them (and `Equal` constraints to other curves in the same sketch) come along

Cut Sketch Entities

Automation details

Command ID: sketch.cut

Parameters:

entities?: [curve or point ids] (default: the selected sketch geometry): copies them as sketch.copy does, then deletes them (one undo step)

Paste Sketch Entities

ParameterTypeRequiredDescription
at[x, y]Nosketch point the copy's centre goes to
translate[x, y]No
sketchtargetNodefault: the active sketch
Automation details

Command ID: sketch.paste

Parameters:

at?: [x, y] (sketch point the copy's centre goes to) | translate?: [x, y]; without either, offset from the original in its own sketch and at the same coordinates in another; sketch?: target (default: the active sketch)

Replace Sketch

ParameterTypeRequiredDescription
sketchthe sketch to replaceNodefault: the active sketch
fromthe sketch whose contents take its placeYesid or name
filea design file from is inNodefault: this design
Automation details

Command ID: sketch.replace

Parameters:

sketch?: the sketch to replace (default: the active sketch); from: the sketch whose contents take its place (id or name); file?: a design file `from` is in (default: this design); keep_ids?: true gives the new curves and points `from`'s ids (default false: new ids, so a feature that names an old curve or point, such as an extrude side face `<Extrude>:side:l6`, must be reselected). The sketch keeps its plane, place in the timeline and the features built on it; its curves, points, constraints, dimensions and texts become a copy of `from`'s, at the same sketch coordinates (one undo step). `ids` maps each of `from`'s curve and point ids to the id it has now

Other commands: canvas

Frame Sketch

ParameterTypeRequiredDescription
canvasid or nameYes
Automation details

Command ID: canvas.frame_sketch

Parameters:

canvas: id or name; name?: the new sketch's name. Draws a construction rectangle exactly around the image, in the sketch being edited (the image must lie on its plane) or else in a new sketch on the canvas's plane, and anchors the image's corners to it: dimension and constrain that rectangle to place and size the image → sketch, bottom_left, bottom_right, top_left (point ids)

Calibrate Canvas

ParameterTypeRequiredDescription
canvasid or nameYes
atwo points on the canvas plane [x,y]Yes
btwo points on the canvas plane [x,y]Yes
distancetheir true distanceYesmm
Automation details

Command ID: canvas.calibrate

Parameters:

canvas: id or name; a, b: two points on the canvas plane [x,y]; distance: their true distance (mm): scales the image about a

Straighten Canvas

ParameterTypeRequiredDescription
canvasid or nameYes
atwo points on the canvas plane [x,y] along a line of the imageYes
btwo points on the canvas plane [x,y] along a line of the imageYes
Automation details

Command ID: canvas.straighten

Parameters:

canvas: id or name; a, b: two points on the canvas plane [x,y] along a line of the image; angle?: deg, the direction that line should have (0 horizontal, the default; 90 vertical): turns the image about a, the shorter way

Delete Canvas

ParameterTypeRequiredDescription
canvasid or nameYes
Automation details

Command ID: canvas.delete

Parameters:

canvas: id or name

Canvas to Sketch

ParameterTypeRequiredDescription
canvasid or nameNodefault: the last canvas
Automation details

Command ID: canvas.to_sketch

Parameters:

canvas?: id or name (default: the last canvas); name?: the new sketch's name. Traces the canvas image (dark drawing on a light background, or the reverse) into a new sketch on the canvas plane, lying exactly on the image: lines, splines and holes. at?: [x, y] a point on the canvas plane (mm), or a list of such points; given, only the region joined to each point whose colour is within tolerance of the colour there is traced, the regions of all the points together as one sketch; tolerance?: colour difference 0-100 (default 20), with at

Other commands: pointcloud

Edit Point Cloud

ParameterTypeRequiredDescription
cloudid or nameYes
nameNo
visibleNo
point_sizepixelsNo0.5…16
color_byfile|single|height or a property's nameNothe file's colours, the default; one colour; a ramp by height, blue low to red high; or by any property of the file, a ramp over its values or a palette for whole numbers
color[r, g, b] 0…1Nothe single colour; given alone it sets color_by single, null sets color_by file
height_rangethe same as color_rangeNo
unitsmm|cm|m|in|ftNothe file's length unit: the points are scaled from the unit they came in as
upz|yNothe file's up axis: the points are turned from the one they came in with, in the cloud's own frame, so its placement is kept
matrix[12 or 16 numbers]Nowhere the cloud sits: a rigid row-major 3x4 or 4x4 matrix, as occurrence.move takes it
toleranceNo
Automation details

Command ID: pointcloud.edit

Parameters:

cloud: id or name; name?; visible?; point_size?: pixels (0.5…16); color_by?: file|single|height or a property's name (the file's colours, the default; one colour; a ramp by height, blue low to red high; or by any property of the file, a ramp over its values or a palette for whole numbers); color?: [r, g, b] 0…1 (the single colour; given alone it sets color_by single, null sets color_by file); color_range?: [low, high] the ramp runs between (design Z in mm by height), or null for the automatic range (by height all but the lowest and highest 2 % of the points; by a property the values it takes over what the filters keep); height_range?: the same as color_range; units?: mm|cm|m|in|ft (the file's length unit: the points are scaled from the unit they came in as); up?: z|y (the file's up axis: the points are turned from the one they came in with, in the cloud's own frame, so its placement is kept); matrix?: [12 or 16 numbers] (where the cloud sits: a rigid row-major 3x4 or 4x4 matrix, as occurrence.move takes it); tolerance?; filters?: [{property, range: [low, high]} or {property, values: [whole numbers]} for a property with named values], or null (only what every filter keeps is shown) → cloud

Reload Point Cloud

ParameterTypeRequiredDescription
cloudid or nameYesits file is read again from where it was inserted; name, placement, units, up axis, colouring and the filters on properties it still has are kept; read under the limit it was inserted with, so a file that grew is thinned only past that limit
Automation details

Command ID: pointcloud.reload

Parameters:

cloud: id or name (its file is read again from where it was inserted; name, placement, units, up axis, colouring and the filters on properties it still has are kept; read under the limit it was inserted with, so a file that grew is thinned only past that limit) → cloud, points, segments, triangles, warnings

Delete Point Cloud

ParameterTypeRequiredDescription
cloudid or nameYes
Automation details

Command ID: pointcloud.delete

Parameters:

cloud: id or name → deleted

Point Clouds

Automation details

Command ID: pointcloud.list

Parameters:

→ clouds: [{cloud, name, file, source (the file's path, read again by pointcloud.reload), points, segments, triangles, source_points, units, up, visible, point_size, color_by (file, single, height or a property's name), color, colored, properties: [{name, integer, span, names}], filters, color_range (the ramp's now, exact over what the filters keep), height_range (the ramp's own range or the automatic one by height), height_auto, bounds: [[x,y,z], [x,y,z]] in the design, matrix}]

Point Cloud Deviation

ParameterTypeRequiredDescription
cloudid or nameYes
bodybody nameYesnot a mesh body
faces[face index]Nodefault every face; a face set is always unsigned
tolerancemmNo0.0001 to 1000, default 0.1
max_samplesNo1 to 2000000, default 100000: a larger cloud is sampled at every n-th point
signedboolNopositive outside the material, negative inside, zero on the boundary; default true for a body that encloses a volume measured on all its faces, refused for any other
worstNo0 to 1000, default 10
per_pointboolNo
Automation details

Command ID: pointcloud.deviation

Parameters:

cloud: id or name; body: body name (not a mesh body); faces?: [face index] (default every face; a face set is always unsigned); tolerance?: mm (0.0001 to 1000, default 0.1); max_samples? (1 to 2000000, default 100000: a larger cloud is sampled at every n-th point); signed?: bool (positive outside the material, negative inside, zero on the boundary; default true for a body that encloses a volume measured on all its faces, refused for any other); worst? (0 to 1000, default 10); per_point?: bool → cloud, body, faces, signed, sign_convention, tolerance_mm, cloud_points, sample_step, sampled, measured, failed, mean_abs_mm, mean_signed_mm, rms_mm, max_abs_mm, within_tolerance, within_tolerance_fraction, outside, inside, on_boundary, worst: [{index, point, closest, distance_mm}], failures: [{index, reason}], distances (with per_point), body_tolerance_mm, point_precision_mm, warnings. Distances are measured on the exact faces, edges and vertices of the body as placed now, from the cloud as placed now; nothing changes. Statistics count each measured point once and are null when no point was measured. The maximum is a sampled maximum, and points far from a part of the body say nothing about that part

Other commands: inspect

View Analysis

ParameterTypeRequiredDescription
offtrue turns the view analysis on now off.No
Automation details

Command ID: inspect.analysis

Parameters:

off?: true turns the view analysis on now off. → active: the command id of the view analysis on (inspect.zebra, inspect.draft, inspect.curvature_map, inspect.environment_map, inspect.accessibility, inspect.continuity, inspect.isocurve or inspect.curvature_comb), or null. One is on at a time: turning one on turns the one on before off. Read-only without `off`

Where Used

ParameterTypeRequiredDescription
paththe design to look forYes.sc
roota folder scanned recursively for .sc designsYes
Automation details

Command ID: inspect.where_used

Parameters:

path: the design to look for (.sc); root: a folder scanned recursively for .sc designs; max_depth?: levels of parents to follow, 1 to 256 (default 32; 1 is the designs that link `path` themselves) → parents [{path, depth, uses, cycle?}] (every design under root that links `path`, directly or through other designs, each once, nearest first), order (the same designs, children before parents, designs in or above a cycle last), scanned, truncated, unreadable, unreadable_count, warnings. Only the link information of each design is read (no geometry is opened or evaluated), inside the folders the caller may read; links are followed only to files the caller may reach, and symbolic links are not entered, nor are folders whose name starts with a dot. Only .sc (and legacy .solidcraft) designs are scanned, for their component links: a drawing's sources, plain .json designs and .scdwg drawings are not. At most 10000 designs (unreadable ones count), 20000 folders, 32 folder levels, 10000 links a design and 100000 links in all are read (truncated says a cap was reached); a relative path is read from the app's working folder

Clearance

ParameterTypeRequiredDescription
bodies[names]Nodefault: every solid body, in world placement, but those in `against`; mesh bodies are not measured
against[names]Noonly pairs with one body in `bodies` and the other here
min_volumemm³Nodefault 0.01: smaller overlaps count as contact
clearancemmNodefault 0: report pairs closer than this
nearestnNoeach body of `bodies` gets its n nearest others
skip_within"occurrence"| "component"| nullNopairs of bodies of one occurrence; pairs of bodies inside one placed component, its subcomponents included
envelopesboolNodefault false: component envelopes, solid.bounding_solid with `component`, are left out unless named; true: each is checked instead of the bodies inside it, and a body named inside one means it; an envelope is never paired with a body inside it
tolerancemmNodefault 1e-6: a gap below it is contact, 0
Automation details

Command ID: inspect.clearance

Parameters:

bodies?: [names] (default: every solid body, in world placement, but those in `against`; mesh bodies are not measured); against?: [names] (only pairs with one body in `bodies` and the other here); min_volume?: mm³ (default 0.01: smaller overlaps count as contact); clearance?: mm (default 0: report pairs closer than this); nearest?: n (each body of `bodies` gets its n nearest others); skip_within?: "occurrence" (pairs of bodies of one occurrence) | "component" (pairs of bodies inside one placed component, its subcomponents included) | null; envelopes?: bool (default false: component envelopes, solid.bounding_solid with `component`, are left out unless named; true: each is checked instead of the bodies inside it, and a body named inside one means it; an envelope is never paired with a body inside it); tolerance?: mm (default 1e-6: a gap below it is contact, 0) → overlaps: [{a, b, volume_mm3, area_mm2, bbox, center}]; near: [{a, b, distance_mm, from, to, overlap_mm3?: a contact's shared volume below min_volume, exact?: false when measured on the meshes}], nearest by body (the same for pairs that overlap: 0); nearest: {body: [{body, distance_mm}]} (omits pairs in unchecked); unchecked: [{a, b, reason, distance_mm?, exact?}] (pairs whose overlap could not be worked out, with non-boolean minimum distance when computable and exact: false when measured on the meshes; each mesh body, STL/3MF/OBJ import, is not measured and is listed as {a: name, b: null, reason: "mesh body: not checked"}, also when named in `bodies` or `against`; the result's `bodies` counts the solid bodies only); unchecked_count (length of `unchecked`; non-zero means the check is incomplete); pairs_checked; pairs_reused (of those, measured by an earlier call: neither body changed or moved since); pairs_pruned (ruled out by their boxes); ms. Distances are measured on the exact faces and edges, the meshes only rule pairs out

Find Hole Stacks

ParameterTypeRequiredDescription
bodies[names]Nodefault all but standard parts
diameters[[min, max]]Nomm; holes and slot widths in any range
slotsboolNodefault true: obround slots count
touchingmmNolargest gap between layers, default 0.05
axis_tolerancemmNolargest offset between hole axes, default 0.1
Automation details

Command ID: inspect.hole_stacks

Parameters:

bodies?: [names] (default all but standard parts); diameters?: [[min, max]] (mm; holes and slot widths in any range); slots?: bool (default true: obround slots count); touching?: mm (largest gap between layers, default 0.05); axis_tolerance?: mm (largest offset between hole axes, default 0.1) → stacks: [{axis (unit, from the start into the stack: −z for a vertical stack), start, end: [x,y,z] on the axis, grip_mm, layers: [{body, d_mm, t: [t0, t1] (mm from start), slot?: {length_mm, along}}]}] (two or more bodies each); lone: [{body, d_mm, at, axis, depth_mm, slot?}] (holes in no stack). Standard parts' bodies count only when named in `bodies`

Rationalize Fasteners

ParameterTypeRequiredDescription
max_orphan_countwhole numberNodefault 2: a SKU with that many fasteners or fewer is rare
max_extension_mmmmNodefault 5: the most a common SKU's length may exceed a rare one's
Automation details

Command ID: inspect.fastener_rationalize

Parameters:

max_orphan_count?: whole number (default 2: a SKU with that many fasteners or fewer is rare); max_extension_mm?: mm (default 5: the most a common SKU's length may exceed a rare one's) → total_fasteners, unique_skus, skus: [{family, size, length, thread, count, occurrences: [ids]}], consolidation_candidates: [{from_sku, to_sku, affected_occurrences, delta_length_mm, reason, safe_verified}] (a rare SKU, folded into a SKU of the same family, size and thread with more than max_orphan_count fasteners and a length longer by up to max_extension_mm; safe_verified: every screw was found in a hole that takes the longer one, short of a blind floor (less two thread pitches in a tapped hole) or into free space; a blind floor in the way leaves the proposal out), potential_sku_reduction (candidates with safe_verified). Counts the placed library screws, bolts, set screws and pins (parts with a length)

Socket Reach

ParameterTypeRequiredDescription
edge[x,y,z]Yesa point on a circular edge: a hole's rim, a bolt head's or a nut's top edge
diametermmYesthe socket's outside diameter
lengthmmYeshow far along the axis to check, from the edge's plane
flipboolNoapproach from the other side; default: the side the edge has no material on
ignore[bodies]Nobodies the socket may overlap, such as the fastener
Automation details

Command ID: inspect.socket_reach

Parameters:

edge: [x,y,z] (a point on a circular edge: a hole's rim, a bolt head's or a nut's top edge); diameter: mm (the socket's outside diameter); length: mm (how far along the axis to check, from the edge's plane); flip?: bool (approach from the other side; default: the side the edge has no material on); ignore?: [bodies] (bodies the socket may overlap, such as the fastener) → origin (the edge's centre), direction (unit, the way the socket's space runs), diameter_mm, length_mm, clear: bool, blocked: [{body, volume_mm3, from_mm (along the axis from the edge's plane), bbox}] (largest first), unchecked: [{body, reason}] (mesh bodies). Overlaps are measured on the exact faces; nothing is added to the design

Tolerance Stackup

ParameterTypeRequiredDescription
contributors[{name?, nominal? (mm) | parameter? (design parameter name), tolerance? (±mm) | plus?/minus? (mm), sign?: +1|-1|number (default 1), coating_thickness?: mm (default 0), coating_tolerance?: ±mm (default 0), coating_surfaces?: 0..=16, coating_effect?: reduce_clearance|add_to_dimension, distribution?: normal|uniform|triangular, sigma_level?: (0, 12] (default 3)}]Yes
min_clearancemmNodefault 0
rss_sigmaNo
trials1..=500000Nodefault 10000
seedu64Nodefault 42
Automation details

Command ID: inspect.tolerance_stack

Parameters:

contributors: [{name?, nominal? (mm) | parameter? (design parameter name), tolerance? (±mm) | plus?/minus? (mm), sign?: +1|-1|number (default 1), coating_thickness?: mm (default 0), coating_tolerance?: ±mm (default 0), coating_surfaces?: 0..=16, coating_effect?: reduce_clearance|add_to_dimension, distribution?: normal|uniform|triangular, sigma_level?: (0, 12] (default 3)}], min_clearance?: mm (default 0), rss_sigma?: (0, 12] (default 3), trials?: 1..=500000 (default 10000), seed?: u64 (default 42) → nominal, nominal_uncoated, coating_shift_total, min_clearance, worst_case: {min, max, half_band, binds}, rss: {mean, std_dev, sigma_multiplier, min, max, p_bind_analytical, binds}, monte_carlo: {trials, seed, mean, std_dev, min, max, p01, p05, p50, p95, p99, bind_count, p_bind}, contributors: [{...}]

Parameter Sweep

ParameterTypeRequiredDescription
parameternameYes
values[number | expression]| fromYesat most 200
tonumbersYes
stepsNodefault 10, at most 199: steps + 1 values
Automation details

Command ID: inspect.parameter_sweep

Parameters:

parameter: name; values: [number | expression] (at most 200) | from, to: numbers, steps? (default 10, at most 199: steps + 1 values) → for each value, in a copy of the design (the design itself is not changed): {value, ms (the rebuild), ok, failed: [{feature, name, error}], warned: [{feature, name, warning}] (features that build at the current value and fail or warn at this one), joints_lost: [{joint, name, origin?: a|b, why}], joints_flipped: [{joint, name, origin: a|b, degrees}] (an origin's z turned more than 90° on its own part from where it is now), sketches_flipped: [{sketch, name, degrees}] (the sketch plane's normal turned more than 90°), sketches_failed: [{sketch, name, failing, folded}] (a solve that fails, or keeps a triangle's turn or an offset's side only by flipping it)} (or {value, ms, ok: false, error} where the parameter takes no such value); summary: {values, ok, slowest_ms, failed, joints_lost, joints_flipped, sketches_flipped, sketches_failed} (how many values show each)

Compare Parameter Variants

Automation details

Command ID: inspect.parameter_variants

Parameters:

variants: [{name, set: {parameter: number | expression}}] (1 to 12; up to 16 existing parameters each). Rebuild each set together in a separate copy of the open design. Returns baseline and ordered results with volume, mass, body counts and rebuild regressions. No edits are kept.

Classify Points

Check whether points lie in a body’s material, in empty space, or on its boundary. Boundary points also give a persistent face name and the outward unit normal there. This read command is available to plugins, scripts and MCP’s execute tool.

Before you start

Use an exact body and its world-space name, as listed by List Faces. Coordinates are in millimetres in the world frame, including for moved components and placed copies. Mesh bodies are refused.

Parameters

ParameterMeaning
bodyThe body’s name.
points1–256 [x,y,z] points; coordinates must be finite and below 1e9 in magnitude.
faceOptional face name from model.faces, or a point on the face. Chooses the normal’s face for all boundary points.

Example

For a 10 mm cube starting at the origin, call:

{"body":"Block","points":[[5,5,5],[20,5,5],[0,5,5]]}

The results array contains inside, outside, and on classes in that order. The on result includes the face’s persistent name and normal [-1,0,0]. Points within the body’s modelling tolerance of its trimmed boundary count as on. A hole or cavity is outside material. Its wall’s normal points into the empty space; a cylindrical boss’s normal points away from its axis.

Tips

  • At an edge or vertex, select face to choose one incident face’s normal. Without it, the first containing face in model.faces order supplies the normal.
  • A selected face must contain every on point. A point on the face’s extended surface, beyond its trim or inside one of its holes, does not lie on that face.
  • Split requests when boundary points need normals from different selected faces.
  • Invalid inputs, unsupported mesh bodies and undefined normals return an error. The command leaves the design and undo history unchanged.

See also

List Faces lists names and sample points for faces. Measure reads sizes and distances.

ParameterTypeRequiredDescription
bodynameYes
points1–256 world-space [x,y,z] in mmYes
faceface name or point on a faceNo
Automation details

Command ID: inspect.classify_points

Parameters:

body: name; points: 1–256 world-space [x,y,z] in mm; face?: face name or point on a face → results in input order: {class: inside|outside|on}; on also gives face (persistent name) and normal (outward unit vector). Exact trimmed geometry at the body's modelling tolerance; mesh bodies refused. At shared edges/vertices, face selects the normal, otherwise the first containing face in model.faces order

Compare Bodies

ParameterTypeRequiredDescription
tolerancemmNo0.001 to 10, default 0.01
max_regionsNodefault 50
colortrue | {only_in_a?, only_in_b?: "#rrggbb"}Nocolours the faces that hold a region, red where only a has material and green where only b has: the faces mostly beyond the tolerance, else the one with the largest share; an undo step
Automation details

Command ID: inspect.compare

Parameters:

a, b: body names (default: the two selected bodies, or the design's only two), in world placement; tolerance?: mm (0.001 to 10, default 0.01): surfaces closer than this agree; spacing?: mm (default 0.5): the largest piece of a face sampled as one point, coarser for a body that would need more than max_points? (default 8 million, up to 50 million) samples; max_regions? (default 50); color?: true | {only_in_a?, only_in_b?: "#rrggbb"} (colours the faces that hold a region, red where only a has material and green where only b has: the faces mostly beyond the tolerance, else the one with the largest share; an undo step); measure_regions?: (default true) false skips the exact cuts a − b and b − a, so the regions' volumes and centres are not measured, for bodies whose cuts would be long (each cut is stopped after 30 s or at its work budget) → a, b: volume_mm3, area_mm2, center_of_mass, bbox; difference: b − a; deviation: a_to_b, b_to_a (max_mm, mean_mm, at, area_beyond_mm2); regions, largest first: side (only_in_a | only_in_b), volume_mm3, center and bbox (measured_by: "boolean": exact, the pieces of a − b or b − a there, measured as inspect.measure does; "not measured": the cut could not be made, was stopped after 30 s or at its work budget (bodies whose surfaces lie almost on each other), or was not asked for, so volume_mm3 and center are null and not_measured says why, never an estimate), area_mm2, max_deviation_mm, at, faces_a, faces_b (face indices, as model.faces lists them); identical; verdict; warnings (a body whose surface does not enclose what it measures, lines left out, a cut that could not be made or was stopped). The regions are found from the two surfaces, so near-identical bodies compare too

Compare Picture

ParameterTypeRequiredDescription
referencepath to a PNG or JPEG the model should matchYes
crop_px[x, y, w, h] in pixelsNo
crop_fraction[x, y, w, h] as fractions 0..1 of the pictureNoto take one view off a board
overlaya .png file to write the overlay toNored model, blue picture
Automation details

Command ID: inspect.compare_picture

Parameters:

reference: path to a PNG or JPEG the model should match; view?/camera?/bodies?/rows? as inspect.silhouette; crop_px?: [x, y, w, h] in pixels, or crop_fraction?: [x, y, w, h] as fractions 0..1 of the picture (to take one view off a board); part_fills_crop?: false — with true the crop box is the part itself and no background search runs, for a crop that tightly frames the part; fit?: "width" | "height" | "both" (default "width"): one uniform scale, taken from the named dimension ("both" claims both and scales by width, reporting aspect_mismatch when the shapes differ); overlay?: a .png file to write the overlay to (red model, blue picture) → overlap (0..1), edges: top|bottom|left|right in mm at nine stations (positive where the model reaches past the picture, null where a station misses one of the two), the grid and its mm_per_px, and overlay: the file written, when asked for. The compare is outline only: holes are not compared — both the picture's and the model's holes are filled

Silhouette

ParameterTypeRequiredDescription
viewfront|back|left|right|top|bottom|isoNodefault front
camera{target: [x,y,z], yaw, pitch, distance, fov?}Nomm, radians; fov 0 means parallel
bodies[world body names]Nodefault visible bodies, named hidden bodies included
rowsmask height in pixelsNodefault 240, clamped to 16..1024
Automation details

Command ID: inspect.silhouette

Parameters:

view?: front|back|left|right|top|bottom|iso (default front); or camera?: {target: [x,y,z], yaw, pitch, distance, fov?} (mm, radians; fov 0 means parallel); bodies?: [world body names] (default visible bodies, named hidden bodies included); rows?: mask height in pixels (default 240, clamped to 16..1024) → tightly framed run-length mask, box_mm, mm_per_px, right/up, projection, body and triangle counts

Save Section Analysis

ParameterTypeRequiredDescription
namewhat to call the Section Analysis on showYesits planes, hidden ones too, and its hatch
Automation details

Command ID: inspect.section.save

Parameters:

name: what to call the Section Analysis on show (its planes, hidden ones too, and its hatch); a saved section of that name is replaced. Saved with the design

Show Saved Section Analysis

ParameterTypeRequiredDescription
sectiona saved section's nameYes
Automation details

Command ID: inspect.section.show

Parameters:

section: a saved section's name; it replaces the section on show, so the planes follow it. One undo step

Rename Saved Section Analysis

ParameterTypeRequiredDescription
sectiona saved section's nameYes
namethe new oneYes
Automation details

Command ID: inspect.section.rename

Parameters:

section: a saved section's name, name: the new one

Delete Saved Section Analysis

ParameterTypeRequiredDescription
sectiona saved section's nameYes
Automation details

Command ID: inspect.section.delete

Parameters:

section: a saved section's name; the section on show stays as it is

List Saved Section Analyses

Automation details

Command ID: inspect.section.list

No parameter description is provided by the command registry.

Other commands: surface

Midsurface Analysis

ParameterTypeRequiredDescription
bodyYes
max_thicknessexprNodefault: the suggestion from a first look
min_thicknessexprNodefault 0
Automation details

Command ID: surface.midsurface_analyze

Parameters:

body; max_thickness?: expr (default: the suggestion from a first look); min_thickness?: expr (default 0); min_aspect?: number (default 5). Read-only: the proposed pairs (faces, points, thickness, thinnest, thickest, draft in degrees, area, coverage, aspect, confidence high|review, notes), the faces in no pair with their reasons (a rim of a wall is accounted for), the wall thicknesses found with a suggested max_thickness each, and what building the confident pairs leaves out

Other commands: solid

Lift Cam

Automation details

Command ID: solid.cam

Parameters:

base_radius (mm, > 0), roller_radius? (mm, >= 0, default 0), stages ([{law: dwell|linear|harmonic|cycloidal, sweep_deg, end_lift, start_lift?}]: sweeps summing to 360 deg), thickness? (mm: extrude solid body when given), bore_diameter? (mm: coaxial through-bore, requires thickness), plane? (XY|XZ|YZ, default XY), offset? (mm, default 0), fit_tolerance? (mm, 0.0001..10, default 0.01), samples_per_stage? (8..360, default 36), name? -> sketch, body?, volume_mm3?, area_mm2?, max_lift, min_lift, max_lever_radius, max_pressure_angle_deg, min_curvature_radius, c0_continuous, c1_continuous, stages

Cell Grid

ParameterTypeRequiredDescription
sizeexprYesa cell's inscribed diameter; not with shape sketch
webexprYesthe wall between cells
depthexprYesor through_all: true
shapehexagon|square|triangle|circle|polygon|voronoi|sketchNodefault hexagon; voronoi: irregular convex cells round the hexagonal grid's centres, each moved by a pseudo-random offset; sketch repeats the one closed profile of the sketch cell_sketch, on a lattice: it needs cell_sketch, pitch_x and pitch_y, ignores size, sides and dot_grid, and clip defaults to whole, snap is refused
cell_sketchid|nameNoshape sketch: the sketch holding the cell, exactly one closed profile without holes
pitch_xexprNo
pitch_yexprNoshape sketch: the distance between cell origins along a row, and between rows, at least 0.001 mm; a cell that overlaps a neighbour or comes nearer than web is refused
staggerexprNoshape sketch: how far each row shifts along the row as a fraction of pitch_x, 0 to 1, default 0; 0.5 gives hexagonal and brick layouts
cell_angleexprNoshape sketch: the cell's turn about its own origin, apart from angle, which turns the whole grid; default 0
flipboolNoshape sketch: mirror every other cell, those with row plus column odd, in the vertical axis through its origin; default false
cell_origin[x,y]Noshape sketch: the cell's origin in the cell sketch's own coordinates, the point at each lattice point; default the profile's centroid, anchor is where cell (0,0)'s origin sits
sidesexprNopolygon cells, 3 to 64; default 8
dot_gridhexagonal|squareNowhere circle and polygon cells sit; default hexagonal
angleexprNothe grid's rotation about the anchor; angle 45 deg with square cells gives a diamond layout
anchor[x,y,z]Noa cell's centre, projected onto the sketch plane; default the sketch origin: grids with the same anchor, angle, size and web line up
clipwhole|snap|freeNocells the field's edge crosses: only whole cells; cells cut along the grid's own lines; cells trimmed to the edge as drawn; default snap, whole with shape sketch; with shape voronoi, snap fills the field: the cells are trimmed a web inside the edge, so the rim is as wide as the walls between cells
keepout_clipwhole|snap|freeNothe same for the edges of loops inside the field, the keep-outs; default: the value of clip, so one mode serves every loop; a cell that meets both kinds is dropped if either is whole, else trimmed if either is free
snap_insetexprNowith clip snap, a whole number of lattice lines each straight field edge moves in after it snaps, so the edge cells are whole and the rim thicker by whole grid rows; default 0; keep-outs are not moved; refused with shape voronoi, which has no lattice lines
seedexprNovoronoi cells: a whole number picking the pattern; default 0
irregularityexprNovoronoi cells: how far the centres move, 0 to 1; default 0.7
corner_radiusexprNovoronoi cells: rounds each corner; default 0, sharp; seed, irregularity and corner_radius are refused with any other shape
marginexprNowith clip whole, the least clearance from a cell to every edge of the field and its keep-outs, measured exactly; default 0, a cell may touch an edge
directionpositive|negative|symmetricNodefault positive
sketchid|nameNodefault: active or last sketch; its closed profiles hold the field: a loop inside another is a keep-out
profilesas solid.extrudeNo
targets[body]No
modecut|raisedNodefault cut; raised adds the cells as material standing `depth` from the sketch plane in `direction`, joined to the targets, or a new body if there is none; not with through_all; the sketch plane is where they stand, so the sketch on the face they rise from and direction away from the body
Automation details

Command ID: solid.cell_grid

Parameters:

size: expr (a cell's inscribed diameter; not with shape sketch); web: expr (the wall between cells); depth: expr (or through_all: true); shape?: hexagon|square|triangle|circle|polygon|voronoi|sketch (default hexagon; voronoi: irregular convex cells round the hexagonal grid's centres, each moved by a pseudo-random offset; sketch repeats the one closed profile of the sketch cell_sketch, on a lattice: it needs cell_sketch, pitch_x and pitch_y, ignores size, sides and dot_grid, and clip defaults to whole, snap is refused); cell_sketch?: id|name (shape sketch: the sketch holding the cell, exactly one closed profile without holes); pitch_x?, pitch_y?: expr (shape sketch: the distance between cell origins along a row, and between rows, at least 0.001 mm; a cell that overlaps a neighbour or comes nearer than web is refused); stagger?: expr (shape sketch: how far each row shifts along the row as a fraction of pitch_x, 0 to 1, default 0; 0.5 gives hexagonal and brick layouts); cell_angle?: expr (shape sketch: the cell's turn about its own origin, apart from angle, which turns the whole grid; default 0); flip?: bool (shape sketch: mirror every other cell, those with row plus column odd, in the vertical axis through its origin; default false); cell_origin?: [x,y] (shape sketch: the cell's origin in the cell sketch's own coordinates, the point at each lattice point; default the profile's centroid, anchor is where cell (0,0)'s origin sits); sides?: expr (polygon cells, 3 to 64; default 8); dot_grid?: hexagonal|square (where circle and polygon cells sit; default hexagonal); angle?: expr (the grid's rotation about the anchor; angle 45 deg with square cells gives a diamond layout); anchor?: [x,y,z] (a cell's centre, projected onto the sketch plane; default the sketch origin: grids with the same anchor, angle, size and web line up); clip?: whole|snap|free (cells the field's edge crosses: only whole cells; cells cut along the grid's own lines; cells trimmed to the edge as drawn; default snap, whole with shape sketch; with shape voronoi, snap fills the field: the cells are trimmed a web inside the edge, so the rim is as wide as the walls between cells); keepout_clip?: whole|snap|free (the same for the edges of loops inside the field, the keep-outs; default: the value of clip, so one mode serves every loop; a cell that meets both kinds is dropped if either is whole, else trimmed if either is free); snap_inset?: expr (with clip snap, a whole number of lattice lines each straight field edge moves in after it snaps, so the edge cells are whole and the rim thicker by whole grid rows; default 0; keep-outs are not moved; refused with shape voronoi, which has no lattice lines); seed?: expr (voronoi cells: a whole number picking the pattern; default 0); irregularity?: expr (voronoi cells: how far the centres move, 0 to 1; default 0.7); corner_radius?: expr (voronoi cells: rounds each corner; default 0, sharp; seed, irregularity and corner_radius are refused with any other shape); margin?: expr (with clip whole, the least clearance from a cell to every edge of the field and its keep-outs, measured exactly; default 0, a cell may touch an edge); direction?: positive|negative|symmetric (default positive); sketch?: id|name (default: active or last sketch; its closed profiles hold the field: a loop inside another is a keep-out); profiles?: as solid.extrude; targets?: [body]; mode?: cut|raised (default cut; raised adds the cells as material standing `depth` from the sketch plane in `direction`, joined to the targets, or a new body if there is none; not with through_all; the sketch plane is where they stand, so the sketch on the face they rise from and direction away from the body); name?. Cuts or raises at most 1000 cells in one operation; not for sheet metal (use sheet.perforate). The faces cut have no stable names yet

Tab and Slot

ParameterTypeRequiredDescription
tab_plates[plate]Yesthe plates that get tabs; a plate is a body name or {body, near: [x,y,z], key?}, near choosing between several contact planes, key a whole number from 1 that names the plate's tabs or slots and is kept on an edit; plates without one get the next free key
slot_plates[plate]Yesthe plates that get slots
countexprNotabs per stretch, a whole number 1 to 100; default: as many as fit
spacingexprNocenter to center between tabs, instead of count
tab_widthexprNodefault 3 x the tab plate's thickness
end_distanceexprNofrom a stretch's end to the nearest tab; default the tab width
clearanceexprNothe room at each end of a tab in its slot, along the edge; default 0.1 mm
thickness_clearanceexprNothe room each side of a tab's faces in its slot, across the tab plate's thickness; default the clearance
protrusionexprNohow far a tab stands out past the slot plate's far face; default 0
seedexprNowhole number, default 1000; the same seed gives the same tab widths
width_jitterexprNovary each tab's width by up to this much either way, default 0 = off; not under a tenth of the tab width, never past the end distances, same layout on both plates
tip_chamferexprNochamfers the two outer corners of each tab's free end so tabs enter the slots easily, default 0 = off; the slot is not chamfered; refused at half the tab width or more, or at the tab's length or more
next_plate_keyintegerNothe lowest key a new plate may get; stored by the feature so an edit never reuses a removed plate's key
Automation details

Command ID: solid.tab_slot

Parameters:

tab_plates: [plate] (the plates that get tabs; a plate is a body name or {body, near: [x,y,z], key?}, near choosing between several contact planes, key a whole number from 1 that names the plate's tabs or slots and is kept on an edit; plates without one get the next free key); slot_plates: [plate] (the plates that get slots); count?: expr (tabs per stretch, a whole number 1 to 100; default: as many as fit); spacing?: expr (center to center between tabs, instead of count); tab_width?: expr (default 3 x the tab plate's thickness); end_distance?: expr (from a stretch's end to the nearest tab; default the tab width); clearance?: expr (the room at each end of a tab in its slot, along the edge; default 0.1 mm); thickness_clearance?: expr (the room each side of a tab's faces in its slot, across the tab plate's thickness; default the clearance); protrusion?: expr (how far a tab stands out past the slot plate's far face; default 0); seed?: expr (whole number, default 1000; the same seed gives the same tab widths); width_jitter?: expr (vary each tab's width by up to this much either way, default 0 = off; not under a tenth of the tab width, never past the end distances, same layout on both plates); tip_chamfer?: expr (chamfers the two outer corners of each tab's free end so tabs enter the slots easily, default 0 = off; the slot is not chamfered; refused at half the tab width or more, or at the tab's length or more); next_plate_key?: integer (the lowest key a new plate may get; stored by the feature so an edit never reuses a removed plate's key); name?. Every tab plate is tried against every slot plate; a pair that cannot be cut is skipped and named. A pair with a sheet metal plate waits for the sheet metal route, not built yet (sheet_route_not_built). Not for mesh bodies

Other commands: mesh

Convert Mesh

ParameterTypeRequiredDescription
bodymesh body nameNodefault: the selected mesh body
nameNo
Automation details

Command ID: mesh.convert

Parameters:

body?: mesh body name (default: the selected mesh body); tolerance?: length expression (default 0.05 mm): rebuild a closed mesh as an editable solid — supported straight-extrusion parts and planar shoulders as planar and cylindrical faces, other closed meshes as the faceted solid their triangles describe — with a parametric timeline feature in the mesh body's owning component (the active component must be that component or an ancestor; otherwise activate the named component first); the active component is unchanged; for meshes over the conversion triangle limit, run Reduce Mesh (mesh.reduce) on the source and convert the reduced copy; name?

Reduce Mesh

ParameterTypeRequiredDescription
bodymesh body nameNodefault: selected body
Automation details

Command ID: mesh.reduce

Parameters:

body?: mesh body name (default: selected body); exactly one of triangle_count: positive integer or percentage: retained percent strictly between 0 and 100; name?: feature name. Creates a separate mesh in the source component, preserving the original. Reports actual triangle count and warns when the target cannot be reached.

Section Stack

ParameterTypeRequiredDescription
bodymesh body nameNodefault: the selected mesh body
planeas sketch.create's planeYes
spacinglength expressionYes> 0
max_sections1…1000Nodefault 100
extrudeboolNodefault false: extrude each section's material to the next plane, each slab a body of its own
Automation details

Command ID: mesh.section_stack

Parameters:

body?: mesh body name (default: the selected mesh body); plane: as sketch.create's plane; spacing: length expression (> 0); from?, to?: length expressions, distances along the plane's normal (default: the body's reach along it); max_sections?: 1…1000 (default 100); extrude?: bool (default false: extrude each section's material to the next plane, each slab a body of its own); name? (default "Section"): a sketch of fitted lines, arcs and circles on each plane that meets the mesh, in one timeline folder, as one undo step → sketches, planes, empty, slabs, bodies, skipped?, group

Other commands: file

Import with Plugin

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
formatinstalled importer plugin_id.entryNodefault: the one claiming the file's extension; see plugin.list importers
optionsthe importer's declared optionsNo
namedboolNorefusals name the missing grant and how to approve it
Automation details

Command ID: file.import

Parameters:

path, format?: installed importer plugin_id.entry (default: the one claiming the file's extension; see plugin.list importers), options?: the importer's declared options, named?: bool (refusals name the missing grant and how to approve it); opens the file as a new, unsaved design made by the importer plugin and returns its loss_report; never opens a dialog

New Design

Default keyboard shortcut: Ctrl+N

Read the import and export guide.

ParameterTypeRequiredDescription
nameNo
new_tabboolNotrue opens the design in a tab of its own after the active one and shows it, so the design that was open stays open and every later command acts on the new one; default false: the active design is replaced; the desktop window only
Automation details

Command ID: file.new

Parameters:

name?; new_tab?: bool (true opens the design in a tab of its own after the active one and shows it, so the design that was open stays open and every later command acts on the new one; default false: the active design is replaced; the desktop window only) → name, document_id (with new_tab)

Revert to Saved

Read the import and export guide.

Automation details

Command ID: file.revert_saved

Parameters:

→ reads the active design again from the file it was opened or saved as, as File > Revert to Saved does, and answers as doc.open does. It never asks: unsaved changes are lost, and the history with them. A design with no file yet, and a file that is gone or unreadable, are refused and leave the design as it is

Save

Default keyboard shortcut: Ctrl+S

Read the import and export guide.

ParameterTypeRequiredDescription
pathNodefault: current file; a name that opens as another kind of file, such as .step, .stl or .dxf, is refused: file.export writes those
formatcontainer|jsonNodefault: json for .json, otherwise container
compressionfast|compactNodefault: fast
cacheboolNothe evaluated model, so the design opens without rebuilding; default: true; left out, without waiting, while an imported file's check of its parts still runs
linked_bodiesboolNothe bodies of linked designs and linked STEP files, with a linked design's mesh bodies; false: the file keeps each link without its bodies, opening the design reads them from the linked files again, and a container has no saved model; a link whose file cannot be read now keeps its bodies and is named in warnings; default: as the design was last saved or opened, true for a new design
previewboolNosaved display meshes, default: false
overwriteboolNoreplace the design's file even though another program or computer changed it since it was opened or saved; without it that save is refused
signboolNothe app's own Save only: sign the save with GnuPG, appending a provenance record; container only; a script or agent is refused
signing_keyfingerprint or user idNodefault: GnuPG's default signing key
Automation details

Command ID: file.save

Parameters:

path? (default: current file; a name that opens as another kind of file, such as .step, .stl or .dxf, is refused: file.export writes those); format?: container|json (default: json for .json, otherwise container); compression?: fast|compact (default: fast); cache?: bool (the evaluated model, so the design opens without rebuilding; default: true; left out, without waiting, while an imported file's check of its parts still runs); linked_bodies?: bool (the bodies of linked designs and linked STEP files, with a linked design's mesh bodies; false: the file keeps each link without its bodies, opening the design reads them from the linked files again, and a container has no saved model; a link whose file cannot be read now keeps its bodies and is named in warnings; default: as the design was last saved or opened, true for a new design); preview?: bool (saved display meshes, default: false); overwrite?: bool (replace the design's file even though another program or computer changed it since it was opened or saved; without it that save is refused); sign?: bool (the app's own Save only: sign the save with GnuPG, appending a provenance record; container only; a script or agent is refused); signing_key?: fingerprint or user id (default: GnuPG's default signing key) → signature: {method, fingerprint, user_id?} when signed

Save As

Default keyboard shortcut: Ctrl+Shift+S

Read the import and export guide.

ParameterTypeRequiredDescription
pathYesa design file name, .sc as a rule; one that opens as another kind of file, such as .step, .stl or .dxf, is refused: file.export writes those
formatcontainer|jsonNodefault: json for .json, otherwise container
compressionfast|compactNodefault: fast
cacheboolNothe evaluated model, so the design opens without rebuilding; default: true; left out, without waiting, while an imported file's check of its parts still runs
linked_bodiesboolNothe bodies of linked designs and linked STEP files, with a linked design's mesh bodies; false: the file keeps each link without its bodies, opening the design reads them from the linked files again, and a container has no saved model; a link whose file cannot be read now keeps its bodies and is named in warnings; default: as the design was last saved or opened, true for a new design
previewboolNosaved display meshes, default: false
overwriteboolNoas file.save, when `path` is the design's own file
signbool and signing_key?Noas file.save, and likewise only from the app's own Save
Automation details

Command ID: file.save_as

Parameters:

path (a design file name, .sc as a rule; one that opens as another kind of file, such as .step, .stl or .dxf, is refused: file.export writes those); format?: container|json (default: json for .json, otherwise container); compression?: fast|compact (default: fast); cache?: bool (the evaluated model, so the design opens without rebuilding; default: true; left out, without waiting, while an imported file's check of its parts still runs); linked_bodies?: bool (the bodies of linked designs and linked STEP files, with a linked design's mesh bodies; false: the file keeps each link without its bodies, opening the design reads them from the linked files again, and a container has no saved model; a link whose file cannot be read now keeps its bodies and is named in warnings; default: as the design was last saved or opened, true for a new design); preview?: bool (saved display meshes, default: false); overwrite?: bool (as file.save, when `path` is the design's own file); sign?: bool and signing_key? (as file.save, and likewise only from the app's own Save)

Verify Signature

Read the import and export guide.

ParameterTypeRequiredDescription
pathNodefault: the design's current file
Automation details

Command ID: file.verify

Parameters:

path? (default: the design's current file) → {path, status, reason?, truncated, records: [{method, key_id, user_id?, author?, created?, format, covered}]}: status is unsigned, valid, not_covered (signed earlier, saved since without a key), invalid or unsupported

Signing Keys

Read the import and export guide.

Automation details

Command ID: file.gpg_keys

Parameters:

→ {available, keys: [{fingerprint, key_id, user_id, on_card}]}: the GnuPG secret keys a save can sign with (desktop only)

Export

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
bodies[names]NoJSON, URDF and MJCF export the complete design
writersolidcraft|cadmpegNoSTEP and IGES only, refused for the other formats; default solidcraft: SolidCraft's own writers; cadmpeg: written from the design by cadmpeg, STEP AP242 with the components and colours but no solid names, IGES 5.3 with each body where the design shows it, named and coloured; warnings say what the file leaves out
qualitystandard|fine|finestNoSTL, OBJ, 3MF, GLB, OpenUSD, Rhino, URDF and SDF: how closely the mesh follows curved faces, a chord tolerance of 2e-4, 5e-5 or 1e-5 of each body's size; default standard
objectsbody|componentNo3MF only: one object per body, the default, or one object for each placed component with two or more bodies, with those bodies as its parts, so a slicer loads them as one object with parts
lay_on_print_facesboolNoSTL and 3MF only, default false: each body with a print face (body.print_face) is written laid on it, as a slicer export lays it → print_faces: the bodies laid, warnings: each body that has a print face but was written as it lies
solidsbody|faceNoASCII STL, format stla only, default body: face writes one `solid <name>` block per B-rep face, named by the face's persistent name, for CFD meshers; docs/formats/stl-face-solids.md
physicsboolNoOpenUSD only, default false: true also writes the joints, gears and racks as PhysX couplings of their joints, the grounded placements, each placement as a rigid body and each component's mass as OpenUSD physics, for a simulator, for the whole design with its components only, else none with a warning; a jointed placement moved without capturing the move is written where its joints place it, with a warning
render_setupnameNoOpenUSD only, default none: the saved render setup whose image textures (base colour, roughness, metallic, and a normal map the file can show as the renderer does) a .usdz package holds on each body's mesh; a .usda or .usdc file is written without them, with a warning; and the optics it gives bodies, written as glass in every encoding: the index of refraction, and full transmission on the MaterialX OpenPBR shader
purposeinterchange|distributionNoOpenUSD only, default interchange: each body's exact shape beside its mesh, for another CAD program; distribution: meshes only, with the pictures shown on the model, for a viewer or a game engine
exact_brepboolNoOpenUSD only, default true for interchange, false for distribution: each body's exact shape beside its mesh
Automation details

Command ID: file.export

Parameters:

path; format?: stl|stla|obj|step|3mf|3mf-tagged|glb|usd|3dm|urdf|mjcf|sdf|json, or plugin_id.entry for an installed exporter plugin (plugin.list exporters), which writes the whole design with options?: the slot's declared options (output files: a .zip path keeps the archive, otherwise path is a folder; overwrite?: bool, default false, permits replacing files in that folder; reply files lists written paths; default from extension; an extension SolidCraft doesn't write goes to the exporter plugin that claims it; mjcf: the whole assembly as a MuJoCo model, as file.export_mjcf, named by format (a `.xml` path alone is not MJCF); sdf: a Gazebo model folder, as file.export_sdf (the path is the folder, a `.sdf` ending dropped; name?, static?, model_uris?, quality?); docs/sdf.md; 3mf-tagged: 3MF whose triangles carry their B-rep face, at full precision, for meshing and analysis tools; docs/formats/3mf-face-tags.md; obj: the colours of the bodies go in a material library (`.mtl`) written next to the mesh file; glb: binary glTF in metres with Y up, each body placed and named, its colours, metallic, roughness and opacity as materials (a look that is not opaque is alpha blended), and the Glass a render setup gives a body as glTF transmission; Glass with subsurface scattering, Glass two setups give a body differently, or a body a render setup gives an image texture, is refused; urdf: the whole assembly as a robot, with STL meshes written next to it, or where mesh_prefix points with place_meshes; docs/urdf.md; 3dm: Rhino 8, written by cadmpeg: each body where the design shows it (no components), named and in its colour, as its exact shape when every face is planar and every edge straight, else as its mesh, with warnings for what the file leaves out; fcstd is refused, as cadmpeg cannot write a new FreeCAD file yet); bodies?: [names] (JSON, URDF and MJCF export the complete design); writer?: solidcraft|cadmpeg (STEP and IGES only, refused for the other formats; default solidcraft: SolidCraft's own writers; cadmpeg: written from the design by cadmpeg, STEP AP242 with the components and colours but no solid names, IGES 5.3 with each body where the design shows it, named and coloured; warnings say what the file leaves out); urdf only: mesh_prefix? (before each mesh file name, e.g. package://robot/meshes/), place_meshes? (default false: the meshes next to the .urdf whatever mesh_prefix says; true: written where mesh_prefix points, its folder made), effort? (default 1000), velocity? (default 10), mimic? (default false; true: motion links as <mimic>), images?: bool (URDF and OpenUSD, default false, true for OpenUSD with purpose: distribution; true: each shown canvas and decal is written as a textured quad, its image next to the URDF or, for OpenUSD, in the .usdz package, a .usda or .usdc file leaving them out with a warning; an OpenUSD export of chosen bodies writes none, with a warning); quality?: standard|fine|finest (STL, OBJ, 3MF, GLB, OpenUSD, Rhino, URDF and SDF: how closely the mesh follows curved faces, a chord tolerance of 2e-4, 5e-5 or 1e-5 of each body's size; default standard); chord?: mm, 0.001 to 1000 (instead of quality, for the same formats: one chord tolerance for every body; coarser gives fewer triangles); objects?: body|component (3MF only: one object per body, the default, or one object for each placed component with two or more bodies, with those bodies as its parts, so a slicer loads them as one object with parts); lay_on_print_faces?: bool (STL and 3MF only, default false: each body with a print face (body.print_face) is written laid on it, as a slicer export lays it → print_faces: the bodies laid, warnings: each body that has a print face but was written as it lies); solids?: body|face (ASCII STL, format stla only, default body: face writes one `solid <name>` block per B-rep face, named by the face's persistent name, for CFD meshers; docs/formats/stl-face-solids.md); physics?: bool (OpenUSD only, default false: true also writes the joints, gears and racks as PhysX couplings of their joints, the grounded placements, each placement as a rigid body and each component's mass as OpenUSD physics, for a simulator, for the whole design with its components only, else none with a warning; a jointed placement moved without capturing the move is written where its joints place it, with a warning); render_setup?: name (OpenUSD only, default none: the saved render setup whose image textures (base colour, roughness, metallic, and a normal map the file can show as the renderer does) a .usdz package holds on each body's mesh; a .usda or .usdc file is written without them, with a warning; and the optics it gives bodies, written as glass in every encoding: the index of refraction, and full transmission on the MaterialX OpenPBR shader); purpose?: interchange|distribution (OpenUSD only, default interchange: each body's exact shape beside its mesh, for another CAD program; distribution: meshes only, with the pictures shown on the model, for a viewer or a game engine); exact_brep?: bool (OpenUSD only, default true for interchange, false for distribution: each body's exact shape beside its mesh); a given images or exact_brep overrides the purpose's default; urdf, mjcf and sdf: expand_linked?: bool (default false: each linked component stays one welded block; true: the links, joints, motion links, joint dynamics and mass overrides of the designs linked components name are read through the folders you may use and put in the robot, every element named behind its placement path, a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep staying welded with its reason in report; SDF: implies kinematics), pose?: current|reference (default current: the file's joints as the design has them now; reference: every joint at its zero moved into its limits; a URDF always has its joints at their zero, so it is the same file), kinematics?: bool (sdf only, default false: true writes every link and joint of the assembly, limits and dynamics, in model.sdf instead of one link; static then defaults to false; not with bodies) → report: {expanded, skipped, welded}: the joints that came out of expanded linked designs, the joints left out with their reasons, and the components held as one welded block

Export STEP

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
bodies[names]Nodefault: every body; a design with components then exports as a STEP assembly
Automation details

Command ID: file.export_step

Parameters:

path; bodies?: [names] (default: every body; a design with components then exports as a STEP assembly) → {path, bytes, format}: STEP, whatever the path's extension

Convert STL to STEP

Read the import and export guide.

ParameterTypeRequiredDescription
inputSTLYes.stl
outputSTEPYes.step or .stp
unitsmm|cm|m|in|ftNodefault mm
tolerancelength expressionNodefault 0.05 mm
Automation details

Command ID: file.stl_to_step

Parameters:

input: STL (.stl) file path; output: STEP (.step or .stp) file path; units?: mm|cm|m|in|ft (default mm); tolerance?: length expression (default 0.05 mm); → {input, path, bytes, format, converted_bodies}: converts the STL in a temporary design, leaving the open design unchanged

Export STL

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
bodies[names]No
Automation details

Command ID: file.export_stl

Parameters:

path; bodies?: [names] (default: every body; quality?: standard|fine|finest (default standard); chord?: mm, 0.001 to 1000 (instead of quality: the farthest a facet may stand off a curved face, the same for every body; coarser gives fewer triangles); lay_on_print_faces?: bool (default false: as file.export); ascii?: bool (default false: true writes ASCII STL); solids?: body|face (default body; face, with ascii: true only: one named solid per B-rep face, as file.export) → {path, bytes, format, print_faces?, skipped?, warnings?}: STL (binary unless ascii), whatever the path's extension

Export 3MF

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
bodies[names]No
Automation details

Command ID: file.export_3mf

Parameters:

path; bodies?: [names] (default: every body; quality?: standard|fine|finest (default standard); chord?: mm, 0.001 to 1000 (instead of quality: the farthest a facet may stand off a curved face, the same for every body; coarser gives fewer triangles); objects?: body|component (as file.export); lay_on_print_faces?: bool (default false: as file.export) → {path, bytes, format, print_faces?, skipped?, warnings?}: 3MF, whatever the path's extension

Export OBJ

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
bodies[names]No
Automation details

Command ID: file.export_obj

Parameters:

path; bodies?: [names] (default: every body; quality?: standard|fine|finest (default standard); chord?: mm, 0.001 to 1000 (instead of quality: the farthest a facet may stand off a curved face, the same for every body; coarser gives fewer triangles); → {path, bytes, format, files, skipped?, warnings?}: OBJ, with the colours of the bodies in a material library (`.mtl`) next to it

Export URDF

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
mesh_prefixNobefore each mesh file name
place_meshesNodefault false: the meshes next to the .urdf; true: where mesh_prefix points, its folder made
effortNodefault 1000
velocityNodefault 10
qualitystandard|fine|finestNodefault standard: the link meshes, as file.export_stl
mimicNodefault false; true: motion links as <mimic>
imagesboolNodefault false
expand_linkedboolNodefault false: each linked component is one welded link; true: the links, joints, <mimic> links, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the robot, each element named behind its placement path such as Arm_Elbow; a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep stays one welded link, with its reason in report
posecurrent|referenceNodefault current; a URDF has no starting pose, its joints are at their zero, so both give the same file
Automation details

Command ID: file.export_urdf

Parameters:

path; mesh_prefix? (before each mesh file name); place_meshes? (default false: the meshes next to the .urdf; true: where mesh_prefix points, its folder made); effort? (default 1000), velocity? (default 10): for joints with none saved; quality?: standard|fine|finest (default standard: the link meshes, as file.export_stl); chord?: mm, 0.001 to 1000 (instead of quality: the farthest a facet may stand off a curved face, the same for every body; coarser gives fewer triangles); mimic? (default false; true: motion links as <mimic>); images?: bool (default false); expand_linked?: bool (default false: each linked component is one welded link; true: the links, joints, <mimic> links, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the robot, each element named behind its placement path such as Arm_Elbow; a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep stays one welded link, with its reason in report); pose?: current|reference (default current; a URDF has no starting pose, its joints are at their zero, so both give the same file) → {path, format, files, links, joints, warnings, report?: {expanded, skipped, welded} (with expand_linked or pose)}: the whole assembly as a robot, with STL meshes written next to it, or where mesh_prefix points with place_meshes; docs/urdf.md

Export URDF with Options

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
mesh_prefixNobefore each mesh file name
place_meshesNodefault false: the meshes next to the .urdf; true: where mesh_prefix points, its folder made
effortNodefault 1000
velocityNodefault 10
qualitystandard|fine|finestNodefault standard: the link meshes, as file.export_stl
mimicNodefault false; true: motion links as <mimic>
imagesboolNodefault false
expand_linkedboolNodefault false: each linked component is one welded link; true: the links, joints, <mimic> links, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the robot, each element named behind its placement path such as Arm_Elbow; a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep stays one welded link, with its reason in report
posecurrent|referenceNodefault current; a URDF has no starting pose, its joints are at their zero, so both give the same file
Automation details

Command ID: file.export_urdf_options

Parameters:

path; mesh_prefix? (before each mesh file name); place_meshes? (default false: the meshes next to the .urdf; true: where mesh_prefix points, its folder made); effort? (default 1000), velocity? (default 10): for joints with none saved; quality?: standard|fine|finest (default standard: the link meshes, as file.export_stl); chord?: mm, 0.001 to 1000 (instead of quality: the farthest a facet may stand off a curved face, the same for every body; coarser gives fewer triangles); mimic? (default false; true: motion links as <mimic>); images?: bool (default false); expand_linked?: bool (default false: each linked component is one welded link; true: the links, joints, <mimic> links, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the robot, each element named behind its placement path such as Arm_Elbow; a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep stays one welded link, with its reason in report); pose?: current|reference (default current; a URDF has no starting pose, its joints are at their zero, so both give the same file) → {path, format, files, links, joints, warnings, report?: {expanded, skipped, welded} (with expand_linked or pose)}: the whole assembly as a robot, with STL meshes written next to it, or where mesh_prefix points with place_meshes; called from a script or MCP it exports as file.export_urdf does; in the app it opens the export's options (mesh prefix, limits, mimic, where the meshes go) first; docs/urdf.md

Export SDF Model

Read the import and export guide.

ParameterTypeRequiredDescription
paththe model folderYesmade if missing; a `.sdf` ending is dropped
nameNodefault: the folder's name
staticboolNodefault true; false gives the link the bodies' mass and inertia
model_urisboolNodefault false: files named relative to model.sdf; true: model://<name>/<file>
bodies[names]No
Automation details

Command ID: file.export_sdf

Parameters:

path: the model folder (made if missing; a `.sdf` ending is dropped); name? (default: the folder's name); static?: bool (default true; false gives the link the bodies' mass and inertia); model_uris?: bool (default false: files named relative to model.sdf; true: model://<name>/<file>); bodies?: [names] (default: every body; quality?: standard|fine|finest; chord?: mm, 0.001 to 1000 (instead of quality: the farthest a facet may stand off a curved face, the same for every body; coarser gives fewer triangles); kinematics?: bool (default false: one link; true: every link and joint of the assembly with its limits and dynamics, an STL per link, no decals; static then defaults to false; not with bodies); expand_linked?: bool (default false; true: the links, joints, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the model, each element named behind its placement path; implies kinematics; motion links are not written, SDFormat 1.9 has none); pose?: current|reference (with kinematics or expand_linked; default current: the links as the design has them now; reference: every joint at its zero moved into its limits; limits are written relative to the pose) → {path, format, name, files, bodies, decals, warnings, links?, joints?, report?}: a Gazebo model folder with model.config, model.sdf, an STL per body and each shown decal's image on a textured COLLADA quad, the image also the visual's PBR albedo map; docs/sdf.md

Export MJCF

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
expand_linkedboolNodefault false: each linked component is one welded body; true: the bodies, joints, motion-link equality constraints, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the model, each element named behind its placement path; a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep stays one welded body, with its reason in report
posecurrent|referenceNodefault current: each joint at its current value; reference: every joint at its zero moved into its limits, motion links applied
Automation details

Command ID: file.export_mjcf

Parameters:

path; expand_linked?: bool (default false: each linked component is one welded body; true: the bodies, joints, motion-link equality constraints, joint dynamics and mass overrides of the designs linked components name are read, through the folders you may use, and put in the model, each element named behind its placement path; a design that cannot be read, links back to one being expanded or is nested more than 8 levels deep stays one welded body, with its reason in report); pose?: current|reference (default current: each joint at its current value; reference: every joint at its zero moved into its limits, motion links applied) → {path, format, files, bodies, joints, equalities, warnings, report?: {expanded, skipped, welded} (with expand_linked or pose)}: the whole assembly as a MuJoCo model, at its current joint values (or the reference pose), with STL meshes written next to it; docs/mjcf.md

Save As Mesh

Command group: INSERT › FILES

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
formatstl|3mf|3mf-taggedNodefault from the extension, else stl; 3mf-tagged: docs/formats/3mf-face-tags.md
bodies[names]Nodefault: all
asciiboolNoSTL
single_instanceboolNodefault true; see file.send_to_slicer
qualitystandard|fine|finestNoSTL, OBJ and 3MF: how closely the mesh follows curved faces, a chord tolerance of 2e-4, 5e-5 or 1e-5 of each body's size; default standard
objectsbody|componentNo3MF only: one object per body, the default, or one object for each placed component with two or more bodies, with those bodies as its parts, so a slicer loads them as one object with parts
lay_on_print_facesboolNodefault false: each body with a print face (body.print_face) is saved laid on it; a file sent to `slicer` is laid on them whatever this says
Automation details

Command ID: file.save_mesh

Parameters:

path; format?: stl|3mf|3mf-tagged (default from the extension, else stl; 3mf-tagged: docs/formats/3mf-face-tags.md); bodies?: [names] (default: all); ascii?: bool (STL); slicer?: id or name from file.slicers, the program path it lists, or a program the user added under Custom… (send the saved file there, through the same steps as file.send_to_slicer: a slicer that has to be started first is waited for; may be deprecated later in favour of file.send_to_slicer or a Send to App workflow, kept for scripts); single_instance?: bool (default true; see file.send_to_slicer); quality?: standard|fine|finest (STL, OBJ and 3MF: how closely the mesh follows curved faces, a chord tolerance of 2e-4, 5e-5 or 1e-5 of each body's size; default standard); objects?: body|component (3MF only: one object per body, the default, or one object for each placed component with two or more bodies, with those bodies as its parts, so a slicer loads them as one object with parts); lay_on_print_faces?: bool (default false: each body with a print face (body.print_face) is saved laid on it; a file sent to `slicer` is laid on them whatever this says)

Send to Slicer

Command group: INSERT › FILES

Read the import and export guide.

ParameterTypeRequiredDescription
bodies[names]Nodefault: the selected bodies
waitblock|return|noNodefault block: a slicer that drops a file at a cold start is started alone and the call waits up to 10 s for it to be ready, then sends; return: start it and answer {starting}; no: send now
single_instanceboolNodefault true: PrusaSlicer, SuperSlicer and Cura load the file in the window that is open
format3mf|stl|3mf-tagged|stepNodefault 3mf, in millimetres; a 3MF that can't be written goes as STL; step: the bodies as exact B-rep with their colours, which the slicer meshes itself, for slicers that read STEP
Automation details

Command ID: file.send_to_slicer

Parameters:

slicer: id or name from file.slicers, or a program the user added under Custom…; bodies?: [names] (default: the selected bodies); wait?: block|return|no (default block: a slicer that drops a file at a cold start is started alone and the call waits up to 10 s for it to be ready, then sends; return: start it and answer {starting}; no: send now); single_instance?: bool (default true: PrusaSlicer, SuperSlicer and Cura load the file in the window that is open); format?: 3mf|stl|3mf-tagged|step (default 3mf, in millimetres; a 3MF that can't be written goes as STL; step: the bodies as exact B-rep with their colours, which the slicer meshes itself, for slicers that read STEP); name?: the file's name without extension, as the slicer shows it (default: the design's name and a code that tells designs and body selections apart; a given name is used as it is, so two sends under one name share one file; not used with copy_to, whose file is named after the design; refused when it is blank, over 240 bytes, starts or ends with a space or a dot, holds / \ : * ? " < > | or a control character, or is a name Windows keeps for a device, such as CON or NUL); copy_to?: a folder to keep the file in instead (made if missing): it is named after the design with the next free -v<N>, and the reply has `version` and `copy`; copy_overwrite?: bool (default false; with copy_to: one file named after the design, replaced each time) → saves the bodies in this user's slicer folder and opens the file in the slicer. The file name stays the same for the same design and bodies, so sending again replaces it (use the slicer's Reload from disk); with copy_to the slicer opens the file in that folder instead

Open with EasyPrint

Read the import and export guide.

ParameterTypeRequiredDescription
consentboolYesrequired: true only once the user has agreed to upload the model to Printables' servers; it stays there for 30 minutes and opening it needs a Printables sign-in
bodies[names]Nodefault: the selected bodies
format3mf|stlNodefault 3mf, in millimetres
Automation details

Command ID: file.open_in_easyprint

Parameters:

consent: bool (required: true only once the user has agreed to upload the model to Printables' servers; it stays there for 30 minutes and opening it needs a Printables sign-in); bodies?: [names] (default: the selected bodies); format?: 3mf|stl (default 3mf, in millimetres) → uploads the bodies to EasyPrint, Printables' slicer in the browser, and opens it in the browser. 100 MB at most. Works in the desktop app and the browser build; the CLI has no way to upload yet

Installed Slicers

Read the import and export guide.

Automation details

Command ID: file.slicers

Parameters:

→ the slicers found on this machine: [{id, name, program, icon?}]; pass an id, a name or the program path as file.send_to_slicer's or file.save_mesh's `slicer`

Clear Reused Imports

Read the import and export guide.

Automation details

Command ID: file.import_cache_clear

Parameters:

→ removed: number of local cached imports deleted; leaves open designs and remembered stand-up answers unchanged

Copy Design File

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
destinationYes
Automation details

Command ID: file.copy

Parameters:

path, destination; copies the saved design without replacing an existing file; rebases linked designs → {path, destination, warnings?}: warnings reports an incomplete link check

Move Design File

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
destinationYes
Automation details

Command ID: file.move

Parameters:

path, destination; also renames; refuses the current design or its linked files; never replaces an existing file → {path, destination, warnings?}: warnings reports an incomplete link check

Move Design File to Trash

Read the import and export guide.

ParameterTypeRequiredDescription
pathYes
Automation details

Command ID: file.trash

Parameters:

path; refuses the current design or its linked files; system Trash only, never permanent deletion

Design File Locks

Read the import and export guide.

ParameterTypeRequiredDescription
folderpathYesthe lock files directly in it, not in subfolders
prune_staleboolNodefault false; true deletes the stale locks only, never a live one or one that can't be judged
Automation details

Command ID: file.locks

Parameters:

folder: path (the lock files directly in it, not in subfolders); prune_stale?: bool (default false; true deletes the stale locks only, never a live one or one that can't be judged) → locks: [{path, design, status: live|stale|unknown, reason? (expired|dead_process|recycled_pid), note?, owner?: {host, user, app, pid, exe?, started?, opened, refreshed}, pruned?, prune_error?}], truncated?, pruned? (a count, with prune_stale)

PCB Files

Read the import and export guide.

Automation details

Command ID: file.gerber_files

Parameters:

path: a board's files as one: a zip, a folder, or any file in the board's folder → {source, files: [{name, role: outline | drill | top_copper | bottom_copper | top_mask | bottom_mask | top_silk | bottom_silk | other}], thickness?: mm, finish?: hasl | enig, name, warnings}: what file.insert_gerber with this `set` would use; nothing changes

Export Current View as DXF

Read the import and export guide.

ParameterTypeRequiredDescription
cameraCameraYescurrent view
hiddenomit|dashedNodefault omit
tolerance0.0001..1 mmNocurve chord tolerance, default 0.01
curveslines|arcsNolines, default, writes the short lines the view is built from; arcs writes visible circles and arcs as CIRCLE and ARC
zerotarget|originNowhere the drawing's 0,0 is: the camera target, default, or the model origin as seen from the camera
section[{origin, normal}]Noup to 6 planes the view is cut with, the normal side left out, the cut faces' outlines drawn; default the session's Section Analysis, [] draws bodies whole
path.dxf fileNoelse returns dxf text
Automation details

Command ID: file.export_view_dxf

Parameters:

camera: Camera (current view); hidden?: omit|dashed (default omit); tolerance?: 0.0001..1 mm (curve chord tolerance, default 0.01); curves?: lines|arcs (lines, default, writes the short lines the view is built from; arcs writes visible circles and arcs as CIRCLE and ARC); zero?: target|origin (where the drawing's 0,0 is: the camera target, default, or the model origin as seen from the camera); section?: [{origin, normal}] (up to 6 planes the view is cut with, the normal side left out, the cut faces' outlines drawn; default the session's Section Analysis, [] draws bodies whole); path?: .dxf file (else returns dxf text). Visible placed bodies and shown sketches' profile curves (no construction geometry, points, dimensions or constraints); 2D LINE/LWPOLYLINE entities on VISIBLE/HIDDEN layers (sketch curves on SKETCH), mm; finished sketches are hidden behind bodies, the active sketch is drawn on top; perspective projected onto the camera target plane; no viewport crop or overlays.

Other commands: model

Read Body Mesh

ParameterTypeRequiredDescription
bodyfinite positive chord tolerance in mmYes
tolerancefinite positive chord tolerance in mmNodefault 0.05
Automation details

Command ID: model.mesh

Parameters:

body, tolerance?: finite positive chord tolerance in mm (default 0.05); evaluated component-local mesh, corners at the same point shared, at most 8192 vertices and 16384 triangles; no files or model changes

List Edges

ParameterTypeRequiredDescription
bodynameYes
Automation details

Command ID: model.edges

Parameters:

body: name

List Faces

ParameterTypeRequiredDescription
bodynameYes
Automation details

Command ID: model.faces

Parameters:

body: name → per face: index, name (what face.delete, sheet.convert `face`, solid.shell … take in place of a point), exact, area, centroid (not always on the face), plane_normal, point (a point on the face that picks it), cylinder? ({origin, axis, radius} of a cylindrical face), surface_type (plane|cylinder|cone|sphere|torus|spline|other), cone? ({apex, axis, half_angle_deg}), sphere? ({center, radius}), torus? ({center, axis, major, minor})

List Threads

Automation details

Command ID: model.threads

No parameter description is provided by the command registry.

List Body Features

ParameterTypeRequiredDescription
bodynameNoa placed copy's name means the body it shows; default every body
Automation details

Command ID: model.body_features

Parameters:

body?: name (a placed copy's name means the body it shows; default every body) → bodies: [{body, features: [{id, name}]}], in timeline order the feature that created each body, every later one that changed it, and those of bodies consumed into it. Read-only

Other commands: plugin

Check Plugin

ParameterTypeRequiredDescription
pathplugin package folder or .zipYes
Automation details

Command ID: plugin.check

Parameters:

path: plugin package folder or .zip; checks it as Install and a call would (manifest, size limits, permissions, the component's WIT world and version) and lists each problem with how to fix it; runs no plugin code and installs nothing

Edit Plugin Operation

ParameterTypeRequiredDescription
pluginopen the normal form through ui.startYes
entryopen the normal form through ui.startYes
paramsopen the normal form through ui.startYes
Automation details

Command ID: plugin.edit

Parameters:

plugin, entry, params: open the normal form through ui.start; scripts and MCP receive interactive_required; call the entry with params instead

Plugin Approvals

Automation details

Command ID: plugin.grants

Parameters:

What the user approved for each plugin (command groups, folders, memory, input_folder), the package each approval is bound to and its status: current, changed (install and approve again), not_installed or unreadable; runs no plugin code

Inspect Plugin

ParameterTypeRequiredDescription
pathplugin package folderYes
Automation details

Command ID: plugin.inspect

Parameters:

path: plugin package folder; returns inert manifest and approval hash covering manifest and component; runs no plugin code

Install Plugin

ParameterTypeRequiredDescription
repositoryGitHub owner/repo to preserve for an update installed from a local pathNo
approvalexact hash from a reviewed dry runNomismatch refuses installation
archiveexact .zip hash from that dry runNoany changed file refuses installation
replaceboolNorequired to replace an installed plugin of the same id
dry_runboolNo
approve{command_groups, folders: [{name, path, read, write}], fuel?: exactly the manifest's limits.fuel, at most 10000000000000, memory_mib?: exactly the manifest's limits.memory_mib, allowed above the user's ceiling for this package, input_folder?: bool, only for an importer that asks for it}No
Automation details

Command ID: plugin.install

Parameters:

path?: plugin .zip, url?: owner/repo[@ref], or an HTTPS repository or release URL on github.com (exactly one of path/url); URL installs require both hashes from a reviewed dry run; repository?: GitHub owner/repo to preserve for an update installed from a local path; approval?: exact hash from a reviewed dry run (mismatch refuses installation), archive?: exact .zip hash from that dry run (any changed file refuses installation), replace?: bool (required to replace an installed plugin of the same id), dry_run?: bool, approve?: {command_groups, folders: [{name, path, read, write}], fuel?: exactly the manifest's limits.fuel, at most 10000000000000, memory_mib?: exactly the manifest's limits.memory_mib, allowed above the user's ceiling for this package, input_folder?: bool, only for an importer that asks for it}; validates requested approvals and checks the .zip (one plugin, safe paths, size caps, manifest) and unpacks it into the plugins folder; runs no plugin code

List Plugins

Automation details

Command ID: plugin.list

Parameters:

List inspected and installed plugin manifests, namespaced entries, declared effects and input schemas; no plugin code runs

Precompile Plugin

ParameterTypeRequiredDescription
pluginname or id of an installed pluginYes
Automation details

Command ID: plugin.precompile

Parameters:

plugin: name or id of an installed plugin; synchronously compile into the plugin cache without executing guest code

Plugin Preview

Automation details

Command ID: plugin.preview

Parameters:

No parameters. For a plugin's own code: preview is true while a plugin dialog's live preview runs the entry on a scratch design that is thrown away, so the entry can leave out detail the preview does not need (small holes, fastener models); false in a run whose result is kept. Needs no command group

Remove Plugin

ParameterTypeRequiredDescription
idinstalled plugin idYes
remove_user_dataoptional boolYesomitted or false keeps per-user settings, true deletes them too
Automation details

Command ID: plugin.remove

Parameters:

id: installed plugin id, remove_user_data: optional bool (omitted or false keeps per-user settings, true deletes them too); removes its folder and stored grants without executing code or prompting

Revoke Plugin Approvals

ParameterTypeRequiredDescription
idplugin idYes
Automation details

Command ID: plugin.revoke

Parameters:

id: plugin id; takes back everything approved for it and keeps it installed: it runs with nothing granted until it is installed again with approvals

Run Plugin

ParameterTypeRequiredDescription
pathYes
approvalexact hash from plugin.inspect after reviewing permissionsYes
entryYes
paramsJSONNo
ui_eventexplicit typed panel actionNo
expected_design{document_id, revision}Norefuse stale edits with both expected and actual tokens
namedboolNorefusals name the missing grant and how to approve it
Automation details

Command ID: plugin.run

Parameters:

path, approval: exact hash from plugin.inspect after reviewing permissions, entry, params?: JSON, ui_event?: explicit typed panel action, expected_design?: {document_id, revision} (refuse stale edits with both expected and actual tokens), named?: bool (refusals name the missing grant and how to approve it); explicit native Wasm component execution, one undo step; errors discard all edits

List Plugin Tools

Automation details

Command ID: plugin.tools

Parameters:

name?: one tool, <plugin>.<entry>; every installed, enabled plugin's entries as tools for agents: name, kind (command, exporter or importer), the plugin's name, version and description, effect and strict input schema, and with name a command entry's approval hash; no plugin code runs

Other commands: storage

Read Plugin Data

ParameterTypeRequiredDescription
pluginplugin idNorequired outside a plugin's run; a plugin reads only its own
Automation details

Command ID: storage.get

Parameters:

plugin?: plugin id (required outside a plugin's run; a plugin reads only its own) → name, plugin_version, format (null: none), plugin_format, read_only, document (main JSON or null), blobs: [{name, cache, bytes}]. A plugin reads a document larger than its 1 MiB result, and its files' bytes, through the storage interface (get-document, get-blob), as bytes

Set Plugin Data

Automation details

Command ID: storage.set

Parameters:

document: any JSON, at most 16 MiB → replaces the running plugin's main document in the design, saved in its data_format; only from a plugin's own run; one undoable edit

Patch Plugin Data

ParameterTypeRequiredDescription
patchan RFC 7396 merge patchYes
Automation details

Command ID: storage.patch

Parameters:

patch: an RFC 7396 merge patch → applied to the running plugin's main document; only from a plugin's own run; one undoable edit

Delete Plugin File

ParameterTypeRequiredDescription
nameYes
Automation details

Command ID: storage.delete_blob

Parameters:

name → deletes one of the running plugin's files in the design; only from a plugin's own run; one undoable edit

List Plugin Data

Automation details

Command ID: storage.list

Parameters:

→ plugins: [{plugin, name, plugin_version, format, installed_version?, status: ready|migrate|missing|disabled|older, read_only, bytes}], the plugins that keep data in the open design; reads plugin manifests, runs no plugin code

Other commands: sheet

Bead

ParameterTypeRequiredDescription
depthexprYes
widthexprYeson the side it stands out of, width between the flanks' virtual sharps
angleexprNoflanks, default 45 deg
crown_widthexprNo
base_radiusexprNo
crown_radiusexprNoinner, default: the rule's bend radius
end_lengthexprNoeach end's ramp, default 3 x depth
marginexprNowarns nearer than this to edges, cut-outs, bends and beads; default 3 x thickness
shapetrapezoidNo
flipboolNoout of the other face
Automation details

Command ID: sheet.bead

Parameters:

sketch? (default: active or last sketch) + curves: straight sketch lines on a face of a planar panel of a sheet, one bead along each (its ends where the end ramps meet the face); depth, width: expr (on the side it stands out of, width between the flanks' virtual sharps); angle?: expr (flanks, default 45 deg) | crown_width?: expr; base_radius?, crown_radius?: expr (inner, default: the rule's bend radius); end_length?: expr (each end's ramp, default 3 x depth); margin?: expr (warns nearer than this to edges, cut-outs, bends and beads; default 3 x thickness); shape?: trapezoid; flip?: bool (out of the other face); body? (default: the one sheet whose planar panel the first centreline lies on) - formed beads (stiffening ribs) that keep the sheet's thickness: in the folded solid, listed in the flat pattern (beads) and drawn in the DXF (FORM_UP / FORM_DOWN); the flat blank stays flat

Measure Sheet Metal Body

ParameterTypeRequiredDescription
bodyYes
faceNoas sheet.recognize
Automation details

Command ID: sheet.measure_body

Parameters:

body; face? (as sheet.recognize) → thickness_mm (the body's own), bend_radii_mm (the inside radius of each bend modelled with its radius) and surface (a point on a face of the side that is the sheet's surface); a body of no one even thickness is refused, naming its thicknesses

Sheet Metal Standard Library

ParameterTypeRequiredDescription
materialNo
Automation details

Command ID: sheet.rule_library

Parameters:

material? → the standard library: common materials in standard gauges, each with its thickness (expression and mm), the gauge's chart, the material's hardness for the generic K-factor chart, its published minimum inside radius where there is one, and the ids of the published tables they come from (sources). The working radius is the tooling's. sheet.manage_rules {name, material, gauge} makes a rule of one

List Sheet Metal Rules

Automation details

Command ID: sheet.rules

Parameters:

→ rules with their expressions and values, and the active one

Export Flat Pattern as DXF

Automation details

Command ID: sheet.export_dxf

Parameters:

body?, path?, units?: mm|inches (default mm: the drawing in millimetres, $INSUNITS 4; inches: every coordinate, radius and text height in inches, $INSUNITS 1, $MEASUREMENT 0, the bend notes' radii and the pocket layers' depths in inches too), curves?: exact|arcs (default exact: an ellipse as ELLIPSE, splines, text outlines and other Béziers as SPLINE; arcs: tangent arcs and lines within 0.001 mm, for machines that read only those), text?: cut|etch (default cut: letters that text cut through the sheet are cut contours on layer TEXT; etch: single contours on layer ETCH and the sheet keeps its material there; text machined to a depth is always on ETCH), bend_notes?: bool (default false: a note beside each bend line on layer BEND_NOTES, `B1 UP 90° R1`, its angle the included angle when the body's rule has angle_display: included), note_height?: mm (default 3), hardware_notes?: bool (default false: the file is the sheet and its mounting holes, with no mention of the press-in hardware; true: a note beside each press-in hardware hole on layer HARDWARE, `M3 nut`, as high as note_height, with layers: roles), bend_lines?: bool (default true; false leaves BEND_UP and BEND_DOWN out, for a cutter that would cut them), markings?: bool (default true; false leaves the letter contours on TEXT/ETCH and the bend notes out, for a cutter that would etch them), layers?: roles|single (default roles, the layers below; single: every entity on layer 0), profile?: a DXF profile file's path, or the profile as an object (which layer, colour and linetype each role is written with, and the roles left out; docs/formats/dxf-profiles.md; default: the layers below; not with layers: single), per_body?: bool (a file for every sheet body, `<path>-<body>.dxf`, or their DXF texts without a path → files: [{body, path | dxf, bends}]; not with `body`) → DXF (AutoCAD 2000, in `units`): layers OUTLINE (the outer contour), CUT (what is cut out inside it), TEXT or ETCH (letters), BEND_UP and BEND_DOWN (dashed centre lines), BEND_NOTES, POCKET_<BOTTOM|TOP|INTERNAL>_Z<from>_TO_<to>_MM (one per side and depth, named in `_IN` with their inches in an inches drawing), PERFORATION, and FORM_UP and FORM_DOWN (a bead's dashed centreline and footprint, its note `BEAD UP D2 W10` on BEND_NOTES), and HARDWARE (only with hardware_notes: true and layers: roles); inner contours come before the outline

Export Bend Table

ParameterTypeRequiredDescription
bodyNo
formatcsv|jsonNodefault csv
pathNo
Automation details

Command ID: sheet.export_bend_table

Parameters:

body?, format?: csv|json (default csv), path? → bend table in mm and degrees, including rule and flat centre-line coordinates; angle_deg is the bend angle and included_angle_deg the angle left between the bend's sides (180° less it); a bend that cut-outs split has a row for each piece

Other commands: plastic

List Plastic Rules

Automation details

Command ID: plastic.rules

Parameters:

→ rules with their expressions and values, the active rule and the rules assigned to bodies

Other commands: frame

Cope Round Tube

ParameterTypeRequiredDescription
memberround-tube frame memberYes
tools1..16 distinct straight round-tube members in the same componentYesa mate already coped at its ends is allowed when this joint is clear of those copes
undoableYes
Automation details

Command ID: frame.cope

Parameters:

member: round-tube frame member; tools: 1..16 distinct straight round-tube members in the same component (a mate already coped at its ends is allowed when this joint is clear of those copes); end: start|end (original path). Retained cut to mating outside cylinders, filling their bores for the cut. Axes must meet the endpoint, mate OD >= member OD; joint sine >= 0.001. Refuses cap/bend interference or other body edits. name?: feature name. Edit with timeline.redefine; undoable; follows upstream edits and body renames.

Export Cope Template as DXF

ParameterTypeRequiredDescription
memberretained round-tube memberYes
endstart|endYes
seamangle expressionNodefault 0, relative to terminal x
tolerance0.001..1 mmNodefault 0.01, bounded flat/wrapped interpolation error
Automation details

Command ID: frame.export_cope_dxf

Parameters:

member: retained round-tube member; end: start|end; seam?: angle expression (default 0, relative to terminal x); tolerance?: 0.001..1 mm (default 0.01, bounded flat/wrapped interpolation error); path?: DXF destination (scoped write, otherwise dxf text). 1:1 mm, outer circumference; positive station into surviving stock from original endpoint; right-hand wrap about that inward axis. Open profile with both seam copies; datum, member/end labels and 100 mm scale check. At most 65536 segments; increase tolerance if refused. Returns physical datum, profile and drawing metadata. Does not alter the design.

Profile Library

Automation details

Command ID: frame.profile.list

Parameters:

family?: RSC|PFC|RSA|SHS|RHS|CHS (list only that family's sizes). Returns kinds: [{kind, label, required, optional, example}]: the built-in profiles, each SolidCraft's own parametric definition; and sizes: [{family, kind, standard, source, names, additional?}]: the standard steel sizes by name, each family with the published table its dimensions come from (frame.profile.properties with {profile: {size}} gives a size's dimensions and section)

Profile Properties

ParameterTypeRequiredDescription
profile{kind: bar|round_bar|rect_tube|round_tube|angle|channel|i_beam, …its dimensions: each a number in the design's units or a length expression over its parameters ("tube_wall", "2 in"); a channel's flange_slope is an angle (a number of degrees)}| {size: a standard steel size by name, such as "RSC 203x89", "PFC 200x90x30", "RSA 50x50x5", "SHS 100x100x5", "RHS 200x100x6.3" or "CHS 42.4x3.2" (frame.profile.list lists them), alone: it brings its dimensions}Yesframe.profile.list gives each kind's dimensions and an example; dimensions left out take defaults from the profile's size
Automation details

Command ID: frame.profile.properties

Parameters:

profile: {kind: bar|round_bar|rect_tube|round_tube|angle|channel|i_beam, …its dimensions: each a number in the design's units or a length expression over its parameters ("tube_wall", "2 in"); a channel's flange_slope is an angle (a number of degrees)} (frame.profile.list gives each kind's dimensions and an example; dimensions left out take defaults from the profile's size) | {size: a standard steel size by name, such as "RSC 203x89", "PFC 200x90x30", "RSA 50x50x5", "SHS 100x100x5", "RHS 200x100x6.3" or "CHS 42.4x3.2" (frame.profile.list lists them), alone: it brings its dimensions}; density?: kg/m³ (adds mass_per_m, kg/m). Returns profile (every default filled in), area (mm²), centroid [x,y] (mm, from the bounding box centre), ixx, iyy, ixy (mm⁴ about the centroid), width, height

Insert Profile

ParameterTypeRequiredDescription
profile{kind: bar|round_bar|rect_tube|round_tube|angle|channel|i_beam, …its dimensions: each a number in the design's units or a length expression over its parameters ("tube_wall", "2 in"); a channel's flange_slope is an angle (a number of degrees)}| {size: a standard steel size by name, such as "RSC 203x89", "PFC 200x90x30", "RSA 50x50x5", "SHS 100x100x5", "RHS 200x100x6.3" or "CHS 42.4x3.2" (frame.profile.list lists them), alone: it brings its dimensions}Yesframe.profile.list gives each kind's dimensions and an example; dimensions left out take defaults from the profile's size
at[x,y]Nosketch mm, default the origin
anchororigin|center|centroid|top_left|top|top_right|left|right|bottom_left|bottom|bottom_rightNothe profile point placed on `at`: its origin, the default and a built-in profile's centre, its bounding box's centre, its centroid, or a corner or edge middle of its bounding box
fixedboolNodefault true: the curves are locked, so solving the sketch keeps the shape
sketchid|nameNodefault: the sketch being edited
Automation details

Command ID: frame.profile.insert

Parameters:

profile: {kind: bar|round_bar|rect_tube|round_tube|angle|channel|i_beam, …its dimensions: each a number in the design's units or a length expression over its parameters ("tube_wall", "2 in"); a channel's flange_slope is an angle (a number of degrees)} (frame.profile.list gives each kind's dimensions and an example; dimensions left out take defaults from the profile's size) | {size: a standard steel size by name, such as "RSC 203x89", "PFC 200x90x30", "RSA 50x50x5", "SHS 100x100x5", "RHS 200x100x6.3" or "CHS 42.4x3.2" (frame.profile.list lists them), alone: it brings its dimensions}; at?: [x,y] (sketch mm, default the origin); anchor?: origin|center|centroid|top_left|top|top_right|left|right|bottom_left|bottom|bottom_right (the profile point placed on `at`: its origin, the default and a built-in profile's centre, its bounding box's centre, its centroid, or a corner or edge middle of its bounding box); angle?: radians, counter-clockwise; fixed?: bool (default true: the curves are locked, so solving the sketch keeps the shape); sketch?: id|name (default: the sketch being edited). Returns the section as frame.profile.properties does. Returns created: {points, curves, constraints, dimensions}: the ids of what it added (stable and never reused: usable right away in sketch.dimension, sketch.constraint.*, sketch.delete…)

Remove Tube

Automation details

Command ID: frame.remove_member

Parameters:

members: [{feature: id|name, line: the tube's line or pair id}] (1…1000, all of one Frame Member). Takes those tubes out as one undo step: a pair goes from the feature's pairs, a sketch line from its lines (the line stays in its sketch; a feature on every line of its sketch lists the others from then on), and the corner overrides that name a tube taken out go too. Taking out the last tube deletes the Frame Member. Returns the edited feature as frame.member does, or {deleted: the feature's name}

Multi-Trim Corner

ParameterTypeRequiredDescription
featurethe Frame MemberYesid or name
members[2 to 1000 line or pair ids, or {feature?: the frame's own name, line}]Yesa corner, crossing or overlap of the frame, the members in order: the first runs through a butt, or stays whole at a crossing or overlap, and of three or more the first two make the corner
kindauto|none|mitre|buttNodefault auto: the frame's own type, with this order
flipboolNothe first two in the order today's rules give them, swapped; without it the members are saved as given
gaplength exprNothis corner's weld gap, 0…1000 mm; default the frame's; an overlap takes none
Automation details

Command ID: frame.multi_trim

Parameters:

feature: the Frame Member (id or name); members: [2 to 1000 line or pair ids, or {feature?: the frame's own name, line}] (a corner, crossing or overlap of the frame, the members in order: the first runs through a butt, or stays whole at a crossing or overlap, and of three or more the first two make the corner); kind?: auto|none|mitre|butt (default auto: the frame's own type, with this order); flip?: bool (the first two in the order today's rules give them, swapped; without it the members are saved as given); gap?: length expr (this corner's weld gap, 0…1000 mm; default the frame's; an overlap takes none); remove?: bool (take the override of these members away, back to the frame's own rules; no kind, flip or gap with it). Replaces the override of the same members (any order) or adds one, as one undo step; the frame stays one timeline entry. Returns the edited feature as frame.member does

Other commands: form

Match Form Boundary

ParameterTypeRequiredDescription
edgea free Form boundary edgeYes
tolerancefitted CAD mmNo.01
Automation details

Command ID: form.prototype.match

Parameters:

body and exactly one of face or closed edges; edge: a free Form boundary edge; order?:0,1,2. Match exact CAD support with persistent references. Tolerances: position_mm?.001, tangent_deg?.1, curvature_relative?.01; tolerance?: fitted CAD mm (.01).

Unweld Form

ParameterTypeRequiredDescription
edgesone separating interior seamYes
separatetrueNo
Automation details

Command ID: form.prototype.unweld

Parameters:

edges: one separating interior seam; separate?: true; name?. Refined Unweld retains both source hierarchies and requires separate Forms. Base cages may stay in one disjoint Form. Finish publishes both pieces; Cancel restores the source.

Weld Forms

ParameterTypeRequiredDescription
other{kind:draft,part} or {kind:feature,feature}Yes
Automation details

Command ID: form.prototype.weld

Parameters:

other: {kind:draft,part} or {kind:feature,feature}; first_edge,second_edge. Identify equal free openings, opposite winding, midpoint controls, maximum sharpness. The second object is consumed only on Finish; Cancel and undo restore it.

Weld Refined Forms

ParameterTypeRequiredDescription
featurestwo saved independent Form feature IDsYes
Automation details

Command ID: form.refined_weld

Parameters:

features: two saved independent Form feature IDs; edges?: one directed free logical edge per Form, omit to align the only two openings; name?. Adds one qualified seam retaining both editable sources.

Remove Refined Form Weld

ParameterTypeRequiredDescription
featurerefined Weld feature IDYes
Automation details

Command ID: form.refined_weld.remove

Parameters:

feature: refined Weld feature ID. Removes the seam as one undoable edit and restores both source bodies when the result has no dependent features.

Place Form

ParameterTypeRequiredDescription
matrixproper rigid column-major 4x4 relative world transformYes
Automation details

Command ID: form.prototype.transform

Parameters:

matrix: proper rigid column-major 4x4 relative world transform; checkpoint?: true. Changes placement while retaining local controls, hierarchy and symmetry.

Preview Form Tool

Automation details

Command ID: form.prototype.tool.begin

Parameters:

Start an isolated tool preview. Apply keeps one action; Cancel restores source, undo and redo exactly.

Update Form Tool Preview

Automation details

Command ID: form.prototype.tool.preview

Parameters:

Exactly one of topology or project: typed parameters of that Form command. Every update starts from the original tool source.

Apply Form Tool

Automation details

Command ID: form.prototype.tool.apply

No parameter description is provided by the command registry.

Cancel Form Tool

Automation details

Command ID: form.prototype.tool.cancel

No parameter description is provided by the command registry.

Insert Form Edge Loop

Automation details

Command ID: form.prototype.insert_loop

Parameters:

Use edge: [a,b] and fraction?: interior 0..1 (0.5), or face: active hierarchical leaf and axis: U=0/V=1 for its midpoint. tolerance?: hierarchical CAD fit tolerance in mm. Insert an edge ring or open strip. Compatible mirrored strips retain source details. Mixed-depth cuts follow exact aligned stations and existing fine seams; arbitrary mixed-depth fractions and conflicting mirror cuts remain unsupported.

Refine Form Faces

ParameterTypeRequiredDescription
facesactive logical IDsYes
Automation details

Command ID: form.prototype.refine

Parameters:

faces: active logical IDs; counts?: [U,V], powers of two 1..16. Shape-preserving local leaves over nested uniform evaluation and sparse hierarchical detail.

Insert Form Edge

ParameterTypeRequiredDescription
faceactive logical IDYes
axis0Nosplit U
Automation details

Command ID: form.prototype.insert_edge

Parameters:

face: active logical ID; axis?: 0 (split U) or 1 (split V). Insert a local dyadic seam without changing the limit surface.

Insert Form Points

Automation details

Command ID: form.prototype.insert_points

Parameters:

points: [{edge:[a,b],fraction:0..1}], ordered chain on opposite logical face sides. Fractions start at the lower vertex ID on exact fitted CAD source curves, not arc length. tolerance?: active/saved Finish tolerance (0.01 mm). One undoable topology edit.

Extrude Form by Dragging

ParameterTypeRequiredDescription
displacement[x,y,z] mmYes
checkpointtrueNo
surfacefalseNo
Automation details

Command ID: form.prototype.extrude_drag

Parameters:

faces? or boundary edges?; displacement:[x,y,z] mm; checkpoint?:true; surface?:false. Surface mode targets the original evaluated cap points plus displacement; the default moves raw cap controls. Later gesture frames use false and displacement from the original source. One undo step.

Straighten or Flatten Form

ParameterTypeRequiredDescription
toolstraighten|flattenYes
verticesdistinct indicesYes
pointssurface|controlNo
directionline direction or plane normalNo
originmmNo
Automation details

Command ID: form.prototype.project

Parameters:

tool: straighten|flatten; vertices: distinct indices; points?: surface|control; direction?: line direction or plane normal; origin?: mm. Omitted direction uses least-squares fitting; omitted origin uses the centroid. One undoable edit, no reference association.

Form Symmetry

Automation details

Command ID: form.prototype.symmetry

Parameters:

axis?: 0 (YZ), 1 (XZ), 2 (XY), or null to disable. Stable mirrored point partners are saved with the Form.

Form Parameters

ParameterTypeRequiredDescription
dimensions[x,y,z] mmNo
segments[x,y,z]No
radii[major,minor] or [outer,inner]No
path[[x,y,z]] mmNo
tolerancefitting/qualification mmNoFinish tolerance by default
Automation details

Command ID: form.prototype.parameters

Parameters:

dimensions?: [x,y,z] mm; segments?: [x,y,z]; radii?: [major,minor] or [outer,inner]; path?: [[x,y,z]] mm. Dimension changes preserve sculpted controls and target exact local CAD extents; tolerance?: fitting/qualification mm (Finish tolerance by default). Topology changes currently require an unedited primitive.

Edit Form Topology

ParameterTypeRequiredDescription
toolextrude_faces|extrude_edges|delete_faces|dissolve|erase_and_fill|fill_hole|bridge|weld|unweld|thicken|subdivide|crease|uncreaseYes
Automation details

Command ID: form.prototype.topology

Parameters:

tool: extrude_faces|extrude_edges|delete_faces|dissolve|erase_and_fill|fill_hole|bridge|weld|unweld|thicken|subdivide|crease|uncrease; faces?, edges?, vertices?, displacement?, distance?. Crease uses distance as sharpness 0..10. Refined Fill accepts fill_mode: automatic|single|new_cap. Delete a derived cap by its sole face ID. Refined Fill, Erase and Fill and cap deletion accept tolerance? in mm. Atomic validated topology edit.

Finish Form

ParameterTypeRequiredDescription
tolerancemmNo
operationnew|join|cut|intersectNo
targetsbody namesNo
Automation details

Command ID: form.prototype.commit

Parameters:

tolerance?: mm; operation?: new|join|cut|intersect; targets?: body names; name?. Uses staged Finish options when omitted. Fit and sew CAD patches and save the editable Form feature.

Check Form CAD

Automation details

Command ID: form.prototype.validate

Parameters:

tolerance?: active/saved Finish tolerance, 0.01 mm by default. Read-only checks of the active fitted Form before Finish booleans; staged Forms are counted but not checked. Reports sampled-fit metrics, conversion stage, shape kind, and separate record/SMLib passed, failed, not-supported or not-run coverage. Does not change Finish acceptance policy.

Form Finish Options

ParameterTypeRequiredDescription
toleranceCAD fitting expression in mmNo
operationnew|join|cut|intersectNo
Automation details

Command ID: form.prototype.finish_options

Parameters:

tolerance?: CAD fitting expression in mm; operation?: new|join|cut|intersect. Stages output settings in the active Form without committing it.

Repair Form Support

ParameterTypeRequiredDescription
featuresaved associated Form idYes
Automation details

Command ID: form.repair

Parameters:

feature: saved associated Form id. Explicitly open structurally valid retained source after support resolution fails; ordinary edit stays strict. Reattach through a qualified tool preview and Apply, or Cancel; unresolved source cannot Finish.

Edit Form

ParameterTypeRequiredDescription
featureForm feature idYes
Automation details

Command ID: form.edit

Parameters:

feature: Form feature id. Enter an editable session without changing its saved CAD result until Finish Form.

Pull Form Surface

ParameterTypeRequiredDescription
verticeslogical indicesYes
positionsevaluated surface positions in mmYes
checkpointtrueNo
Automation details

Command ID: form.prototype.set_surface_vertices

Parameters:

vertices: logical indices; positions: evaluated surface positions in mm; checkpoint?: true. Solves the inverse subdivision response.

Pull Form Vertices

ParameterTypeRequiredDescription
vertices[indices]Yes
positions[[x,y,z]] in mmYes
Automation details

Command ID: form.prototype.set_vertices

Parameters:

vertices: [indices]; positions: [[x,y,z]] in mm; checkpoint?: true. First frame of a drag checkpoints, later frames use false.

Form Preview Quality

ParameterTypeRequiredDescription
levels0..4Yes
Automation details

Command ID: form.prototype.quality

Parameters:

levels: 0..4; changes preview refinement without changing the cage.

Undo Form Edit

Automation details

Command ID: form.prototype.undo

No parameter description is provided by the command registry.

Redo Form Edit

Automation details

Command ID: form.prototype.redo

No parameter description is provided by the command registry.

Inspect Form

Automation details

Command ID: form.prototype.inspect

No parameter description is provided by the command registry.

Cancel Form

Automation details

Command ID: form.prototype.close

No parameter description is provided by the command registry.

Other commands: weld

Delete Weld

ParameterTypeRequiredDescription
idweld graphic identityYes
Automation details

Command ID: weld.delete

Parameters:

id: weld graphic identity → deleted

Other commands: component

Cycle Component Color

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameYes
Automation details

Command ID: component.cycle_color

Parameters:

component: id or name; saves the next identification colour and turns Component Colors on; shared by every instance, separate from appearances

Hide Component History

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameYes
Automation details

Command ID: component.hide_history

Parameters:

component: id or name; keeps the component's features in the design but leaves them out of the History bar (#10393)

Show Component History

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameYes
Automation details

Command ID: component.show_history

Parameters:

component: id or name; puts a component's features back in the History bar after Hide Component History (#10393)

Create Components from Bodies

Read the components and joints guide.

ParameterTypeRequiredDescription
bodies[names]Yes
Automation details

Command ID: component.from_bodies

Parameters:

bodies: [names] → one new component per body, named after it

Activate Component

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameYes0 or "root" for the design
occurrenceexact placement used to author shared geometryNo
pathexact placement used to author shared geometryNo
Automation details

Command ID: component.activate

Parameters:

component: id or name (0 or "root" for the design); occurrence?, path?: exact placement used to author shared geometry

Activate Parent

Read the components and joints guide.

Automation details

Command ID: component.activate.parent

Parameters:

no parameters → active: activates the parent of the active component, at the placement the active one sits in (one level up a call; the design at the top); refused while the design itself is active

Edit in Place

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or name of a linked componentYes
pathits placementNooccurrence ids, default its first
Automation details

Command ID: component.edit_in_place

Parameters:

component: id or name of a linked component; path?: its placement (occurrence ids, default its first) → in the app window: open the design it links in a tab of its own with the assembly drawn around it (component.finish_edit goes back); fails when it is not linked, the assembly has no file yet, something is open or running in it, or the file is missing, on a network location not allowed yet or open in another SolidCraft; asked during the agent's turn it opens once the turn ends (queued: true); elsewhere it only checks

Finish Edit

Read the components and joints guide.

Automation details

Command ID: component.finish_edit

Parameters:

no parameters → in the app window: go back from the linked design edited in place to its assembly, which reads it again; fails while the design has unsaved changes (run file.save first) or something is open in it; asked during the agent's turn it finishes once the turn ends (queued: true); elsewhere nothing changes

List Components

Read the components and joints guide.

ParameterTypeRequiredDescription
compactboolNocounts of bodies, features, sketches and construction planes instead of their names; occurrences leave out identity transforms; children as occurrence ids
Automation details

Command ID: component.list

Parameters:

compact?: bool (counts of bodies, features, sketches and construction planes instead of their names; occurrences leave out identity transforms; children as occurrence ids); bodies?: bool (with compact: body names, not their count). An occurrence's transform is a column-major 4×4 (m[column][row]) with the translation in the last column. occurrence.move's matrix is that same placement row by row: three rows, the translation in the last column of each

Component Physical Properties

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameNodefault active
descendantsboolNodefault true
Automation details

Command ID: component.properties

Parameters:

component?: id or name (default active); descendants?: bool (default true); about?: [x, y, z] (mm). Measures the first placement, or all placements for root, including pending moves; material-aware mass and center of mass in world coordinates; volume, density, mass, center of mass and inertia_g_mm2 (the inertia tensor about the body's center of mass, world axes, from its tessellation) only for closed, consistently oriented bodies; total.open_bodies_skipped counts open bodies excluded from volume/mass totals; a body the kernel cannot measure (degenerate or zero volume) is left out and named in unmeasured_bodies and warnings; when a closed body's mesh does not close, total.inertia_g_mm2 stays null and total.partial_inertia_g_mm2 (the other bodies, about the same centre) and total.inertia_omitted_bodies appear; total.first_moment_g_mm (mass × center of mass), inertia_g_mm2 about the total center of mass, principal_moments_g_mm2 (smallest first) and principal_axes (unit, right-handed); with about, total.inertia_about {point, inertia_g_mm2}. A placement inside it that counts as a reference (its occurrence's bom_type, else its component's) adds nothing, nor does anything inside that; the placement measured counts whatever its type

Mass Override

Read the components and joints guide.

ParameterTypeRequiredDescription
componentYes
masskgNo
com[x, y, z] mmNo
inertia[xx, yy, zz, xy, xz, yz] kg m²Noomit all to clear
Automation details

Command ID: component.physical_override

Parameters:

component; mass?: kg; com?: [x, y, z] mm; inertia?: [xx, yy, zz, xy, xz, yz] kg m² (omit all to clear): what robot exports use for the component's own bodies

Rename Component

Read the components and joints guide.

ParameterTypeRequiredDescription
componentYes
nameYes
Automation details

Command ID: component.rename

Parameters:

component, name

Delete Component

Read the components and joints guide.

Automation details

Command ID: component.delete

Parameters:

component: deletes it, its subcomponents, occurrences and features

Unlock Contents

Read the components and joints guide.

Automation details

Command ID: component.unlock

Parameters:

component: removes the rigid joints that hold its contents together (an imported assembly's rigid group), so its parts move and take joints one by one → joints (the ids removed)

Move Bodies to Component

Read the components and joints guide.

ParameterTypeRequiredDescription
bodies[names]Yes
componentYes
component_pathits placement to place them byNodefault: its only one, else the active one; a component placed more than once gets them in every instance
from_paththe placement of their component they move fromNodefault: its only one, else its first, where its bodies have their own names
Automation details

Command ID: component.move_bodies

Parameters:

bodies: [names], component; component_path?: its placement to place them by (default: its only one, else the active one; a component placed more than once gets them in every instance); from_path?: the placement of their component they move from (default: its only one, else its first, where its bodies have their own names)

Paste Bodies

Read the components and joints guide.

ParameterTypeRequiredDescription
bodies[names, as the Browser shows them: a body seen in another placement of its component (Cube (B:2)) is copied from there]Yes
componentwhere the copies goNodefault: the active one
component_pathits placement to place them byNodefault: its only one, else the active one; a component placed more than once gets them in every instance
Automation details

Command ID: component.copy_bodies

Parameters:

bodies: [names, as the Browser shows them: a body seen in another placement of its component (`Cube (B:2)`) is copied from there]; component?: where the copies go (default: the active one); component_path?: its placement to place them by (default: its only one, else the active one; a component placed more than once gets them in every instance). Each copy stays where its body is in the world; the copies' names come back as `bodies`

Paste from Another Design

Read the components and joints guide.

ParameterTypeRequiredDescription
componentwhere it goesNodefault: the active one
component_pathits placementNodefault: the active one, else its only one
Automation details

Command ID: component.paste_from_design

Parameters:

component?: where it goes (default: the active one); component_path?: its placement (default: the active one, else its only one); placement?: `world` (default) or `origin`, where copied components go: at the same world coordinates, or with the first one's origin on the target's origin, the others kept where they are from it (bodies always keep their world coordinates). Pastes what was copied in another design: its bodies as imported bodies (no history) in one Import feature, or its components as independent copies with their history, appearances, joints and motion (as `component.paste_new`); the user parameters they use come along, renamed `w_2` when taken. A component that uses what isn't in it (another body, sketch or parameter) is refused, saying what. Returns `bodies` and `feature`, or the pasted components' `paths`

Move Sketches to Component

Read the components and joints guide.

ParameterTypeRequiredDescription
sketches[ids or names]Yesa number is an id; a string is an exact name, then an id
componentYes
Automation details

Command ID: component.move_sketches

Parameters:

sketches: [ids or names] (a number is an id; a string is an exact name, then an id), component; the sketches keep their own coordinates (component.move_features keeps them where they are in the world), except that a sketch on an exactly attached face stays where it is on the face

Move Sketches to Their Parts

Read the components and joints guide.

ParameterTypeRequiredDescription
sketches[ids or names]Nodefault: every sketch in the design
Automation details

Command ID: component.move_sketches.to_parts

Parameters:

sketches?: [ids or names] (default: every sketch in the design) → moved, stayed, sketches [{sketch, name, component, part}], kept [{sketch, name, code, reason}]. Each sketch whose plane is an exactly attached face of a part's body goes to that part, as component.move_sketches moves it, and stays where it is on the face; the others (on an origin, construction or fixed plane, on a body of the design itself, or already in their part) stay where they are. One undo step

Move Features to Component

Read the components and joints guide.

ParameterTypeRequiredDescription
features[ids or names]Yessketches too
componentwhere they goNodefault: the active one
Automation details

Command ID: component.move_features

Parameters:

features: [ids or names] (sketches too); component?: where they go (default: the active one) → moved, component, bodies. Ids, names and timeline order stay; the geometry stays where it is in the world; the bodies the features made move with them. Refused while the timeline is rolled back, for a component placed more than once, and for a move that would break a feature (nothing changes)

Paste New

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceselected source placementNo
pathselected source placementNo
parentcomponent the copy goes inNodefault: the source placement's; not the component or one inside it
in_placeas occurrence.copyNo
parent_pathas occurrence.copyNo
translate[x,y,z]No
Automation details

Command ID: component.paste_new

Parameters:

component: independently copy its nested definition graph and history, materials and styles; occurrence?, path?: selected source placement; parent?: component the copy goes in (default: the source placement's; not the component or one inside it); in_place?, parent_path?: as occurrence.copy; translate?: [x,y,z]. Reassigned external bodies become base geometry; retained external links and omitted boundary joints are reported

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameNodefault: every linked component
Automation details

Command ID: component.update_links

Parameters:

component?: id or name (default: every linked component); components?: a list of ids or names, which goes on past a design it cannot read (that one keeps its bodies, is named in failed and gets a warning); linked_bodies?: all|folder (a linked design that was itself saved without the bodies of its linked designs: which of those files are read for them; default all; folder: only files in this design's folder or the linked design's own, and a linked design reaching further is not read) — reads the linked design or STEP files again and replaces their bodies where they changed, and their part properties (part number, revision…) where the design changed them and this design did not, as one undo step; → updated, unchanged, failed ([{component, name, error}]), warnings (also features that newly fail and joints whose faces are gone or that no longer solve); a file an importer plugin read is read again by that plugin when its bytes changed, not when they did not, and not at all, with no plugin run, while it is outside the design's folder and its folder is not allowed (Preferences, General); a plugin that is gone, turned off or not the one named keeps the bodies and is named in failed; a KiCad board opened from a .kicad_pcb is read again by SolidCraft with the options it was opened with, replacing the component's bodies, under the same folder rule

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or name of a linked componentYes
patha saved designYes.sc or .json
structureboolNodefault: as the link is; true keeps the design's own components as components inside the linked one, as component.insert_design does, false puts every body into the linked component itself; with occurrence it is for a link made new, one that is there stays as it is
flexibleboolNodefault: each occurrence as it is; see component.insert_design; with occurrence: that occurrence, which comes rigid without it, since its joints and its pose were its old design's; a joint of this design that is on an occurrence inside it stays where it is, as a frame on the occurrence, and is named in warnings
Automation details

Command ID: component.relink

Parameters:

component: id or name of a linked component; path: a saved design (.sc or .json); configuration?: row name or id, null to follow the saved source state (omitted: keep the selection for the same file, otherwise follow the new file) — replaces the source and linked bodies for all its occurrences, preserving identities and placements; names?: "keep" (default) leaves the body names as relinking always did (replaced only when the new source has another number of bodies), "sync" takes the new source's body names, renames what other features, materials and appearances keep under the old names with them, and gives the linked feature the source design's name when it still has its component's (component and placement names stay yours; only for the whole component, a placement relinked on its own shows a component made from the new source); occurrence?: one of its placements — when it has others, only that placement comes to show the design, as a placement of the component already linked to it or of a new one under the same parent, keeping its position and joints (component is then the one it shows, previous_component the one it showed); structure?: bool (default: as the link is; true keeps the design's own components as components inside the linked one, as component.insert_design does, false puts every body into the linked component itself; with occurrence it is for a link made new, one that is there stays as it is); flexible?: bool (default: each occurrence as it is; see component.insert_design; with occurrence: that occurrence, which comes rigid without it, since its joints and its pose were its old design's; a joint of this design that is on an occurrence inside it stays where it is, as a frame on the occurrence, and is named in warnings); returns path, previous_path, warnings, joint_errors, joint_conflicts, joint_deviations and moved_occurrences

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or name of a linked componentYes
structureboolNokeep the linked design's own components as components inside it; default: as the link is
Automation details

Command ID: component.link_mode

Parameters:

component: id or name of a linked component; occurrence?: id or name of one of its occurrences, to make that one flexible or rigid (default: every occurrence); structure?: bool (keep the linked design's own components as components inside it; default: as the link is); flexible?: bool (true: the linked design's joints are joints here too, on that occurrence's own copy of its components, so they move by them there and two occurrences can stand in different poses; false: rigid, it moves as one and shows the design as it was saved, which needs no reading of the design; default: each occurrence as it is; needs structure) — changes how the link keeps its design, reading the design again except to make an occurrence rigid, as one undo step → component, structure, flexible (the flexible occurrences, by id), subcomponents, joints (the design's joints each flexible occurrence has; 0 when none is flexible), warnings (also when the design has no components to keep, or no joints, so nothing is flexible)

Read the components and joints guide.

Automation details

Command ID: component.break_link

Parameters:

component: id or name of a linked component — its design's history comes in and becomes the component's own, as one undo step: features, sketches, subcomponents and their joints and motion, looks, and the user parameters they use (renamed `w_2` when this design has a `w`); the component keeps its id, name, placements (all of them stay placements of this one component), joints and the looks given here; links inside that design are broken the same way, so nothing stays linked. A design that can't be read (missing, unreadable, not allowed) or whose history can't come in keeps its bodies as they are, without history, and warnings say which file and why; a STEP file or a file an importer read has no history and keeps its bodies. A link that keeps the design's components is the exception: its components are already components of this design, so they stay as ordinary components with the bodies the link read and its history is not brought in (its components would come a second time; a notice says so), after every flexible occurrence is made rigid. Returns path, history (whether it came in), features, components, parameters, renamed_parameters [{from, to}], nested_links, notices and warnings

Extract to File

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or name of a component that is not linkedYes
paththe .sc design to writeYes
Automation details

Command ID: component.extract

Parameters:

component: id or name of a component that is not linked; path: the .sc design to write → its history, subcomponents and their joints move to that design, and the component becomes linked to it (as component.insert_design makes it); returns path, file, feature, bodies, notices (what stays behind), warnings and copies (components that build the same bodies: see component.replace_with_link)

Find Identical Copies

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or name of a linked componentYes
Automation details

Command ID: component.copies

Parameters:

component: id or name of a linked component → copies: [{component, name}], the components not linked whose own history builds the same bodies

Read the components and joints guide.

ParameterTypeRequiredDescription
witha linked componentYes
patha .sc designYesits link here, one that holds the design in one component first, else a new linked component
Automation details

Command ID: component.replace_with_link

Parameters:

component or components: [ids or names] of components that are not linked; with: a linked component, or path: a .sc design (its link here, one that holds the design in one component first, else a new linked component) → each component's history goes and its placements become placements of the linked component; refused when its bodies are not the same as the link's; returns component, name, replaced and warnings

Read the components and joints guide.

Automation details

Command ID: component.links

Parameters:

→ linked components: component, name, path, importer? ({format, plugin?, version?}: `step`, `kicad` (a board SolidCraft read, with no plugin) or the importer plugin that read the file; for a plugin also available (it is installed and on), installed_version (when it differs or it can't be used) and needs (which plugin and version the link needs and why it can't be used)), configuration (selected row id, omitted when following the saved source state), file (resolved), found (null when the file is on a network location not allowed, or names a device: it is not looked for), changed (whether the file is no longer what this design last read: Update Links reads it again; null when not found or the link is older than this record), structure (whether the link keeps the linked design's components as components inside the linked one), flexible (its flexible occurrences, by id), then host (the network location); state (missing, unreadable, not_allowed: a network location not allowed or outside the folders this agent may use) and reason when the file can't be reached

Part Properties

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameYes0 or "root": the design's own properties
Automation details

Command ID: component.metadata

Parameters:

component: id or name (0 or "root": the design's own properties) → component, name, part_number, description, revision, material (its static material or null), finish (or null), bom_type, bom_quantity (or null) and virtual (components only), metadata (as saved, other tools' keys too), properties: {name: text} (authored values), name_split?: the component's rule for drawing properties

Change Part Properties

Read the components and joints guide.

ParameterTypeRequiredDescription
componentid or nameYesnot the root: use document.metadata.set, which takes material and finish too
part_numbertextNo
descriptiontextNo
revisiontextNoempty or null removes
bom_typenormal|phantom|reference|purchased|inseparableNoempty or null: normal
virtualtrue|falseNoa component with no geometry, such as grease or a label: it can't be the active component or hold bodies, sketches or components
values{key: value}NoSolidCraft's keys, as document.metadata's properties lists them (material and finish too), bom_type, bom_quantity, virtual, or a reverse-DNS key holding an object
properties{name: text, …}Nofree properties; empty or null removes
Automation details

Command ID: component.metadata.set

Parameters:

component: id or name (not the root: use document.metadata.set, which takes material and finish too); part_number?, description?, revision?: text (empty or null removes); finish?: text, the part's finish, free ("powder coat, RAL 9005, matt", "zinc plate, clear", "#4 brushed"; empty or null removes it); bom_type?: normal|phantom|reference|purchased|inseparable (empty or null: normal); material?: text, a static material: what its bill of materials rows say it is made of, in place of its bodies' materials (it doesn't change the mass; empty or null clears it); bom_quantity?: an expression, what one placement means in a bill of materials: a number of pieces ("4") or a length ("2.5 m", "2 * span + 50 mm"), evaluated with the design's parameters, above 0 (empty or null removes it: one piece); virtual?: true|false (a component with no geometry, such as grease or a label: it can't be the active component or hold bodies, sketches or components); values?: {key: value} (SolidCraft's keys, as document.metadata's properties lists them (material and finish too), bom_type, bom_quantity, virtual, or a reverse-DNS key holding an object); properties?: {name: text, …} (free properties; empty or null removes); name_split?: {separator, left_property, right_property} derives missing drawing properties from the current name, split at the first literal separator (null removes the rule). All or nothing, one undo step → component, metadata, properties, name_split?, changed: [keys]

Other commands: body

Collision Shape

ParameterTypeRequiredDescription
bodyits nameYes
componentid or name for all its bodiesYes
shapeauto|mesh|box|cylinder|sphereYes
nonewhat it looks like to a simulatorYesURDF export; box, cylinder and sphere are set in the body's bounding box
Automation details

Command ID: body.collision

Parameters:

body: its name, or component: id or name for all its bodies; shape: auto|mesh|box|cylinder|sphere|none: what it looks like to a simulator (URDF export; box, cylinder and sphere are set in the body's bounding box)

Edge Lines

ParameterTypeRequiredDescription
bodyits nameYes
bodiesseveral namesYes
Automation details

Command ID: body.edge_lines

Parameters:

body: its name, or bodies: several names; show?: bool (default true): false draws the bodies without their edge lines in every visual style (an overlay such as a thin label), true draws them as the style says; saved in the design

Rename Body

ParameterTypeRequiredDescription
bodyits nameYes
bodiesseveral body namesYeseach in turn gets the first of name, name (2), name (3)… that no other body has
namethe new nameYesfeatures that use the bodies follow
Automation details

Command ID: body.rename

Parameters:

body: its name, or bodies: several body names (each in turn gets the first of name, name (2), name (3)… that no other body has), name: the new name (features that use the bodies follow)

Repair Part

ParameterTypeRequiredDescription
bodyits nameYesa part the modelling kernel refuses, or an open part that should be a solid
gapexprNodefault 0.2 mm, at most 1 mm: free edges that pair up within it are sewn, each sewn edge carrying its own gap as its tolerance
patch_holesboolNodefault false: loops of free edges left are patched, in the plane of the faces around them where those are that plane, else tangent to them, and sewn in; otherwise the reply offers the patches
nameNo
Automation details

Command ID: body.repair

Parameters:

body: its name (a part the modelling kernel refuses, or an open part that should be a solid); gap?: expr (default 0.2 mm, at most 1 mm: free edges that pair up within it are sewn, each sewn edge carrying its own gap as its tolerance); patch_holes?: bool (default false: loops of free edges left are patched, in the plane of the faces around them where those are that plane, else tangent to them, and sewn in; otherwise the reply offers the patches); name? → the feature, and repair: what changed face by face (rebuilt and refused faces, sewn gaps, holes with their surface.patch), faces and largest edge tolerance before and after, closed, modelling, volume. Refused with why when nothing applies

Remove History

ParameterTypeRequiredDescription
bodyits nameYes
Automation details

Command ID: body.remove_history

Parameters:

body: its name → feature, name: the base feature that now holds the body's B-rep; removed: [the features that went: those that built only this body, and the sketches only they used]; kept: [features that built this body and also build or change other bodies, so they stay]; remove?: the Remove feature added before the base when kept features still build the body; faces, edges, vertices, volume_before, volume_after: the body before and after; broken: [{feature, error}] (features that worked and now fail); notes?: [references to the body's faces that could not move to the base feature's]. One undo step; refused, with why, when nothing can be removed

Default keyboard shortcut: Ctrl+B

ParameterTypeRequiredDescription
bodyits nameYes
Automation details

Command ID: body.print_face

Parameters:

body: its name; point?: [x, y, z] on a flat face of it, in mm (omit to clear) → {body, face?}: marks the face a slicer export (file.send_to_slicer, file.save_mesh with slicer, file.open_in_easyprint), or an STL or 3MF export with lay_on_print_faces (file.export, file.export_stl, file.export_3mf, file.save_mesh), lays the body on: turned so the face points down at Z = 0, the centre of mass over the origin. One per body, replacing the last; flat faces of solid bodies only. A print face that is gone or no longer flat is reported in the export's warnings, and the body exported as it lies

Check Print Faces

ParameterTypeRequiredDescription
bodiesname | [names]Nodefault every body
Automation details

Command ID: body.print_faces

Parameters:

bodies?: name | [names] (default every body) → {bodies: [{body, status: set | none | lost, face?, problem?}], all_set}: whether each body has a print face (body.print_face) that an export would lay it on; lost: one was marked but the face is gone or no longer flat (problem says why). all_set is true when at least one body was checked and every one is set. Read-only

Other commands: occurrence

Occurrence Physical Properties

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceid or nameYes
path[occurrence ids]Norequired if nested under multiple instances
descendantsboolNodefault true
Automation details

Command ID: occurrence.properties

Parameters:

occurrence: id or name; path?: [occurrence ids] (required if nested under multiple instances); descendants?: bool (default true); about?: [x, y, z] (mm). Physical properties of this placement in world coordinates, including pending moves; volume, density, mass, center of mass and inertia_g_mm2 only for closed, consistently oriented bodies; total.open_bodies_skipped counts open bodies excluded from volume/mass totals; bodies the kernel cannot measure are left out and named in unmeasured_bodies and warnings; total inertia as in component.properties. A placement inside it that counts as a reference (its occurrence's bom_type, else its component's) adds nothing, nor does anything inside that; this placement counts whatever its type. placement: where the occurrence sits, in_parent and world, each {position (mm), axis, angle_deg, matrix (the 3×4 rows occurrence.move takes)}

Paste (Instance)

Read the components and joints guide.

ParameterTypeRequiredDescription
componentYesor occurrence
pathvalidates selected occurrenceNo
parentcomponentNodefault: the same parent
translate[x,y,z]No
Automation details

Command ID: occurrence.copy

Parameters:

component (or occurrence): what to place again; path?: validates selected occurrence; parent?: component (default: the same parent); translate?: [x,y,z]; in_place?: bool (default false: the selected transform within the parent; true: where the selected placement is in the world, translate in world axes; a parent placed more than once is placed by parent_path?, else the active placement, and every instance gets the copy). Copies the selected effective transform, including pending moves

Move Occurrence

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceYes
pathexact placementNo
spacelocal|worldNodefault local
translate[x,y,z]Nonumbers or length expressions: an occurrence moved by expressions that name parameters keeps them and moves with them when the parameters change, along the axes the move was given in; other moves of it stay; a parameter they use can't be deleted, and a renamed one carries into them
axis[x,y,z]No
angleradians or "30 deg"No
origin[x,y,z]Nonumbers or length expressions, kept like translate's: the point the turn is about moves the part by what the turn leaves behind when a parameter in it changes
to{position: [x,y,z], axis?: [x,y,z], angle?} or to_matrix?: [12 or 16 numbers]Noabsolute placement: where it goes in space, not a move; not with translate/axis/angle/origin/matrix
matrix[12 or 16 numbers]Noinstead of translate/axis/angle/origin: a rigid move as a row-major 3x4 rotation-and-translation or 4x4 matrix, flat or as rows, its translation column (entries 4, 8 and 12) numbers or length expressions that are kept and followed like translate's; one that is a rotation only up to rounding is orthonormalised, a scale, shear or mirror is refused
tolerancelargest accepted |RᵀR − I|Nodefault 1e-9, at most 1e-3
captureboolNodefault true; false keeps it pending until Capture Position
move_groundedboolNodefault false: a grounded occurrence refuses; true moves it and it stays grounded
Automation details

Command ID: occurrence.move

Parameters:

occurrence; path?: exact placement; space?: local|world (default local); translate?: [x,y,z] (numbers or length expressions: an occurrence moved by expressions that name parameters keeps them and moves with them when the parameters change, along the axes the move was given in; other moves of it stay; a parameter they use can't be deleted, and a renamed one carries into them); axis?: [x,y,z], angle?: radians or "30 deg", origin?: [x,y,z] (numbers or length expressions, kept like translate's: the point the turn is about moves the part by what the turn leaves behind when a parameter in it changes); to?: {position: [x,y,z], axis?: [x,y,z], angle?} or to_matrix?: [12 or 16 numbers] (absolute placement: where it goes in space, not a move; not with translate/axis/angle/origin/matrix); matrix?: [12 or 16 numbers] (instead of translate/axis/angle/origin: a rigid move as a row-major 3x4 rotation-and-translation or 4x4 matrix, flat or as rows, its translation column (entries 4, 8 and 12) numbers or length expressions that are kept and followed like translate's; one that is a rotation only up to rounding is orthonormalised, a scale, shear or mirror is refused); tolerance?: largest accepted |RᵀR − I| (default 1e-9, at most 1e-3); capture?: bool (default true; false keeps it pending until Capture Position); move_grounded?: bool (default false: a grounded occurrence refuses; true moves it and it stays grounded). Nested occurrence definitions remain shared. Replies {occurrence, transform, pending}; when joints hold it to something fixed and put it back, transform is where it is and the reply adds reverted: true and a warning naming the joint. keep_joints?: true changes the plain rigid joints holding it in place (same names and partners) so they hold it where a translation puts it, as joint.edit translate_world; a joint toward the fixed parts that is not plain rigid refuses the move, and parts it carries follow; one undo step (default false)

Drag Occurrence

Read the components and joints guide.

ParameterTypeRequiredDescription
at[x,y,z] world point on itYes
point[x,y,z] where it goesYes
Automation details

Command ID: occurrence.drag

Parameters:

occurrence or path: exact placement; at: [x,y,z] world point on it; point: [x,y,z] where it goes. Moves the placement by point - at (with any chain of joints it is in that is joined to nothing grounded) and captures its position; other pending moves stay pending. Shared definitions move in all placements. Grounded parts and parts joints hold to something fixed are refused (joint.reach moves those)

Align Occurrence

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceplacements to move togetherNo
occurrencesplacements to move togetherNo
pathplacements to move togetherNo
pathsplacements to move togetherNo
fromYes
from_faceYes
from_planeYes
toYes
to_faceYes
to_planeYes
flipboolNo
captureboolNodefault true
move_groundedboolNodefault false
Automation details

Command ID: occurrence.align

Parameters:

occurrence?, occurrences?, path?, paths?: placements to move together; from | from_face | from_plane; to | to_face | to_plane; flip?: bool; capture?: bool (default true); move_grounded?: bool (default false). Moves only the chosen occurrence placements in world coordinates without changing shared component geometry; a placement inside a component placed more than once moves in every placement of it, and the reply's `shared` lists those paths

Ground

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceYes
groundedboolNodefault toggles
Automation details

Command ID: occurrence.ground

Parameters:

occurrence; grounded?: bool (default toggles) → grounded; transform: placement within its parent; moved: names of occurrences whose world placement changed; errors, conflicts: joint issues in the assembly solve

Move to Component

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceYes
pathexact placementNo
parentcomponent id or nameYes0 or "root" for the design
parent_paththe parent's placement to place it byNodefault: its only one, else the active one; every instance of the parent gets it
Automation details

Command ID: occurrence.reparent

Parameters:

occurrence; path?: exact placement; parent: component id or name (0 or "root" for the design); parent_path?: the parent's placement to place it by (default: its only one, else the active one; every instance of the parent gets it). The placement keeps its world position; a move that would break a feature is refused

Bill of Materials Type

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceid or nameYes
path[occurrence ids]Nochecked when given
bom_typenormal|phantom|reference|purchased|inseparable| same_as_component or nullYesthis occurrence counts as that type in every bill of materials, in place of its component's; an occurrence inside a subassembly belongs to its definition, so the type holds wherever the subassembly is placed; as its component again
Automation details

Command ID: occurrence.bom_type

Parameters:

occurrence: id or name; path?: [occurrence ids] (checked when given); bom_type: normal|phantom|reference|purchased|inseparable (this occurrence counts as that type in every bill of materials, in place of its component's; an occurrence inside a subassembly belongs to its definition, so the type holds wherever the subassembly is placed) | same_as_component or null (as its component again). One undo step → occurrence, bom_type (its own, or same_as_component), effective (the type it counts as), changed

Enable/Disable

Read the components and joints guide.

ParameterTypeRequiredDescription
paths[[occurrence ids]]Yesexact placements, each with everything inside it
enabledboolYes
Automation details

Command ID: occurrence.enable

Parameters:

paths: [[occurrence ids]] (exact placements, each with everything inside it), enabled: bool. A disabled placement is drawn see-through and a click on its faces goes through to an enabled part behind it (on its own it still picks); its edges and vertices stay pickable for sketches and references. It still counts in mass, the bill of materials and joints. Saved with the design and undone like any other change

Other commands: browser

Move to Component

Read the window tour.

Automation details

Command ID: browser.reparent

Parameters:

Moves placements, features and bodies into a component. occurrences?: [ids or paths], features?: [ids or names], bodies?: [names], component?: where they go (default: the active one), component_path?: its placement → component, occurrences, features, bodies (what moved). One undo step, all or nothing: placements move first (taking what they hold), then features (taking the bodies they made), then the bodies still elsewhere (a body transfer, which leaves its features behind)

New Group

Read the window tour.

ParameterTypeRequiredDescription
folderbodies|sketches|constructionNo
componentidNodefault 0
parentgroup idNothe new group nests in it, taking its component and folder; at most 8 levels
nameNo
items[keys]Nothey leave other groups
Automation details

Command ID: browser.group

Parameters:

folder?: bodies|sketches|construction; component?: id (default 0); parent?: group id (the new group nests in it, taking its component and folder; at most 8 levels); name?; items?: [keys] (they leave other groups)

Ungroup

Read the window tour.

ParameterTypeRequiredDescription
groupidYesits items and child groups go up to the group that holds it, or the folder
Automation details

Command ID: browser.ungroup

Parameters:

group: id (its items and child groups go up to the group that holds it, or the folder)

Rename Group

Read the window tour.

ParameterTypeRequiredDescription
groupidYes
nameYes
Automation details

Command ID: browser.rename_group

Parameters:

group: id, name

Move Browser Items

Read the window tour.

ParameterTypeRequiredDescription
folder[keys (strings) and group ids (numbers)]Yes
component[keys (strings) and group ids (numbers)]No
items[keys (strings) and group ids (numbers)]Yes
groupidNointo it; omit for the folder's top level
beforekey or group idNoposition in it; default the end
Automation details

Command ID: browser.move

Parameters:

folder, component?, items: [keys (strings) and group ids (numbers)]; group?: id (into it; omit for the folder's top level); before?: key or group id (position in it; default the end). A group cannot go into itself or past 8 levels

Order Browser Items

Read the window tour.

ParameterTypeRequiredDescription
folderbodies|sketches|construction|componentsYes
componentNo
order[keys (strings) and top-level group ids (numbers)]Yesdisplay order; for `components`, the ids of the components placed in it
Automation details

Command ID: browser.order

Parameters:

folder: bodies|sketches|construction|components, component?, order: [keys (strings) and top-level group ids (numbers)] (display order; for `components`, the ids of the components placed in it)

Show Hidden Body Under Cursor

Read the window tour.

ParameterTypeRequiredDescription
origin[x, y, z] mmYes
direction[x, y, z]Yesa ray in world space; the app casts it under the cursor when the command is started by its key, unbound by default
Automation details

Command ID: browser.show_hidden_at

Parameters:

origin: [x, y, z] mm, direction: [x, y, z] (a ray in world space; the app casts it under the cursor when the command is started by its key, unbound by default) → {body, point}: shows the nearest hidden body the ray meets, found on its exact faces; pressed again, the next one behind it. Refused when no hidden body is on the ray

Show/Hide

Read the window tour.

ParameterTypeRequiredDescription
visibleboolYes
items[sketch id or name | body name | construction name | joint name | O|X|Y|Z|XY|XZ|YZ]No
joints[joint id or name]Notheir glyphs; they still constrain and move parts
features[feature id or name]Nothe bodies they made; path?: [occurrence ids] for only that placement's
folderbodies|sketches|construction|origin|joints|allNoall of it; showing also shows its browser folders and groups, and `all` takes in the occurrence hides too
tree_folders[browser folder or group key: c0/bodies, o:4/sketches, o:4/origin, c0/g7, c0/joints, c0/canvases, c0/point_clouds]Nothe folder or group itself: its items keep their own state; component origin items use o:4/origin/XY etc. in items
paths[[occurrence ids]]Noexact placements and descendants
isolateboolNowith paths or items of bodies, and visible:true: everything else is hidden, other placements as placements
unisolateboolNowith visible:true and no target: put back what the isolates since the last unisolate hid, or with none in effect show every body and placement, as folder:bodies does; sketches, construction items and joints stay as they are
Automation details

Command ID: browser.visibility

Parameters:

visible: bool; items?: [sketch id or name | body name | construction name | joint name | O|X|Y|Z|XY|XZ|YZ]; or joints?: [joint id or name] (their glyphs; they still constrain and move parts); or features?: [feature id or name] (the bodies they made; path?: [occurrence ids] for only that placement's); or folder?: bodies|sketches|construction|origin|joints|all (all of it; showing also shows its browser folders and groups, and `all` takes in the occurrence hides too); or tree_folders?: [browser folder or group key: c0/bodies, o:4/sketches, o:4/origin, c0/g7, c0/joints, c0/canvases, c0/point_clouds] (the folder or group itself: its items keep their own state; component origin items use o:4/origin/XY etc. in items); or paths?: [[occurrence ids]] (exact placements and descendants), isolate?: bool (with paths or items of bodies, and visible:true: everything else is hidden, other placements as placements); or unisolate?: bool (with visible:true and no target: put back what the isolates since the last unisolate hid, or with none in effect show every body and placement, as folder:bodies does; sketches, construction items and joints stay as they are). Saved with the design and undone like any other change (the camera is not)

Opacity

Read the window tour.

ParameterTypeRequiredDescription
percent0..100Yesa whole number; 0 is not drawn, 100 is as the appearance says
Automation details

Command ID: browser.opacity

Parameters:

percent: 0..100 (a whole number; 0 is not drawn, 100 is as the appearance says); bodies?: [body names] and/or paths?: [[occurrence ids]] (exact placements, each with everything in it). How opaque they are drawn in the modelling view: their appearances stay as they are, and renders and exports don't use it. A body's percentage, those of the placements above it and its appearance's opacity multiply. Saved with the design and undone like browser.visibility

Isolate

Default keyboard shortcut: Ctrl+I

Read the window tour.

Automation details

Command ID: browser.isolate

Parameters:

clear?: bool. Without it, hides everything except the selection: the selected components' placements, or else the selected bodies and the bodies of the selected faces, edges and vertices, as browser.visibility with isolate:true; nothing selected is an error. clear:true ends the Isolate in effect instead, as browser.unisolate (the viewport status pill's close)

Exit Isolation

Default keyboard shortcut: Ctrl+Shift+I

Read the window tour.

Automation details

Command ID: browser.unisolate

Parameters:

(no parameters) as browser.visibility with visible:true and unisolate:true: puts back what the isolates hid; with nothing isolated it is an error and shows nothing

Show/Hide Planes

Read the window tour.

Automation details

Command ID: browser.toggle_planes

Parameters:

(no parameters) the origin planes (XY, XZ, YZ) and every construction plane: hidden when any of them shows, shown otherwise;          axes, points and sketches keep their state. Saved with the design and undone like browser.visibility

Show/Hide Reference Geometry

Read the window tour.

Automation details

Command ID: browser.toggle_reference

Parameters:

(no parameters) all reference geometry: the origin (point, axes, planes), every construction plane, axis and point, and every sketch;          hidden when any of it shows, shown otherwise (showing does not show a sketch a feature uses unless it was shown on its own).          Bodies and joints keep their state. Saved with the design and undone like browser.visibility

Expand All

Read the window tour.

ParameterTypeRequiredDescription
path[occurrence ids]Nothat placement and its descendants
componentidNothat component's own folders
Automation details

Command ID: browser.expand_all

Parameters:

path?: [occurrence ids] (that placement and its descendants); component?: id (that component's own folders); omit both for the whole tree, including folders that start closed (Origin, Named Views, Features). Display only: open/closed rows are not saved in the design and are not an undo step → open, open_by_default, closed_by_default

Collapse All

Read the window tour.

ParameterTypeRequiredDescription
path[occurrence ids]Nothat placement's branch
componentidNo
Automation details

Command ID: browser.collapse_all

Parameters:

path?: [occurrence ids] (that placement's branch); component?: id; omit both for the whole tree: every placement, folder and group at every level. The row it starts from (the design row for the whole tree) stays open, so its first level remains visible. Display only; not an undo step → open, open_by_default, closed_by_default

Search the Browser

Read the window tour.

ParameterTypeRequiredDescription
kinds[component|body|sketch|construction|joint]Nodefault every kind; give text, kinds or both
Automation details

Command ID: browser.find

Parameters:

text?: what the names hold, ignoring case (with * for any text or ? for any one character it must match the whole name: *:1 ends in :1; at most 256 characters); kinds?: [component|body|sketch|construction|joint] (default every kind; give text, kinds or both) → {found: [{kind, name, key, path, item?}], total, incomplete}: every placement of a component is its own match, path is the placement it is in, item is what select.set takes (a joint has none; its key is its id); at most 10000 listed, total counts them all

Other commands: assembly

Propagate Changes

ParameterTypeRequiredDescription
paththe design that changedYes.sc
roota folder scanned recursively for the designs above itYessee inspect.where_used
dry_runboolNodefault true: evaluate each update in memory, report what it would do and write nothing
Automation details

Command ID: assembly.propagate

Parameters:

path: the design that changed (.sc); root: a folder scanned recursively for the designs above it (see inspect.where_used); dry_run?: bool (default true: evaluate each update in memory, report what it would do and write nothing); max_depth?: levels of parents, 1 to 256 (default 32) → steps [{path, depth, status, updated, unchanged, warnings, saved, error?}] in bottom-up order (children before parents, each design once), direct, transitive, saved, problems, scanned, truncated, unreadable?, unreadable_count? (designs under root whose links could not be read, so a parent may be missing; left out when none), warnings. Without dry_run each design above `path` is opened on its own, its links updated as component.update_links does (so a design is read after the designs it links were saved), and saved; the design open in this session is not replaced or changed, and is skipped (status skipped) when it is one of them, as is a design another tab or app has open or one a newer SolidCraft saved, or one with a link an importer plugin reads (its code runs only with the user's go: use component.update_links in the app). A dry run opens each design in a session of its own and shows its steps as a real run would find them (status planned, or failed or skipped with the reason; warnings carry joint conflicts and features that would fail), each design read as it is on disk. A design with a link it cannot read, or whose update makes a feature fail that did not fail before, is not saved and is named in steps (status failed); the designs that link a failed or skipped design are not updated either (status skipped, named in a warning), the others go on. A signed design loses its signature's coverage when saved (a warning says so). A cancelled run may already have saved the first designs in bottom-up order: a dry run shows what is left. The folders must be allowed for writing as well as reading

Edit Constraint

ParameterTypeRequiredDescription
constraintid|nameYesa joint made with assembly.constraint.create
typea rule as assembly.constraint.create takes itNothe references it has must fit it; the gap carries over
offsetthe gapNomm or an expression
anglean angle rule's angleNo
fliptrue turns b overNofrom the new rule's way after a type change, else from how it faces now
nameNo
suppressedNo
Automation details

Command ID: assembly.constraint.edit

Parameters:

constraint: id|name (a joint made with assembly.constraint.create); type?: a rule as assembly.constraint.create takes it (the references it has must fit it; the gap carries over); offset?: the gap (mm or an expression); angle?: an angle rule's angle; flip?: true turns b over (from the new rule's way after a type change, else from how it faces now); name?; suppressed?; quiet?. Changed as joint.edit changes a joint: its values start again where its parts are → conflicts, errors, dof, fixed as joint.edit

Renumber Items

ParameterTypeRequiredDescription
start1No
step1Nowhole numbers, 1 to 999999
Automation details

Command ID: assembly.bom.renumber

Parameters:

component?, levels?, group_by?, group_children?, show_purchased_contents?, show_suppressed_parts?: the view, as assembly.bom takes them; start?: 1; step?: 1 (whole numbers, 1 to 999999); order?: list (default: by part number, as an unnumbered view lists) | item (in item-number order, closing the gaps). Numbers every row from start by step, each level on its own (in all levels, within its parent); locked rows keep their numbers and the others skip them; rows that are gone are forgotten. Saves the view's numbers, with these list options: after it, a row added takes the highest number at its level + 1 and a row removed leaves a gap until the next renumber. One undo step → the view as assembly.bom gives it

Change Item Number

ParameterTypeRequiredDescription
rowthe row's item as the view shows it nowYes"3", or "1.2" under row 1
item1 to 999999Noa number another row has is allowed: both are marked duplicate
Automation details

Command ID: assembly.bom.item.set

Parameters:

component?, levels?, group_by?, group_children?, show_purchased_contents?, show_suppressed_parts?: the view, as assembly.bom takes them; row: the row's item as the view shows it now ("3", or "1.2" under row 1); item?: 1 to 999999 (a number another row has is allowed: both are marked duplicate); locked?: true|false (a renumber keeps a locked number). A view not numbered yet is numbered first, every row keeping the number it shows. One undo step → the view as assembly.bom gives it, with duplicates: [item numbers used twice at the row's level]

Stability

ParameterTypeRequiredDescription
studyid|nameNoa motion study: the margin at every sample of it, default the pose now
samples3…1000 along the studyNodefault the study's steps + 1
payload{mass_kg (> 0), occurrence?: id|name, point: [x,y,z]}Noa mass that joins the answer, its point in that occurrence's own frame with `occurrence`, else world, mm
Automation details

Command ID: assembly.stability

Parameters:

contacts: [{occurrence: id|name, point: [x,y,z]} (a point of that occurrence's own frame, moving with it — a wheel's contact is its own [0, 0, −r]) or {point: [x,y,z]} (world, mm)], 2 to 16 of them; study?: id|name (a motion study: the margin at every sample of it, default the pose now); samples?: 3…1000 along the study (default the study's steps + 1); payload?: {mass_kg (> 0), occurrence?: id|name, point: [x,y,z]} (a mass that joins the answer, its point in that occurrence's own frame with `occurrence`, else world, mm) → mass_kg (payload included), com [x,y,z] (world mm), polygon [[x,y]…] (the contacts' convex hull, counter-clockwise, ground mm), margin_mm (the shortest distance from the centre of mass to an edge of the polygon, negative outside), stable (the centre of mass lies inside), tip? (the tilt from vertical about the nearest edge that tips it, degrees: omitted when already outside or the centre of mass is not above the contacts), samples (with a study: {step, com, margin_mm, stable} at every sample), warnings. Read-only: the design does not move

Mass Properties

ParameterTypeRequiredDescription
every_placementboolNodefault false: an occurrence inside a subassembly placed more than once is listed at the subassembly's first placement only, with a warning; true: at each of its placements, by its path, in the groups as at the first; refused for a design of 100000 placements or more
Automation details

Command ID: assembly.mass_properties

Parameters:

every_placement?: bool (default false: an occurrence inside a subassembly placed more than once is listed at the subassembly's first placement only, with a warning; true: at each of its placements, by its path, in the groups as at the first; refused for a design of 100000 placements or more) → occurrences: [{occurrence (0: the design's own bodies), name, component, path, group, fixed, frame {origin, x, y, z}, bodies: [{name, material, density_g_cm3, closed, volume_mm3, mass_kg}], open_bodies_skipped, mass}], groups: [{group, occurrences, fixed, frame_occurrence, frame, mass}] (occurrences an unsuppressed rigid joint ties together, and a nested occurrence no joint places with its parent; fixed: holds the design or a grounded occurrence), warnings. mass: {mass_kg, center_of_mass_mm (world), center_of_mass_local_mm, inertia_world_kg_mm2, inertia_local_kg_mm2 (about the centre of mass, in world and frame axes; null when a closed body's mesh does not close, then partial_inertia_world_kg_mm2 and partial_inertia_local_kg_mm2 hold the tensor of the other bodies about the same centre, and the occurrence or group lists inertia_omitted_bodies)} or null when massless. Read-only; pending moves count; each body at its material's density (the default material's when none is assigned)

Other commands: joint

Export Origin as Frame

Read the components and joints guide.

ParameterTypeRequiredDescription
origina named joint originYes
framebool: robot exports write it as a frame of its ownYesa tool tip, a sensor mount
Automation details

Command ID: joint.origin_frame

Parameters:

origin: a named joint origin; frame: bool: robot exports write it as a frame of its own (a tool tip, a sensor mount)

Reach Point

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceid|nameYes
path[occurrence ids from the top of the assembly down to occurrence]Nowhich copy of it, when it is inside a sub-assembly placed more than once: each occurrence of a linked subassembly has its own copy of what is inside it
point[x,y,z]Yeswhere its point goes, world
at[x,y,z]Noits point, in the world where it is now; default: the centre of its bodies' box
z[x,y,z]Nothe way its axis then points
axis[x,y,z]Nothat axis, in the world now; default: its own z
joints[ids or names]Noonly these move toward the point; the other joints of a closed loop they are in follow
quietboolNo
from[{joint, values}]Nothe values those joints start from instead of the design's, as joint.list gives them: the pose a drag's last frame showed; with contact sets on, refused unless every value is already the design's
Automation details

Command ID: joint.reach

Parameters:

occurrence: id|name; path?: [occurrence ids from the top of the assembly down to occurrence] (which copy of it, when it is inside a sub-assembly placed more than once: each occurrence of a linked subassembly has its own copy of what is inside it); point: [x,y,z] (where its point goes, world); at?: [x,y,z] (its point, in the world where it is now; default: the centre of          its bodies' box); z?: [x,y,z] (the way its axis then points); axis?: [x,y,z] (that axis, in the world now; default: its own z); joints?: [ids          or names] (only these move toward the point; the other joints of a closed loop they are in follow); quiet?: bool; continuous?: bool (a frame          of a drag: the answer says continuous, and the app's command line doesn't echo it). Moves the values of the joints          on its chain from where they are to the nearest pose, within their limits, through motion links, keeping closed loops closed as joint.drive does;          with contact sets on, they stop where two parts of a set would pass into each other; from?: [{joint, values}] (the values those joints start from instead of the design's, as joint.list gives them: the pose a drag's last frame showed; with contact sets on, refused unless every value is already the design's) → reached; error_mm (and error_deg with z): how close it got; point: where its point is; values: [{joint, name,          values}] of the joints that moved, as joint.list gives them; moved; stopped_by_limit: [{joint, value, limit: min|max}]: the limits it rests on          short of the point; stopped_by_loop: {joint}: the closed loop that stopped it (its chain alone gets closer); stopped_by_contact: the pair of a contact set that stopped it, as joint.drive says; reason: why nothing can move

Joint Limits

Read the components and joints guide.

ParameterTypeRequiredDescription
jointYes
indexvalue indexNodefault 0
minNo
maxNonumbers, or expressions the limit then follows as the parameters change; omit both to clear
Automation details

Command ID: joint.limits

Parameters:

joint; index?: value index (default 0); min?, max? (numbers, or expressions the limit then follows as the parameters change; omit both to clear)

Joint Dynamics

Read the components and joints guide.

ParameterTypeRequiredDescription
jointYes
indexvalue indexNodefault 0
effortN or N mNo
velocitym/s or rad/sNo
dampingN s/m or N m s/radNo
Automation details

Command ID: joint.dynamics

Parameters:

joint; index?: value index (default 0); effort?: N or N m; velocity?: m/s or rad/s; damping?: N s/m or N m s/rad; friction?: N or N m (omit all to clear): what a simulator reads, written by URDF export; the joint solver does not use them

Edit Joint

Read the components and joints guide.

ParameterTypeRequiredDescription
jointYes
ajoint origins as joint.create takes themNo
bjoint origins as joint.create takes themNoa side left out keeps its place; the two must stay on different occurrences
Automation details

Command ID: joint.edit

Parameters:

joint; a?, b?: joint origins as joint.create takes them (a side left out keeps its place; the two must stay on different occurrences); translate_world?: [dx,dy,dz] mm in world coordinates, shifting b relative to a (plain rigid joint only; not with a, b, type or offsets), type?, flip?, offset_x?, offset_y? (plain joints only; a number, or an expression the joint then follows), offset?, angle? (a number, or an expression the joint then follows), suppressed?, name?; the joint re-solves, keeping its limits and expressions (a relation's values start again where its parts are); an edit that places it again (not a rename alone) meets a loop it closes as joint.create does, turning an angle a half turn where only that meets it

Delete Joint

Read the components and joints guide.

ParameterTypeRequiredDescription
jointid|nameYesor origin: name, link: index
Automation details

Command ID: joint.delete

Parameters:

joint: id|name (or origin: name, link: index)

List Joints

Read the components and joints guide.

ParameterTypeRequiredDescription
quietNo
filtersYesa joint is kept when it passes every one given
exclude_rigidNo
exclude_rigid_groupsNothe rigid joints holding a component's contents together, as an imported assembly's placements
moving_onlyNono rigid or suppressed joints
occurrences[id|name]Noan end at one of them or inside one; dof narrowed to them too
dof_free_onlyNodof lists only occurrences that can still move
summaryNo
Automation details

Command ID: joint.list

Parameters:

quiet?, filters (a joint is kept when it passes every one given): kinds?: [types], exclude_rigid?, exclude_rigid_groups? (the rigid joints holding a component's contents together, as an imported assembly's placements), moving_only? (no rigid or suppressed joints), occurrences?: [id|name] (an end at one of them or inside one; dof narrowed to them too); dof_free_only? (dof lists only occurrences that can still move); summary? → joints (type, occurrences, values, limits, offset_xy: [x,y] in mm, offset_axis_world: [x,y,z] (the world direction a positive offset is measured along); expressions: {offset_x?, offset_y?, offset?, angle?, values?} when they were typed as expressions), origins, links, degrees of freedom, conflicts, floating: [{occurrences, joints}] (joint chains joined to nothing grounded: the solver places none of them, so driving them moves nothing), omitted?: {joints, by_type, floating, dof} (what the filters left out), summary?: {joints, by_type, suppressed, rigid_groups: [{component, name, joints, members}] (the 20 largest), more_rigid_groups?: {groups, joints}}

Inspect Joint

Read the components and joints guide.

ParameterTypeRequiredDescription
jointid|nameNodefault: every joint, narrowed by the filters joint.list takes: kinds?, exclude_rigid?, exclude_rigid_groups?, moving_only?, occurrences?; omitted?: what they left out
Automation details

Command ID: joint.inspect

Parameters:

joint?: id|name (default: every joint, narrowed by the filters joint.list takes: kinds?, exclude_rigid?, exclude_rigid_groups?, moving_only?, occurrences?; omitted?: what they left out) → joints: [{id, name, type, suppressed, visible, flip, offset (mm), offset_xy: [x,y] (mm), angle (deg), values: as joint.list gives them, dofs, expressions?: {offset?, angle?, values?}, a, b: {occurrence, occurrence_name, component, component_name, path (occurrence names from the top, `/` between), snap (as saved: type, pick, face, end, edge, corner, x, point, z, in the component's coordinates), references: [{role: face|end|x|edge|corner, name, role_in_feature?: (top, side:c1…), feature?: {id, name, type} (the feature that made the face; error when it is gone), sketch?: {id, name, curve, curve_type} (a face swept from a sketch curve), faces?: [an edge's two faces], unverified?: a name saved before exact names}], resolves, frame?: {origin, z, x} in the world, error?: why the origin is lost}, links: [{index, role: driver|driven, …as joint.list}], errors, conflicts, conflict_details?: [{joint, name, why, kind, message, joints: [{id, name}], occurrences: [{id, name}], origins: [{joint, side, occurrence, occurrence_name, references}]}] (the loop behind a conflict)}] (reads only: nothing changes)

Solve Joints

Read the components and joints guide.

ParameterTypeRequiredDescription
quietNo
dof_free_onlyNodof lists only occurrences that can still move; omitted.dof counts the rest
Automation details

Command ID: joint.solve

Parameters:

re-place the occurrences from the joints; quiet?, dof_free_only? (dof lists only occurrences that can still move; omitted.dof counts the rest) → conflicts, errors, dof

Sweep Joint

Read the components and joints guide.

ParameterTypeRequiredDescription
jointid|nameYes
fromits value the sweep runs betweenYes
toits value the sweep runs betweenYesdegrees for angles, mm for distances, or expressions
indexNowhich value, default 0
stepNobetween samples, in the joint's unit; default: fine enough that no part passes through another between two
refinemmNothe first contact is bisected until no part moves more than this between the last clear value and the touching one; default 0.01
occurrences[ids or names]Nochecked against each other; default every occurrence
against[ids or names]Nothe parts that stay: each of `occurrences` only against these
contact_setstrueNothe pairs of the design's contact sets
exclude_pairs[[a, b]]Nooccurrences by id or name: pairs of bodies under a and b are not checked, such as a pin in its hole
budget_ssecondsNoat most 86400; past them the sweep stops with what it found; its work is then not capped. Without it the work caps, 4096 samples, 64 bisection steps and 500 million triangle tests, stop it the same way
report_gapsboolNothe nearest gap at every sample, default false
applyboolNoleave the design where the sweep stopped; default false: the design is not changed
Automation details

Command ID: joint.sweep

Parameters:

joint: id|name; from, to: its value the sweep runs between (degrees for angles, mm for distances, or expressions); index? (which value, default 0); step? (between samples, in the joint's unit; default: fine enough that no part passes through another between two); refine?: mm (the first contact is bisected until no part moves more than this between the last clear value and the touching one; default 0.01); occurrences?: [ids or names] (checked against each other; default every occurrence), with against?: [ids or names] (the parts that stay: each of `occurrences` only against these), or contact_sets?: true (the pairs of the design's contact sets); exclude_pairs?: [[a, b]] (occurrences by id or name: pairs of bodies under a and b are not checked, such as a pin in its hole); budget_s?: seconds (at most 86400; past them the sweep stops with what it found; its work is then not capped. Without it the work caps, 4096 samples, 64 bisection steps and 500 million triangle tests, stop it the same way); report_gaps?: bool (the nearest gap at every sample, default false); apply?: bool (leave the design where the sweep stopped; default false: the design is not changed) → stopped_at (the last value clear of contact, or where a loop or limit stopped it; null: it reached `to`), stopped_by: {a, b, at: [x,y,z] (where they touch, world), a_part, b_part: {component, path: [occurrence names], path_ids} (where each touching body sits)} | "loop" | "limit" | "budget" (stopped_at: the last value checked clear) | null, samples: [{value, min_gap_mm?, pair?, parts?}], min_gap? (report_gaps: {part: {mm, at_value, to}}, the nearest each part came to another), unit, gap_method ("mesh": distances between the tessellations), gap_tolerance_mm (how far those can be off: 0 when every face is flat), pairs (checked), touching_at_start: [[a, b]] (pairs already touching at `from`, such as parts joined face to face or a door on its frame: these stop it only once they pass into each other deeper than they start), touching_parts (where their bodies sit), budget_s, budget_exceeded, budget_ran_out: "time" | "samples" | "bisections" (a contact reported less refined than `refine`) | "intersections" | "work" | null, applied. The parts are tested at the samples and through the bisection; the motion is on a copy (closed loops follow, contact sets do not stop it)

Find Joint Limits

Read the components and joints guide.

ParameterTypeRequiredDescription
jointid|nameYes
indexNoone value; default every value
refineNo
stepNo
occurrencesNo
againstNo
contact_setsNo
exclude_pairsNoas joint.sweep
Automation details

Command ID: joint.find_limits

Parameters:

joint: id|name; index? (one value; default every value); refine?, step?, occurrences?, against?, contact_sets?, exclude_pairs? (as joint.sweep) → values: [{index, dof, unit, value (now), min, max, min_by, max_by, range}], each value swept both ways from where it is, its own limits ignored, closed loops following; each side stops at the first contact (bisected to `refine`), where a loop cannot close, or at another limit (another value's, or another joint's through a motion link): min_by/max_by {a, b, at} | "loop" | "limit" | "budget" (its work ran out: the last value checked clear) | "turn" (an angle with no contact within a turn: a turn from the other side, or ±180° from now when nothing is met at all) | "range" (a distance with no contact within the parts' reach: min/max null); touching_at_start, overlapping_at_start: [{a, b, depth_mm}] (already passing into each other: they stop it only going deeper), refine_mm, gap_method, gap_tolerance_mm, pairs (0: no two parts to check, so nothing is swept). The design is not changed

Other commands: contact

Edit Contact Set

ParameterTypeRequiredDescription
setid|nameYes
occurrencesNo
nameNo
suppressedboolNo
deleteboolNo
Automation details

Command ID: contact.edit

Parameters:

set: id|name; occurrences?; name?; suppressed?: bool; delete?: bool

List Contact Sets

Automation details

Command ID: contact.list

Parameters:

→ sets, enabled, all

Check Contact

Automation details

Command ID: contact.check

Parameters:

→ pairs in contact sets that pass through each other now

Other commands: motion

Play Motion Study

Read the components and joints guide.

ParameterTypeRequiredDescription
studyid|nameYes
stepYes0…steps
quietboolNopositions of only the occurrences that moved
Automation details

Command ID: motion.play

Parameters:

study: id|name; step (0…steps) — sets the joints to the study's values there (contact sets stop them); quiet?: bool (positions of only the occurrences that moved) → values: [{joint, values: [{name, value, unit}]}], positions, moved: whether any occurrence moved, unmoved: [{joint, name, reason}] (keyed joints that can move nothing, such as a chain joined to nothing grounded)

Export Motion Study

Read the components and joints guide.

ParameterTypeRequiredDescription
studyYes
samplesNodefault steps + 1
pathNo.json or .csv
Automation details

Command ID: motion.export

Parameters:

study; samples? (default steps + 1); path? (.json or .csv) → occurrence positions per step (the design is not changed)

Export Motion Animation

Read the components and joints guide.

ParameterTypeRequiredDescription
studyid|nameYes
jointid|name with from and toYesdegrees for angles, mm for distances, or expressions
viewid|nameYesan exploded view, coming apart from the assembled placement
samplesNoframes, 2…1000; default the study's steps + 1, 100 for a joint, 41 for a view or 81 with back
widthNo
heightNo16…4096 pixels, default 800 × 500
camera{target, yaw, pitch, roll?, distance, fov?, up?}Noui.camera's reply; fields left out keep the default view: view.apply's camera, or the home view framing the model, for a view both assembled and exploded
fpsNo1…50, default 20
Automation details

Command ID: motion.export_animation

Parameters:

study: id|name, or joint: id|name with from and to (degrees for angles, mm for distances, or expressions) and index?, or view: id|name (an exploded view, coming apart from the assembled placement) with back? (default false; true: back together too, exploded at the middle frame of an odd count); path: a .gif file, or a folder for PNG frames (frame-0001.png, frame-0002.png, …); samples? (frames, 2…1000; default the study's steps + 1, 100 for a joint, 41 for a view or 81 with back); width?, height? (16…4096 pixels, default 800 × 500); camera?: {target, yaw, pitch, roll?, distance, fov?, up?} (ui.camera's reply; fields left out keep the default view: view.apply's camera, or the home view framing the model, for a view both assembled and exploded); fps? (1…50, default 20); grid?, axes? (default true: the ground grid and the origin's axes) - draws the study as it plays, the joint as it is driven or the view as it explodes, with the headless renderer → path, format, frames, width, height, fps (GIF), bytes, renderer, stopped_at, stopped_by_loop, stopped_by_contact (the design is not changed, nor its placements)

Keep Motion Trace

Read the components and joints guide.

ParameterTypeRequiredDescription
studyid|nameYes
jointid|name with from and toYesdegrees for angles, mm for distances, or expressions
nameNodefault Motion TraceN
auto_updateboolNodefault true
point_refjoint origin snap - keeps the trace as a root 3D sketch splineNo
Automation details

Command ID: motion.trace.keep

Parameters:

occurrence: id|name, or an occurrence path [ids] (an instance inside sub-assemblies); point: [x,y,z] world point on it, where it is placed now; study: id|name, or joint: id|name with from and to (degrees for angles, mm for distances, or expressions) and index? (which value, default 0); samples? (2…500, default the study's steps + 1, or 100) - the point's path as the study plays or the joint is driven, closed loops following; name? (default Motion TraceN); auto_update?: bool (default true); point_ref?: joint origin snap - keeps the trace as a root 3D sketch spline. Associative curves follow mechanism and driving-input edits; false keeps a fixed curve. point_ref retains a geometry snap; otherwise point is retained in component coordinates → sketch, name, curves, points

Edit Motion Trace

Read the components and joints guide.

ParameterTypeRequiredDescription
sketchid|nameYes
indexNo
samplesNo2…500
auto_updatefalse to detachNo
Automation details

Command ID: motion.trace.edit

Parameters:

sketch: id|name; joint? with from and to, or study?; index?; samples? (2…500); auto_update?: false to detach. Edits a saved associative trace's driving conditions in one undo step

Plot Motion Study

Read the components and joints guide.

ParameterTypeRequiredDescription
studyid|nameYes
joints[id|name]Nodefault: every joint that moves
samplesNo3…1000, default the study's steps + 1
Automation details

Command ID: motion.plot

Parameters:

study: id|name; joints?: [id|name] (default: every joint that moves); occurrence? and point? (a point of a part to follow, as motion.trace takes them); samples? (3…1000, default the study's steps + 1); duration?: seconds the whole study takes, 0.001 or more (velocities and accelerations then per second, else per step) → step: [the study step of each sample], time?: [s], joints: [{joint, name, index, dof, unit, value, velocity, acceleration, velocity_unit, acceleration_unit}] (degrees for angles, mm for distances; angles unwrapped), point?: {occurrence, position: [[x,y,z]…], velocity, acceleration (vectors), speed, acceleration_norm, unit, velocity_unit, acceleration_unit}, samples (taken), stopped_at, stopped_by_loop, stopped_by_contact. The study plays as motion.play plays it, each sample driven from the one before, on a copy (the design is not changed); velocities and accelerations are finite differences between samples (central, one-sided at the ends)

Motion Interference

Read the components and joints guide.

ParameterTypeRequiredDescription
studyid|nameYes
occurrences[ids or names]Notwo or more, checked against each other; default every occurrence
against[ids or names]Nothen each of `occurrences` is checked only against these, such as an arm against the parts it must miss
contact_setstrueNothe pairs of the design's contact sets
exclude_pairs[[a, b]]Nooccurrences by id or name: pairs of bodies under a and b are not checked
samplesNo2…1000, default the study's steps + 1
Automation details

Command ID: motion.interference

Parameters:

study: id|name; occurrences?: [ids or names] (two or more, checked against each other; default every occurrence), with against?: [ids or names] (then each of `occurrences` is checked only against these, such as an arm against the parts it must miss), or contact_sets?: true (the pairs of the design's contact sets); exclude_pairs?: [[a, b]] (occurrences by id or name: pairs of bodies under a and b are not checked); samples? (2…1000, default the study's steps + 1); budget_s?: seconds (above 0, at most 86400; default a fixed work budget): the time the check may take instead, looked at between samples, for a mechanism such as a gear train that needs longer → collisions: [{a, b, first_step, last_step, steps: [[from, to]…] (the step ranges where they overlap), volume_mm3 (the most volume they share at a sample, worked out exactly from the bodies), deepest_step (the first sample sharing that volume), not_measured (null, or why the volume was not worked out at every sample they overlap, such as a budget it ran past: then volume_mm3 and deepest_step are null, never an estimate), depth_mm (how far into each other at most: an estimate from points of the bodies' contact meshes, not exact)}], clear (every sample checked and none collide; never while truncated), pairs (checked), samples (taken), truncated (the work budget, or budget_s, ran out; checked_to: the last step checked), budget_s (when given), stopped_at, stopped_by_loop. The study plays as motion.play plays it but contact sets do not stop it, on a copy (the design is not changed). Parts are tested at the samples only: one that passes wholly through another between two samples is missed

List Motion Studies

Read the components and joints guide.

Automation details

Command ID: motion.list

No parameter description is provided by the command registry.

Delete Motion Study

Read the components and joints guide.

ParameterTypeRequiredDescription
studyYes
Automation details

Command ID: motion.delete

Parameters:

study

Simulate Motion

Read the components and joints guide.

ParameterTypeRequiredDescription
durationsYes> 0, at most 3600
stepsNodefault 0.001
output_intervalsNodefault duration/100, at least the step with rk4
gravity[x,y,z] mm/s²Nodefault [0,0,-9806.65]
integrator"rk4"Nodefault, fixed steps
drives[{joint: id|name, index?: 0, profile} or {study: id|name, duration?: s (default the simulated duration)}]Noa joint value made to follow a profile; the profile's numbers are degrees for angular values and mm for linear ones, rates per second; profile: {type: constant, value} | {type: linear, value? (default the joint's value now; 0 for a motor), rate} | {type: ramp, from, to, start?, duration} (cycloidal) | {type: harmonic, offset?, amplitude, frequency (Hz), phase? (deg)} | {type: table, points: [[s, value], …]}; start it at the joint's own value; a study's steps are spread over its duration, two keys at one step are refused; table and study drives change speed abruptly at their points, so the efforts reported miss the impulses there; driving a motion link's follower warns
studyid|nameNoas drives: [{study}]
forces[{type: motor, joint, index?, effort: profile (N·m on angles, N on lengths)} | {type: joint_spring, joint, index?, stiffness (N·m/rad or N/mm), damping? (N·m·s/rad or N·s/mm), rest? (deg or mm)} | {type: spring, a: {occurrence, point?}, b: {occurrence, point?}, stiffness (N/mm), damping? (N·s/mm), free_length (mm), preload? (N)} | {type: load, occurrence, point?, force? [N], torque? [N·m]}]Nopoints are world mm at the start, default the centre of mass, or the world origin on the ground: occurrence 0 or a grounded one
use_joint_dynamicsboolNodefault false: apply the damping of joint.dynamics; its friction is not simulated
end_stops{stiffness? (N/mm or N·m/rad: compliant end-stops), damping? (N·s/mm or N·m·s/rad), limits?: [{joint, index?, bound?: min|max, stiffness?, damping?}]}Noa joint value's saved limits are rigid stops by default; with a stiffness they are one-sided spring-dampers that only push back, both limits of a value alike, and one a value starts past pushes it back at once; a driven or linked value keeps its rigid stops, with a warning
dampers[{joint, index?, bound: min|max, stroke (mm or deg, at most the travel between the limits), model?: linear|quadratic|table, c? (N·s/mm, N·s²/mm²; N·m·s/rad, N·m·s²/rad² on an angle), table?: [[stroke, force], …] (mm or deg, N or N·m), return_spring?: {stiffness, preload?}, max_energy_per_impact_j?, max_energy_per_hour_j?}]Noan end-of-stroke damper starts a stroke before the limit it is at: while the compression grows it resists with c·v, c·v² or the table's force (which ramps up from nothing over the first mm/s or deg/s of speed, longer with a long fixed step on a light mass), only then, and the return spring pushes back; the limit's stop takes over where the stroke is used up (bottomed out); a damper on a driven or linked value is left out with a warning; a warning says when an impact absorbs more than the per-impact capacity, or the energy absorbed over the run, extrapolated to an hour, more than the per-hour one
include_reactionsboolNodefault false: per sample reactions: [{joint, force: [N], torque: [N·m]}], what the joint puts on its B side, world, about the joint frame's origin; the torque leaves out what drives, motors, joint springs, end-stops and dampers apply about the joint's free axis
summary_onlyboolNodefault false: no samples, only the summary
output_pathfile pathNoalso writes the whole result, samples included, as JSON; the files an agent may write only
Automation details

Command ID: motion.simulate

Parameters:

duration: s (> 0, at most 3600); step?: s (default 0.001); output_interval?: s (default duration/100, at least the step with rk4); gravity?: [x,y,z] mm/s² (default [0,0,-9806.65]); integrator?: "rk4" (default, fixed steps) or {type: "adaptive", rel_tol?, abs_tol?, min_step?, max_step?} (Dormand-Prince 5(4); tolerances default 1e-6, steps 1e-9 s to output_interval); drives?: [{joint: id|name, index?: 0, profile} or {study: id|name, duration?: s (default the simulated duration)}] (a joint value made to follow a profile; the profile's numbers are degrees for angular values and mm for linear ones, rates per second; profile: {type: constant, value} | {type: linear, value? (default the joint's value now; 0 for a motor), rate} | {type: ramp, from, to, start?, duration} (cycloidal) | {type: harmonic, offset?, amplitude, frequency (Hz), phase? (deg)} | {type: table, points: [[s, value], ...]}; start it at the joint's own value; a study's steps are spread over its duration, two keys at one step are refused; table and study drives change speed abruptly at their points, so the efforts reported miss the impulses there; driving a motion link's follower warns); study?: id|name (as drives: [{study}]); forces?: [{type: motor, joint, index?, effort: profile (N·m on angles, N on lengths)} | {type: joint_spring, joint, index?, stiffness (N·m/rad or N/mm), damping? (N·m·s/rad or N·s/mm), rest? (deg or mm)} | {type: spring, a: {occurrence, point?}, b: {occurrence, point?}, stiffness (N/mm), damping? (N·s/mm), free_length (mm), preload? (N)} | {type: load, occurrence, point?, force? [N], torque? [N·m]}] (points are world mm at the start, default the centre of mass, or the world origin on the ground: occurrence 0 or a grounded one); use_joint_dynamics?: bool (default false: apply the damping of joint.dynamics; its friction is not simulated); end_stops?: {stiffness? (N/mm or N·m/rad: compliant end-stops), damping? (N·s/mm or N·m·s/rad), limits?: [{joint, index?, bound?: min|max, stiffness?, damping?}]} (a joint value's saved limits are rigid stops by default; with a stiffness they are one-sided spring-dampers that only push back, both limits of a value alike, and one a value starts past pushes it back at once; a driven or linked value keeps its rigid stops, with a warning); dampers?: [{joint, index?, bound: min|max, stroke (mm or deg, at most the travel between the limits), model?: linear|quadratic|table, c? (N·s/mm, N·s²/mm²; N·m·s/rad, N·m·s²/rad² on an angle), table?: [[stroke, force], ...] (mm or deg, N or N·m), return_spring?: {stiffness, preload?}, max_energy_per_impact_j?, max_energy_per_hour_j?}] (an end-of-stroke damper starts a stroke before the limit it is at: while the compression grows it resists with c·v, c·v² or the table's force (which ramps up from nothing over the first mm/s or deg/s of speed, longer with a long fixed step on a light mass), only then, and the return spring pushes back; the limit's stop takes over where the stroke is used up (bottomed out); a damper on a driven or linked value is left out with a warning; a warning says when an impact absorbs more than the per-impact capacity, or the energy absorbed over the run, extrapolated to an hour, more than the per-hour one); include_reactions?: bool (default false: per sample reactions: [{joint, force: [N], torque: [N·m]}], what the joint puts on its B side, world, about the joint frame's origin; the torque leaves out what drives, motors, joint springs, end-stops and dampers apply about the joint's free axis); summary_only?: bool (default false: no samples, only the summary); output_path?: file path (also writes the whole result, samples included, as JSON; the files an agent may write only) → groups: [{group, occurrences, mass_kg}] (the moving rigid groups, as assembly.mass_properties finds them), joints: [ids] and links: [indices] simulated, samples: [{time, groups: [{group, origin, x, y, z}] (each moving group's frame, world mm), joints: [{joint, values, at_stop?}] (deg and mm; at_stop: which of the joint's values sit at a saved limit), energy: {kinetic, potential (gravity only), input? (J of work put in by drives, motors and loads, when there are any), spring?, dissipated? (J stored in springs and taken out by dampers and stops, with forces, use_joint_dynamics, compliant end_stops or dampers)}, drives?: [{joint, index, effort (N·m or N), velocity (deg/s or mm/s), power_w}] (what each drive takes), reactions? (with include_reactions)}], summary? (with drives, forces, include_reactions or summary_only: {joints: [{joint, max_force_n, rms_force_n, max_torque_nm, rms_torque_nm}], drives: [{joint, index, max_effort, rms_effort, max_power_w, rms_power_w}]}, peaks are absolute values and RMS values are over the output samples), impacts? (each arrival on a limit's stop, a compliant end-stop or a damper, by time: [{time, joint, index, bound: min|max, element: end_stop|compliant_stop|damper, arrival_speed (deg/s or mm/s), peak_force? (N or N·m, dampers and compliant stops), impulse? (N·s or N·m·s, rigid stops), absorbed_energy_j (a rigid stop takes the kinetic energy of what it stops, also counted as dissipated), stroke_used? (deg or mm), bottomed_out? (dampers)}]), output_path?, steps, max_constraint_error (the maximum absolute equation residual at output samples, in mm for translations, radians for angular links and dimensionless for axis alignment), redundant_equations, warnings. Starts where the assembly is, at rest, every body at its material's density; revolute, slider, cylindrical, planar, ball and rigid joints between rigid groups, and gear, rack-and-pinion and screw links; a joint's saved limits stop and hold its values in the run (a hard stop with no bounce, unless end_stops makes them compliant; a ball joint's limits are left out with a warning); a joint inside one rigid group or between fixed groups is left out. Read-only: the design does not move

Part Load Case

Read the components and joints guide.

ParameterTypeRequiredDescription
occurrenceid|nameYesthe part; it must be in a moving rigid group
simulation{duration, step?, output_interval?, gravity?, integrator?, drives?, study?, forces?, use_joint_dynamics?, end_stops?, dampers?}Yesthe run, the inputs of motion.simulate; its output_path, summary_only and include_reactions are not accepted here; what the stops of joint limits, end-stops and dampers hold is not reported: a run where one acts gives balance.complete false with a warning
rigid_joints[id|name]Norigid joints of the part's rigid group to cut, each touching the part (others are refused, a repeat is cut once), default every one tying the part to a neighbour, [] none; a joint on a closed loop of rigid joints is statically indeterminate and is left out with a warning; a part tied to its group by nesting, not a joint, gives balance.complete false with a warning
bolts[{name?, interface: id|name (a joint of the result), positions?: [[x,y,z]] (world mm at the start, projected on the interface plane), occurrences?: [id|name] (bolt parts seated at the interface: their frame origins), seat_tolerance?: mm (default 1)}]Nothe wrench of the interface shared over the bolts as a rigid bolt group: axial N/n plus M·y/Σy² bending, shear F/n plus T·r/Σr² torsion, about the group's centroid; equal bolts, rigid plates, no preload or prying
include_samplesboolNodefault false: peaks and envelopes only
output_pathfile pathNoalso writes the load case, every instant included, as JSON or CSV; the files an agent may write only
format"json"|"csv"Nodefault csv for a path ending in .csv, else json
Automation details

Command ID: motion.load_case

Parameters:

occurrence: id|name (the part; it must be in a moving rigid group); simulation: {duration, step?, output_interval?, gravity?, integrator?, drives?, study?, forces?, use_joint_dynamics?, end_stops?, dampers?} (the run, the inputs of motion.simulate; its output_path, summary_only and include_reactions are not accepted here; what the stops of joint limits, end-stops and dampers hold is not reported: a run where one acts gives balance.complete false with a warning); rigid_joints?: [id|name] (rigid joints of the part's rigid group to cut, each touching the part (others are refused, a repeat is cut once), default every one tying the part to a neighbour, [] none; a joint on a closed loop of rigid joints is statically indeterminate and is left out with a warning; a part tied to its group by nesting, not a joint, gives balance.complete false with a warning); bolts?: [{name?, interface: id|name (a joint of the result), positions?: [[x,y,z]] (world mm at the start, projected on the interface plane), occurrences?: [id|name] (bolt parts seated at the interface: their frame origins), seat_tolerance?: mm (default 1)}] (the wrench of the interface shared over the bolts as a rigid bolt group: axial N/n plus M·y/Σy² bending, shear F/n plus T·r/Σr² torsion, about the group's centroid; equal bolts, rigid plates, no preload or prying); include_samples?: bool (default false: peaks and envelopes only); output_path?: file path (also writes the load case, every instant included, as JSON or CSV; the files an agent may write only); format?: "json"|"csv" (default csv for a path ending in .csv, else json) → occurrence, name, group, mass_kg, center_of_mass (mm, part coordinates), inertia_kg_mm2 (about the centre of mass, part axes), gravity, instants, interfaces: [{name, kind: moving_joint|rigid_cut|applied_load, joint?, joint_kind?, other_occurrence?, frame: {origin, x, y, z} (part coordinates; the wrench is about its origin), faces?: [{side: near|far, occurrence, face, role}], peaks: {max_force, max_moment, combined}: {time, score, force, moment}, envelope: {fx, fy, fz, mx, my, mz}: {min, max, time_of_min, time_of_max}, samples?: [{time, force [N], moment [N·m]}] (what the neighbour puts on the part, part axes)}], inertial: {weight_n, max_acceleration, max_angular_velocity, max_angular_acceleration, max_inertial_force, their times, samples?: [{time, gravity, acceleration, angular_velocity, angular_acceleration, weight, inertial_force, inertial_moment}]}, bolt_groups?: [{name, interface, centroid, bending_carried, torsion_carried, bolts: [{index, position, in_plane, min_axial, max_axial, max_shear, their times, samples?: [{time, axial [N], shear [N, N]}]}]}], balance: {complete, max_force_residual, max_moment_residual} (weight + inertial loads + interface wrenches, ~0 when complete), instants, steps, max_constraint_error, warnings, output_path?. Read-only: the design does not move

Other commands: explode

Show Exploded View

ParameterTypeRequiredDescription
viewid|nameYesor none: back to the assembled placement
Automation details

Command ID: explode.show

Parameters:

view: id|name (or none: back to the assembled placement) — shown only; the design keeps its placements

List Exploded Views

Automation details

Command ID: explode.list

No parameter description is provided by the command registry.

Delete Exploded View

ParameterTypeRequiredDescription
viewYes
Automation details

Command ID: explode.delete

Parameters:

view

Other commands: layout

Apply Layout

ParameterTypeRequiredDescription
nameapply preset to current workspace through retained runtimeYes
expected_revisionapply preset to current workspace through retained runtimeNo
Automation details

Command ID: layout.apply

Parameters:

name, expected_revision?: apply preset to current workspace through retained runtime

Delete Layout

ParameterTypeRequiredDescription
namedelete a saved user layout from the injected catalogueYes
expected_revisiondelete a saved user layout from the injected catalogueNo
Automation details

Command ID: layout.delete

Parameters:

name, expected_revision?: delete a saved user layout from the injected catalogue; panels stay where they are

Inspect Layout

Automation details

Command ID: layout.get

Parameters:

{}: committed state and registered workspace summaries

Reset Layout

ParameterTypeRequiredDescription
expected_revisionrestore current workspace's registered defaultNo
Automation details

Command ID: layout.reset

Parameters:

expected_revision?: restore current workspace's registered default

Save Layout

ParameterTypeRequiredDescription
nameYes
replacefalseNooverwrite accepted for compatibility
expected_revisionsave complete envelope in injected catalogueNo
Automation details

Command ID: layout.save

Parameters:

name, replace?: false (overwrite accepted for compatibility), expected_revision?: save complete envelope in injected catalogue

Select Layout Workspace

ParameterTypeRequiredDescription
workspaceatomically remember outgoing and replace with destinationYes
expected_revisionatomically remember outgoing and replace with destinationNo
Automation details

Command ID: layout.workspace.select

Parameters:

workspace, expected_revision?: atomically remember outgoing and replace with destination

Other commands: panel

Run Panel Header Action

Automation details

Command ID: panel.action

Parameters:

target or legacy id, action, expected_revision?: invoke a registered owning-controller action

Activate Panel Tab

Automation details

Command ID: panel.activate

Parameters:

target or legacy id, expected_revision?: activate open tab without focus

Close Panel

Automation details

Command ID: panel.close

Parameters:

target or legacy id, expected_revision?: explicit guarded close

Collapse Panel Section

Automation details

Command ID: panel.collapse

Parameters:

target or legacy id, collapsed, expected_revision?

Dismiss Panel Peek

ParameterTypeRequiredDescription
expected_revisiondismiss temporary collapsed-panel presentationNo
Automation details

Command ID: panel.dismiss

Parameters:

expected_revision?: dismiss temporary collapsed-panel presentation

Float Panel

Automation details

Command ID: panel.float

Parameters:

target or legacy id, destination: new_section with floating location, expected_revision?

Focus Panel

Automation details

Command ID: panel.focus

Parameters:

target or legacy id, expected_revision?: reopen retained state, activate and request focus

Focus Next Panel

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.focus.next

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Focus Previous Panel

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.focus.previous

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

List Panels

Automation details

Command ID: panel.list

Parameters:

{}: committed state, active tabs, capabilities, availability and registered kinds

Move Panel

Automation details

Command ID: panel.move

Parameters:

target or legacy id, destination: new_section, join_tab or relative, activate?: false, expected_revision?

Move Panel to Next Zone

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.move.next_zone

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Redock Native Panel Section

ParameterTypeRequiredDescription
targetnative_hostYes
expected_revisionnative close redocks without cancelling contentNo
Automation details

Command ID: panel.native_close

Parameters:

target: native_host, expected_revision?: native close redocks without cancelling content

Open Panel

ParameterTypeRequiredDescription
kindYes
instanceYes
destinationrequired for new instanceNo
expected_revisionNo
Automation details

Command ID: panel.open

Parameters:

kind, instance, destination?: required for new instance, expected_revision?

Peek Collapsed Panel

Automation details

Command ID: panel.peek

Parameters:

target or legacy id, expected_revision?: transient presentation without resizing

Pop Out Panel

Automation details

Command ID: panel.popout

Parameters:

target or legacy id, destination: new_section with window location, expected_revision?: web lowers to floating

Reset Panel Sash

ParameterTypeRequiredDescription
firstreset adjacent dock pair to registered default ratioYes
secondreset adjacent dock pair to registered default ratioYes
expected_revisionreset adjacent dock pair to registered default ratioNo
Automation details

Command ID: panel.reset_pair

Parameters:

first, second, expected_revision?: reset adjacent dock pair to registered default ratio

Resize Panel Section

Automation details

Command ID: panel.resize

Parameters:

target or legacy id, size: {width,height}, thickness_only?: false by default; true changes Bottom height or side column width and ignores the other valid size component, expected_revision?

Resize Panel Sash

ParameterTypeRequiredDescription
firstconserve adjacent dock pair extentYes
secondconserve adjacent dock pair extentYes
first_sizeconserve adjacent dock pair extentYes
second_sizeconserve adjacent dock pair extentYes
expected_revisionconserve adjacent dock pair extentNo
Automation details

Command ID: panel.resize_pair

Parameters:

first, second, first_size, second_size, expected_revision?: conserve adjacent dock pair extent

Resize Panel Sash Down

Default keyboard shortcut: Down

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.sash.down

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Resize Panel Sash Left

Default keyboard shortcut: Left

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.sash.left

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Reset Focused Panel Sash

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.sash.reset

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Resize Panel Sash Right

Default keyboard shortcut: Right

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.sash.right

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Resize Panel Sash Up

Default keyboard shortcut: Up

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.sash.up

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Toggle Focused Panel

ParameterTypeRequiredDescription
expected_revisionresolve the focused shared panel control in the live hostNo
Automation details

Command ID: panel.toggle

Parameters:

expected_revision?: resolve the focused shared panel control in the live host

Other commands: config

Configuration Column

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
paramNotarget name or id
featureNotarget name or id
jointNotarget name or id
materialNotarget name or id
appearanceNotarget name or id
folderNotarget name or id
deleteboolNo
Automation details

Command ID: config.column

Parameters:

param? | feature? | joint? | material? | appearance? | folder? (target name or id); delete?: bool

Configuration Row

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameYesa row's name, or its id from config.table
fromNorow to copy, by name or id; default current values
values{column key: expression, suppression, material name, appearance name or Look object}No
renameNo
indexNomove the row to this place, 0 = first
deleteboolNo
Automation details

Command ID: config.row

Parameters:

name (a row's name, or its id from config.table); from? (row to copy, by name or id; default current values); values?: {column key: expression, suppression, material name, appearance name or Look object}; rename?; index? (move the row to this place, 0 = first); delete?: bool

Activate Configuration

Read the parameters and expressions guide.

Automation details

Command ID: config.activate

Parameters:

row: a row's name, or its id from config.table — sets its parameter values and suppressions

Update Configuration from Design

Read the parameters and expressions guide.

Automation details

Command ID: config.update_from_design

Parameters:

row?: a row's name, or its id from config.table (default: the active row) — sets its cells to the design's current values and makes it the active row; only the table's columns, other changes are listed in not_captured

Preview Configuration

Read the parameters and expressions guide.

Automation details

Command ID: config.preview

Parameters:

row: a row's name, or its id from config.table — validates a rebuild without changing the design or history

Configuration Rule

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
rule{id,name,enabled,condition,effect}No
rules[rule…]Noadded or replaced together, then the rows checked once
Automation details

Command ID: config.rule

Parameters:

rule?: {id,name,enabled,condition,effect}; rules?: [rule…] (added or replaced together, then the rows checked once); id? + delete?; id? + index? (ordered move)

Configuration Rules

Read the parameters and expressions guide.

Automation details

Command ID: config.rules

Parameters:

ordered typed rules, rows and active state

Other commands: parts

Standard Parts

ParameterTypeRequiredDescription
familyNo
Automation details

Command ID: parts.library

Parameters:

family? → families (name, standard, system: metric|inch, sizes, lengths) and, with family, each size's dimensions (mm)

Insert Part

ParameterTypeRequiredDescription
familyYessocket_head_cap_screw | button_head_cap_screw | countersunk_socket_screw | hex_bolt | hex_nut | washer | set_screw | dowel_pin | bearing | hex_bolt_gost | socket_head_cap_screw_gost | set_screw_gost | hex_nut_gost | hex_nut_thin_gost | washer_gost | washer_large_gost | dowel_pin_gost | hex_cap_screw_inch | hex_nut_inch | washer_sae | washer_uss | washer_narrow, also iso_7092, din_433, narrow_washer
sizeYes"M6", "608" for bearings, "1/2-13 UNC" for inch screws and nuts, "1/2" for inch washers
lengthNomm, inch parts too; screws, bolts, set screws, pins; default a standard length near 2.5 d
flipboolNodefault false: turned over, head into the material with at, +z against direction with point
materialphysical materialNodefault "Steel"
hardness_class"200 HV" | "300 HV" | "380 HV"Nowasher, washer_narrow: saved as a part property; a washer under 300 HV under a property class 10.9 or 12.9 screw adds a warning
property_class"4.6" … "12.9"NoISO 898-1, metric only
nameNo
threadfor a part with a metric threadNo
cosmeticYesdefault: recorded on the face, the body unchanged
modeledYescut into the body over the standard's thread length from the tip, the start chamfered; slower, and refused past 80 turns
auto_lengthboolNodefault false; with at, and no length: measure the stack of coaxial holes under each picked rim and take the shortest standard length that engages the tapped layer min_engagement_d? nominal diameters (default 1.5; capped at the tapped layer's depth, with a warning) without passing a blind tapped hole's floor less two thread pitches (bottoming clearance), or, with no thread, with through_bolt?: bool, clears a nut and two pitches; washer_thickness_mm? (default 0) is the thickness of a washer not placed in the model, added under the head (ignored, with a warning, when the pick is on a placed washer); when nothing fits the default length stays and warnings says why
Automation details

Command ID: parts.insert

Parameters:

family (socket_head_cap_screw | button_head_cap_screw | countersunk_socket_screw | hex_bolt | hex_nut | washer | set_screw | dowel_pin | bearing | hex_bolt_gost | socket_head_cap_screw_gost | set_screw_gost | hex_nut_gost | hex_nut_thin_gost | washer_gost | washer_large_gost | dowel_pin_gost | hex_cap_screw_inch | hex_nut_inch | washer_sae | washer_uss | washer_narrow, also iso_7092, din_433, narrow_washer); size ("M6", "608" for bearings, "1/2-13 UNC" for inch screws and nuts, "1/2" for inch washers); length? (mm, inch parts too; screws, bolts, set screws, pins; default a standard length near 2.5 d); at?: [x,y,z] on a hole's rim or wall (the part seats on the hole's face with a rigid joint, head on the picked face and shank into the hole, whichever way the face points) or on a flat face (seated at that point, head out of the face), or a list of them (one component, placed and seated once per pick) | point?: [x,y,z] with direction?: [x,y,z] (no joint: the part's seating plane, under a head or the bottom of a nut, washer or bearing, the top of a set screw, pin or countersunk head, goes to point, and direction is its +z, from the shank's tip toward the head; default [0,0,1], head up, shank down -z); flip?: bool (default false: turned over, head into the material with at, +z against direction with point); material?: physical material (default "Steel"); hardness_class?: "200 HV" | "300 HV" | "380 HV" (washer, washer_narrow: saved as a part property; a washer under 300 HV under a property class 10.9 or 12.9 screw adds a warning); property_class?: "4.6" … "12.9" (ISO 898-1, metric only) (screws and bolts: saved as a part property); name?; thread?: for a part with a metric thread, cosmetic (default: recorded on the face, the body unchanged) | modeled (cut into the body over the standard's thread length from the tip, the start chamfered; slower, and refused past 80 turns); auto_length?: bool (default false; with at, and no length: measure the stack of coaxial holes under each picked rim and take the shortest standard length that engages the tapped layer min_engagement_d? nominal diameters (default 1.5; capped at the tapped layer's depth, with a warning) without passing a blind tapped hole's floor less two thread pitches (bottoming clearance), or, with no thread, with through_bolt?: bool, clears a nut and two pitches; washer_thickness_mm? (default 0) is the thickness of a washer not placed in the model, added under the head (ignored, with a warning, when the pick is on a placed washer); when nothing fits the default length stays and warnings says why) → component, occurrence, thread? (how the thread was made, for a part with a metric thread), joint?, directions (each placement's head direction in the world, the one chosen), and with at: occurrences, joints (one per pick, in pick order); hardness_class?, property_class?, length_mm?, warnings? (non-blocking)

Resolve Fastener Seats

ParameterTypeRequiredDescription
countersunk_shank_diametermm for a 90-degree countersinkNo
Automation details

Command ID: parts.seats

Parameters:

picks: face or edge selections on bore walls, countersinks or their rims; countersunk_shank_diameter?: mm for a 90-degree countersink → one named joint origin, world point and axes and signed shank offset per distinct hole

Change Part Size

ParameterTypeRequiredDescription
componentid|name of an inserted partYes
sizeNo
Automation details

Command ID: parts.resize

Parameters:

component: id|name of an inserted part; size?; length? — rebuilds it (joints keep it seated); thread?: cosmetic | modeled, as parts.insert takes it (left out: as the part has it)

Other commands: pulley

Insert Pulley

ParameterTypeRequiredDescription
profileYesgt2: 2 mm pitch | htd3m | htd5m
teethYes10..200: the grooves
belt_widthNomm, 1..100, default 6 for gt2, 9 for htd3m, 15 for htd5m; the toothed part is 1 mm wider so the belt runs free
flangesNobool, default true: a flange at each end
bore_diameterNomm: an axle hole; none without it
bore_offsetNomm: the hole's centre along +X
nameNo
Automation details

Command ID: pulley.insert

Parameters:

profile (gt2: 2 mm pitch | htd3m | htd5m), teeth (10..200: the grooves), belt_width? (mm, 1..100, default 6 for gt2, 9 for htd3m, 15 for htd5m; the toothed part is 1 mm wider so the belt runs free), flanges? (bool, default true: a flange at each end), bore_diameter? (mm: an axle hole; none without it), bore_offset? (mm: the hole's centre along +X), name? → component, occurrence, name, pitch_diameter, outside_diameter, width (mm, flanges included)

Other commands: document

Change Design Units

ParameterTypeRequiredDescription
unitsmm|cm|m|in|ftYesdisplay and unit-less parameters; values keep their meaning
Automation details

Command ID: document.units

Parameters:

units: mm|cm|m|in|ft (display and unit-less parameters; values keep their meaning)

Design Properties

Automation details

Command ID: document.metadata

Parameters:

→ metadata: the design's metadata object as saved (other tools' keys too); properties: each of SolidCraft's design properties (project, part number, revision…), its text or null (absent, or not text)

Change Design Properties

Automation details

Command ID: document.metadata.set

Parameters:

key and value, or values: {key: value, …} (all or nothing, one undo step). SolidCraft's keys, the ones document.metadata's properties lists, take text ("" or null removes); another tool's data goes under its reverse-DNS key such as com.example.tool (an object; null removes) → metadata, changed: [keys]

Remove Design Property

ParameterTypeRequiredDescription
key[keys]Yes
keys[keys]Yesany key, also one another tool wrote
Automation details

Command ID: document.metadata.remove

Parameters:

key, or keys: [keys] (any key, also one another tool wrote) → metadata, removed: [keys that were there]

Inspect Design

ParameterTypeRequiredDescription
measureboolNoinclude body measurements
sketch_countsboolNoeach sketch also gives its plane and its number of points and constraints
timelinetrue| "summary"| falseNodefault; each feature as id, name, type, with error, warning, suppressed and rolled_back only when set; left out
bodiestrue| "names"| falseNodefault; only the body names, nothing measured; left out
Automation details

Command ID: document.inspect

Parameters:

measure?: bool (include body measurements); sketch_counts?: bool (each sketch also gives its plane and its number of points and constraints); timeline?: true (default) | "summary" (each feature as id, name, type, with error, warning, suppressed and rolled_back only when set) | false (left out); bodies?: true (default) | "names" (only the body names, nothing measured) | false (left out)

Design Revision

Automation details

Command ID: document.revision

Parameters:

→ document_id (the open design's identity, new on opening or starting a design), revision (moves whenever the design, what is hidden or a component's uncaptured position changes, never on a selection or a view; from one counter for the whole run, so it never repeats). Read-only

List Designs

Automation details

Command ID: document.list

Parameters:

no parameters → documents: [{document_id, name, path, active, dirty}] of the open designs in tab order; active_document_id: the design every other command acts on; start_page: true while the window's File / Start page covers the designs, so the active design is not on screen (document.activate with its id shows it). The command line and headless servers have one design and no Start page; read-only

Show Design

Automation details

Command ID: document.activate

Parameters:

document_id: an open design's id, from document.list, document.revision or file.new with new_tab → document_id, name, path; shows that design's tab, closing the window's File / Start page when it covers the designs (also for the design already active), and every command after this one acts on it. Never edits a design or opens a dialog; an id that no open design has is an error

Close design

ParameterTypeRequiredDescription
document_idoptional guard naming the expected active design's idNofrom document.list or document.revision
Automation details

Command ID: document.close

Parameters:

document_id?: optional guard naming the expected active design's id (from document.list or document.revision) → closed_document_id, document_id, documents; closes the active clean design tab without discarding unsaved changes, switching to a neighbour tab or a fresh blank design if it was the last tab. Refuses unsaved changes, active file operations or prompts, or a mismatched document_id

Other commands: view

New Named View

Read the window tour.

ParameterTypeRequiredDescription
nameNo
camera{target: [x,y,z], yaw, pitch, distance, fov?, roll?, up?: z|y}Yesreplaces a view of the same name
Automation details

Command ID: view.save

Parameters:

name?; camera: {target: [x,y,z], yaw, pitch, distance, fov?, roll?, up?: z|y} (replaces a view of the same name)

Resize Plane

Read the window tour.

ParameterTypeRequiredDescription
planeconstruction plane nameYes
extent[x0, y0, x1, y1]| nullYesmm, in the plane's own x and y about its origin; back to a size that follows the zoom
Automation details

Command ID: view.plane_size

Parameters:

plane: construction plane name; extent: [x0, y0, x1, y1] (mm, in the plane's own x and y about its origin) | null (back to a size that follows the zoom). Display only

Rename Named View

Read the window tour.

ParameterTypeRequiredDescription
viewnameYes
nameYes
Automation details

Command ID: view.rename

Parameters:

view: name, name

Delete Named View

Read the window tour.

ParameterTypeRequiredDescription
viewnameYes
Automation details

Command ID: view.delete

Parameters:

view: name

Set Current View as Home

Read the window tour.

ParameterTypeRequiredDescription
camera{target: [x,y,z], yaw, pitch, distance, fov?, roll?, up?: z|y}YesHome goes to it, saved with the design; replaces the Home view set before
Automation details

Command ID: view.set_home

Parameters:

camera: {target: [x,y,z], yaw, pitch, distance, fov?, roll?, up?: z|y} (Home goes to it, saved with the design; replaces the Home view set before)

Reset Home View

Read the window tour.

Automation details

Command ID: view.reset_home

Parameters:

(none) Home frames the model from the iso view again

List Named Views

Read the window tour.

Automation details

Command ID: view.list

No parameter description is provided by the command registry.

Restore Named View

Read the window tour.

ParameterTypeRequiredDescription
viewfront|back|top|bottom|left|right|iso|home| a named view's nameNoframes the model
camera{target: [x,y,z], yaw, pitch, distance, fov?, roll?}Noradians, mm, about the frame the camera is in: the design's own FRONT and TOP when it has them, else its up axis; yaw: heading of the line of sight, 0 along +Y (Front), π/2 along +X (Left), π (Back), −π/2 (Right); pitch: the eye's elevation, within ±π/2, π/2 = Top; roll defaults to 0, turns the picture clockwise, must be finite and is clamped to ±π; frame? is the design frame the angles are in (as ui.camera and the view commands give it; null or missing: the design's current frame); the View angles readout shows these in degrees; up is refused: the up axis comes from the design settings
Automation details

Command ID: view.apply

Parameters:

view?: front|back|top|bottom|left|right|iso|home (frames the model) | a named view's name; or camera?: {target: [x,y,z], yaw, pitch, distance, fov?, roll?} (radians, mm, about the frame the camera is in: the design's own FRONT and TOP when it has them, else its up axis; yaw: heading of the line of sight, 0 along +Y (Front), π/2 along +X (Left), π (Back), −π/2 (Right); pitch: the eye's elevation, within ±π/2, π/2 = Top; roll defaults to 0, turns the picture clockwise, must be finite and is clamped to ±π; frame? is the design frame the angles are in (as ui.camera and the view commands give it; null or missing: the design's current frame); the View angles readout shows these in degrees; up is refused: the up axis comes from the design settings) → camera. The viewport (and the MCP screenshot) moves there. View state: not saved, not an undo step

Set View Orientation

Read the window tour.

ParameterTypeRequiredDescription
setfront|topNothe principal axis nearest `camera`'s view becomes that face; the other keeps its place when it can
camera{target, yaw, pitch, distance, fov?, roll?, up?, frame?}Yesthe view, as ui.camera and the view commands give it
Automation details

Command ID: view.frame

Parameters:

set?: front|top (the principal axis nearest `camera`'s view becomes that face; the other keeps its place when it can), camera: {target, yaw, pitch, distance, fov?, roll?, up?, frame?} (the view, as ui.camera and the view commands give it); or reset?: true (back to the up axis preference). The design's standard views, Home and the orbit follow its FRONT and TOP; geometry doesn't move. Saved with the design, an undo step; the viewport turns to the face that was set → front, top (world axes) or null

Viewport Status Details

Read the window tour.

Automation details

Command ID: view.status_details

Parameters:

no parameters → current effect settings/detail capabilities and retained per-seam Continuity diagnostics, with current geometry validity; read-only, no evaluation

Viewport Status Items

Read the window tour.

Automation details

Command ID: view.status_items

Parameters:

no parameters → {items}; persistent viewport effects, oldest slot first, with structured settings and executable clear requests; read-only, no model evaluation

Browser Tree

Read the window tour.

ParameterTypeRequiredDescription
visibleboolNoomitted: toggle
Automation details

Command ID: view.browser

Parameters:

visible?: bool (omitted: toggle) → visible?; show or hide the Browser tree panel, the design's tree of components, bodies and sketches (window setting)

Fit

Default keyboard shortcut: End

Read the window tour.

Automation details

Command ID: view.fit

Parameters:

no parameters → frame the active canvas or selection (with a drawing open, its sheet); display only

Home View

Default keyboard shortcut: Home

Read the window tour.

Automation details

Command ID: view.home

Parameters:

no parameters → home orientation framing the active canvas (with a drawing open, its whole sheet); display only

Read the window tour.

ParameterTypeRequiredDescription
toolorbit|pan|zoom|noneYes
Automation details

Command ID: view.tool

Parameters:

tool: orbit|pan|zoom|none → tool; latch a camera tool, none releases it (a drawing's sheet pans and zooms)

Drag to Zoom

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: toggle
Automation details

Command ID: view.tool.zoom

Parameters:

on?: bool (omitted: toggle) → on?; latch the Zoom tool for left-button drags. A shortcut assigned in the UI zooms while held

Pan Mode

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: toggle
Automation details

Command ID: view.pan_mode

Parameters:

on?: bool (omitted: toggle) → on?; moving the pointer over the view pans it, no button held, until turned off, another mode or Esc

Orbit Mode

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: toggle
Automation details

Command ID: view.orbit_mode

Parameters:

on?: bool (omitted: toggle) → on?; moving the pointer over the view orbits it, no button held, until turned off, another mode or Esc

Zoom Mode

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: toggle
Automation details

Command ID: view.zoom_mode

Parameters:

on?: bool (omitted: toggle) → on?; moving the pointer up over the view zooms in and down zooms out, no button held, until turned off, another mode or Esc

Continuous Orbit

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: toggle
Automation details

Command ID: view.spin

Parameters:

on?: bool (omitted: toggle) → on?; continuous orbit until the next click or key

Visual Style

Read the window tour.

ParameterTypeRequiredDescription
styleshaded_with_edges|shaded|wireframe|shaded_with_hidden_edgesYes
Automation details

Command ID: view.visual_style

Parameters:

style: shaded_with_edges|shaded|wireframe|shaded_with_hidden_edges → style, index (0..3 in that order)

Grid

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: toggle
Automation details

Command ID: view.grid

Parameters:

on?: bool (omitted: toggle) → on?; show the viewport grid

Ground Shadow

Read the window tour.

ParameterTypeRequiredDescription
modeoff|ellipse|projectedYes
onboolNoomitted: toggle
Automation details

Command ID: view.ground_shadow

Parameters:

mode: off|ellipse|projected; or on?: bool (omitted: toggle) → mode? or on?; display only, independent of ambient occlusion

Read the window tour.

ParameterTypeRequiredDescription
visibleboolNoomitted: toggle
Automation details

Command ID: view.navigation_bar

Parameters:

visible?: bool (omitted: toggle) → visible?; show the navigation bar (window setting)

Custom View Navigator

Read the window tour.

ParameterTypeRequiredDescription
styleaxes|customNo
bodybody name|nullNo
texturethemed|modeledNo
arrowsboolNo
homeboolNo
Automation details

Command ID: view.navigator

Parameters:

style?: axes|custom; body?: body name|null; texture?: themed|modeled; arrows?, home?: bool → the navigator as set; the app's view navigator, never saved in the design; never opens a dialog (a toolbar start opens the Custom View Navigator panel)

Ribbon Tabs Only

Read the window tour.

ParameterTypeRequiredDescription
onboolNoomitted: switch
Automation details

Command ID: view.ribbon_tabs_only

Parameters:

on?: bool (omitted: switch) → on?; fold the ribbon to its tab row, a tab click shows its panels over the view (window setting)

Parts library

Read the window tour.

ParameterTypeRequiredDescription
visibleboolNoomitted: toggle
Automation details

Command ID: view.parts_library

Parameters:

visible?: bool (omitted: toggle) → visible?; show the parts library card (window setting)

Reset All Toolbar Tabs

Read the window tour.

Automation details

Command ID: view.toolbar_reset_all

Parameters:

{} → {}; put the buttons of every toolbar tab back to their defaults (window setting; hidden tabs stay hidden); never asks

Render Focus View

Read the window tour.

ParameterTypeRequiredDescription
onboolYes
Automation details

Command ID: view.render_focus

Parameters:

on: bool → {on}; per-window UI state, never saved in the design; headless validation only

Render Frame Guides

Read the window tour.

ParameterTypeRequiredDescription
aspect16:9|3:2|1:1|4:5|9:16|customNo
Automation details

Command ID: view.render_frame

Parameters:

aspect?: 16:9|3:2|1:1|4:5|9:16|custom; thirds?, safe_area?, centre_mark?: bool. At least one field. Validated transient overlay request, echoed headlessly; never saves guides, changes output size, evaluates geometry or opens a dialog

Render Browser

Read the window tour.

ParameterTypeRequiredDescription
openboolYes
by_lookboolNo
searchboolNo
querystringNoup to 1024 bytes
Automation details

Command ID: view.render_browser

Parameters:

open: bool; or by_look?: bool; search?: bool; query?: string (up to 1024 bytes) → validated transient Browser controls; never edits the design or opens a dialog

Render Inspector

Read the window tour.

ParameterTypeRequiredDescription
visibleboolYes
Automation details

Command ID: view.render_inspector

Parameters:

visible: bool → {visible}; per-document Inspector visibility; never edits the design or opens a dialog

Pause or Resume Live Render

Read the window tour.

ParameterTypeRequiredDescription
pausedboolYes
Automation details

Command ID: view.render_live

Parameters:

paused: bool → {paused}; pause or resume this document's live Render preview; headless validation only, never saves settings or changes a final image

Render selection

Read the window tour.

ParameterTypeRequiredDescription
kindnothing|environment|lighting|light|shot|output|wear|sampling|effects|checkYes
idbounded nonempty string for light/shotNo
Automation details

Command ID: view.render_select

Parameters:

kind: nothing|environment|lighting|light|shot|output|wear|sampling|effects|check; id?: bounded nonempty string for light/shot → validated transient Browser focus; never edits the design or opens a dialog

Render Stage

Read the window tour.

ParameterTypeRequiredDescription
stagelook|light|frame|outputYes
Automation details

Command ID: view.render_stage

Parameters:

stage: look|light|frame|output → {stage}; per-document UI state, never edits or evaluates the design; headless validation only

Shots Strip

Read the window tour.

ParameterTypeRequiredDescription
visibleboolYes
Automation details

Command ID: view.shots_strip

Parameters:

visible: bool → {visible}; Render Shots strip UI preference. Headless echo only, no document edits or undo

Move Render Dock

Command group: RENDER › SCENE

Read the window tour.

ParameterTypeRequiredDescription
panelinspector|browserYes
sideleft|rightYes
Automation details

Command ID: view.render_dock

Parameters:

panel: inspector|browser; side: left|right → {panel, side}; Render dock UI preference; headless echo only, no document edits or undo

Workspace layout

Read the window tour.

ParameterTypeRequiredDescription
modefloating|compactYes
Automation details

Command ID: view.layout

Parameters:

mode: floating|compact → validated workspace layout; display only, never opens a dialog

History layout

Read the window tour.

ParameterTypeRequiredDescription
width1..1000000No
dockbottom|left|under_browser|browserNobrowser: the history in the browser, no timeline
collapsedboolNo
Automation details

Command ID: view.history_layout

Parameters:

width?: 1..1000000; dock?: bottom|left|under_browser|browser (browser: the history in the browser, no timeline); collapsed?: bool → validated layout request; display only, never opens a dialog

Graphics Preset

Read the window tour.

ParameterTypeRequiredDescription
presetperformance|qualityYes
Automation details

Command ID: view.graphics_preset

Parameters:

preset: performance|quality → preset, enabled, display_quality, supersampling, supersampling_adaptive; Quality: AO, Fine, adaptive 2x SSAA; Performance: no AO, Normal, no SSAA

Ambient Occlusion

Read the window tour.

ParameterTypeRequiredDescription
enabledboolYes
Automation details

Command ID: view.ambient_occlusion

Parameters:

enabled: bool → enabled; apply soft contact shading in the GPU viewport

Show Isolated-Away Parts

Read the window tour.

ParameterTypeRequiredDescription
showhidden|transparent|wireframeNo
pickboolNoat least one
Automation details

Command ID: view.isolate_others

Parameters:

show?: hidden|transparent|wireframe, pick?: bool (at least one) → what was set; how the view shows the parts an Isolate hid: not at all, see-through, or as their edges, and whether a click on them selects them (pick: true) or goes through them; display only, never opens a dialog

Origin Axes Across the Whole View

Read the window tour.

ParameterTypeRequiredDescription
enabledboolYes
Automation details

Command ID: view.origin_axes_across_view

Parameters:

enabled: bool → enabled; extend the origin axes across the view, or keep the short axes when false; display only, never opens a dialog

Perspective view

Read the window tour.

ParameterTypeRequiredDescription
enabledboolYes
Automation details

Command ID: view.perspective

Parameters:

enabled: bool → enabled; draw the view in perspective, or orthographic when false; a sketch being edited is always shown orthographic

Scale Bar

Read the window tour.

ParameterTypeRequiredDescription
enabledboolYes
Automation details

Command ID: view.scale_bar

Parameters:

enabled: bool → enabled; show a bar in the view's bottom left corner and the round length it stands for in the design's units (at the view's centre in perspective), or hide it when false; display only, never opens a dialog

View Angles

Read the window tour.

ParameterTypeRequiredDescription
enabledboolYes
Automation details

Command ID: view.angle_readout

Parameters:

enabled: bool → enabled; show the view's pitch, yaw and roll (degrees, as view.apply's camera in radians) and Ortho or Persp under the orientation gizmo; display only, never opens a dialog

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraYes
direction[x,y,z] in the camera's up-axis frameNo
actionleft|right|up|down|clockwise|counterclockwise|turn_around|home|fitYes
degrees0..180Nohow far left|right|up|down turn; default 90
fitboolNoframe the whole model from the new direction as well, as home does; default false
motionpan|orbit|zoomYes
delta[dx,dy]Nopixels, each ±10000
free_orbitboolNoorbit through poles, default false
viewport[width,height]No1..1000000, required for pan or pivot
pivot[x,y,z]No
factor0.05..20Norequired for zoom
anchor[x,y,z]No
Automation details

Command ID: view.navigate

Parameters:

camera: Camera; direction?: [x,y,z] in the camera's up-axis frame; or action: left|right|up|down|clockwise|counterclockwise|turn_around|home|fit, degrees?: 0..180 (how far left|right|up|down turn; default 90), fit?: bool (frame the whole model from the new direction as well, as home does; default false); or motion: pan|orbit|zoom, delta?: [dx,dy] (pixels, each ±10000), free_orbit?: bool (orbit through poles, default false), viewport?: [width,height] (1..1000000, required for pan or pivot), pivot?: [x,y,z], factor?: 0.05..20 (required for zoom), anchor?: [x,y,z] → camera, fit, continuous?

Normal to Selection

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.normal_to

Parameters:

camera?: Camera (default: current session camera or home view) → camera; Look At the first selected planar face or plane, centered on the picked point; repeat while aligned to flip the side; preserves scale and projection

Front View

Default keyboard shortcut: Ctrl+1

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.front

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Back View

Default keyboard shortcut: Ctrl+2

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.back

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Left View

Default keyboard shortcut: Ctrl+3

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.left

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Right View

Default keyboard shortcut: Ctrl+4

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.right

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Top View

Default keyboard shortcut: Ctrl+5

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.top

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Bottom View

Default keyboard shortcut: Ctrl+6

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.bottom

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Isometric View

Default keyboard shortcut: Ctrl+7

Read the window tour.

ParameterTypeRequiredDescription
cameraCameraNodefault: current session camera or home view
Automation details

Command ID: view.isometric

Parameters:

camera?: Camera (default: current session camera or home view) → camera; turns to that standard view as the axes navigator does, keeping target, distance and projection

Next Tab

Default keyboard shortcut: Ctrl+Tab

Read the window tour.

Automation details

Command ID: view.next_tab

Parameters:

no parameters → step: 1; the window shows the design tab to the right of the shown one (after the last, the first); never edits the design or opens a dialog

Previous Tab

Default keyboard shortcut: Ctrl+Shift+Tab

Read the window tour.

Automation details

Command ID: view.previous_tab

Parameters:

no parameters → step: -1; the window shows the design tab to the left of the shown one (before the first, the last); never edits the design or opens a dialog

Set View Compass

Read the window tour.

ParameterTypeRequiredDescription
viewthe id of an open 3D viewYes
onwhether its compass is visibleYes
Automation details

Command ID: view.set_compass

Parameters:

view: the id of an open 3D view; on: whether its compass is visible → view, on

Pick by Ray

Read the window tour.

ParameterTypeRequiredDescription
rays[{origin: [x,y,z], dir: [x,y,z]}]Yesat most 1024
allboolNoevery body and point cloud each ray meets, nearest first
bodies[names]Noonly these of the shown bodies; default every shown body; a name that is no body is refused; [] meets no body; the running app takes it too
cloudsboolNopick visible point-cloud points too; default: only when cloud_radius or point_px is given
cloud_radiusmmNodefault 1.0, 0 disables point-cloud picks on rays
Automation details

Command ID: view.pick

Parameters:

rays: [{origin: [x,y,z], dir: [x,y,z]}] (at most 1024); all?: bool (every body and point cloud each ray meets, nearest first); bodies?: [names] (only these of the shown bodies; default every shown body; a name that is no body is refused; [] meets no body; the running app takes it too); clouds?: bool (pick visible point-cloud points too; default: only when cloud_radius or point_px is given), cloud_radius?: mm (default 1.0, 0 disables point-cloud picks on rays) → frame: "rays", hits: one per ray, null where it meets nothing, else for a body {pixel (the ray, echoed as the app echoes it), body, face, point, normal, depth} with edge or vertex (record index) where the ray passes through one and occurrence, occurrence_name, component for a placed part's body, or for a point cloud {pixel, body: null, face: null, cloud, cloud_name, point_index, point, depth, distance_mm}; warnings?: [string] (bodies skipped when ray casting fails on them; without all, a body behind a ray's nearest hit is not tried, so its failure does not warn); decided on exact geometry, the same answer headless as with the app. pixels, frame, width, height, edges, edge_px, point_px, include_ghosted: answered only by the running app

Other commands: note

Add Note

ParameterTypeRequiredDescription
anchor[x,y,z]Nothe point in model space, mm; without it, where the selection points, or the origin
textthe noteYesmay span lines
hiddenboolNosaved but not drawn
Automation details

Command ID: note.add

Parameters:

anchor?: [x,y,z] (the point in model space, mm; without it, where the selection points, or the origin); text: the note (may span lines); hidden?: bool (saved but not drawn) → note: id

Edit Note

ParameterTypeRequiredDescription
noteidYes
textthe new textNo
anchor[x,y,z]Nomove the anchor
hiddenboolNoshow or hide
Automation details

Command ID: note.update

Parameters:

note: id; text?: the new text; anchor?: [x,y,z] (move the anchor); hidden?: bool (show or hide) → note: id

Delete Note

ParameterTypeRequiredDescription
noteidYes
Automation details

Command ID: note.delete

Parameters:

note: id → deleted: id

List Notes

Automation details

Command ID: note.list

Parameters:

→ notes: [{id, anchor: [x,y,z], text, hidden}] in creation order

Other commands: selection

Delete

ParameterTypeRequiredDescription
items[selection items]No
components[ids or names]No
occurrences[ids or names]No
canvases[ids or names]No
point_clouds[ids or names]No
joints[ids or names]No
preserve_projection_linkboolNodefault false, passed to sketch.delete including dry_run
dry_runboolNo
Automation details

Command ID: selection.delete

Parameters:

items?: [selection items]; components?, occurrences?, canvases?, point_clouds?, joints?: [ids or names]; preserve_projection_link?: bool (default false, passed to sketch.delete including dry_run); dry_run?: bool → deleted, emptied_ink_sketches (if any), deleted_joints, would_fail, skipped (one undo step). With a drawing open, items are its views, annotations and placed images ({type: drawing, drawing, object}); each view takes its annotations with it; a view with views projected or cut from it is refused, naming them, unless they are in items or contents: delete takes them too → views, dimensions, balloons, notes, centre_marks, centre_lines, sketches, fills, images?: [the ids that went], deleted: the names of the views that went with those asked for

Get Selection

ParameterTypeRequiredDescription
detailboolNodefault true: resolve each item's geometry
Automation details

Command ID: selection.get

Parameters:

detail?: bool (default true: resolve each item's geometry) → {count, items: [{kind (= type: body|face|edge|vertex|feature|sketch_curve|sketch_point|sketch_midpoint|sketch_constraint|profile|plane|axis|construction_point|occurrence…), the selection's own fields as select.set takes them (body, index, point, id, sketch, path…), and with detail: face: name (persistent face name), name_exact, surface ({type: plane|cylinder|cone|sphere|torus|other, normal/point, origin/axis/radius…}), area_mm2, planar; edge: name (persistent edge name), curve (line|circle|arc|other), length_mm, start, end, center/axis/radius for round edges; body: volume_mm3, feature, visible; any body item: component {id, name} and occurrence_path in an assembly; sketch items: sketch (its id, as select.set takes it), sketch_name, entity (line|circle|arc|point|midpoint|…), position for points and midpoints}]}; read-only, [] when nothing is selected

Other commands: ui

Toggle Assistant

Default keyboard shortcut: Ctrl+Shift+A

Automation details

Command ID: ui.assistant

Parameters:

Show or hide Assistant in the app. Headless calls are refused without changing the design

Customize App Bar…

Automation details

Command ID: ui.appBarCustomize

Parameters:

Validate access to the application bar editor; returns {available: true}. Only an interactive start toggles tray edit mode; programmatic calls never open dialogs

Reset App Bar

Automation details

Command ID: ui.appBarReset

Parameters:

Reset the saved application bar layout in the connected app; returns {reset: true}. Headless sessions validate the request only; no dialog or design change

Search Commands

Default keyboard shortcut: S

Automation details

Command ID: ui.palette

Parameters:

Open command search in the app. Headless calls are refused without changing the design

Show/Hide Selection

Default keyboard shortcut: V

Automation details

Command ID: ui.toggle_visibility

Parameters:

Show or hide what is selected in the app. Headless calls are refused without changing the design; browser.visibility takes explicit items

Dialog OK

Automation details

Command ID: ui.dialog_ok

Parameters:

Runs OK in the feature dialog open in the app, as Enter does; bind it to a key in Preferences. Only the app has a dialog: called here it is refused, and changes nothing

Other commands: edit

Undo

Default keyboard shortcut: Ctrl+Z

Automation details

Command ID: edit.undo

No parameter description is provided by the command registry.

Redo

Default keyboard shortcut: Ctrl+Y

Automation details

Command ID: edit.redo

No parameter description is provided by the command registry.

Repeat Last Command

Default keyboard shortcut: Shift+R

Automation details

Command ID: edit.repeat

Parameters:

Starts the last tool or dialog started in the app again, with its defaults (a toolbar click, not a replay of its values). Only the app has a tool to start: called here it is refused, and changes nothing

Checkpoint

Automation details

Command ID: edit.checkpoint

Parameters:

→ {checkpoint: id}: remember the design, active editors and undo history (restore with edit.restore_checkpoint; the last 16 are kept, the oldest dropped first)

Restore Checkpoint

ParameterTypeRequiredDescription
checkpointidYes
Automation details

Command ID: edit.restore_checkpoint

Parameters:

checkpoint: id; forget?: bool (true = drop it without going back). Goes back to it, undo history included. Restoring uses it and every later checkpoint up: take a new one to go back again. Forgetting drops only it

Other commands: timeline

Play History

Command group: INSPECT › HISTORY

ParameterTypeRequiredDescription
actiontoggle|play|stopNodefault toggle
Automation details

Command ID: timeline.play

Parameters:

action?: toggle|play|stop (default toggle) → action: validated display request; the connected UI plays from the marker to the end with a half-second pause per rebuilt step. Headless callers only validate the request; no dialog, document edit or animation clock is created

Rename

ParameterTypeRequiredDescription
featureid|nameYes
nameYesreferences to it follow
Automation details

Command ID: timeline.rename

Parameters:

feature: id|name, name (references to it follow)

New Feature Folder

ParameterTypeRequiredDescription
nameNo
features[id|name]No
joints[id|name]No
groups[folder ids]No
parentfolder idNofeatures and joints leave any other timeline folder
Automation details

Command ID: timeline.group

Parameters:

name?; features?: [id|name]; joints?: [id|name]; groups?: [folder ids]; parent?: folder id (features and joints leave any other timeline folder)

Remove Feature Folders

ParameterTypeRequiredDescription
groupidYes
groups[ids]Yesfeatures and joints remain in the timeline
Automation details

Command ID: timeline.ungroup

Parameters:

group: id | groups: [ids] (features and joints remain in the timeline)

Rename Feature Folder

ParameterTypeRequiredDescription
groupidYes
nameYesrenames the folder holding features and joints
Automation details

Command ID: timeline.rename_group

Parameters:

group: id, name (renames the folder holding features and joints)

Move Features to Folder

ParameterTypeRequiredDescription
features[id|name]No
joints[id|name]No
groups[ids]No
groupidNoomit or null to move to the timeline root
Automation details

Command ID: timeline.move_to_group

Parameters:

features?: [id|name], joints?: [id|name], groups?: [ids], group?: id (omit or null to move to the timeline root)

Move Timeline Items

ParameterTypeRequiredDescription
features[id|name]No
groups[folder ids]No
groupfolder idNo
positioninsertion slotYes
activeboolNotrue = the moved contents end up before the history marker, false = behind it; other features keep their state
Automation details

Command ID: timeline.move_many

Parameters:

features?: [id|name], groups?: [folder ids], group?: folder id, position: insertion slot, active?: bool (true = the moved contents end up before the history marker, false = behind it; other features keep their state); atomically changes folder membership and moves all selected contents as one block; refused when a feature that worked would fail, unless allow_errors?: bool (default false): then made, and broken: [{feature, error}] lists the features it broke

Move Timeline Marker

Automation details

Command ID: timeline.rollback

Parameters:

position: number of features to keep active, or "end" (omit = end)

Roll History Marker

Automation details

Command ID: timeline.roll_to

Parameters:

position: number of features to keep active, or "end" (omit = end) | feature: id|name (the marker goes right after it)

Step History Back

Automation details

Command ID: timeline.step_back

Parameters:

→ marker: one step back, the marker rolling one feature back (the features after it are rebuilt); at the start of the history the marker stays

Step History Forward

Automation details

Command ID: timeline.step_forward

Parameters:

→ marker: one step forward, the marker rolling one feature forward; at the end of the history the marker stays

Roll History to Start

Automation details

Command ID: timeline.roll_to_start

Parameters:

→ marker: the marker to the start of the history, every feature rolled back; at the start of the history the marker stays

Roll History to End

Automation details

Command ID: timeline.roll_to_end

Parameters:

→ marker: the marker to the end of the history, every feature built; at the end of the history the marker stays

Reorder Feature

ParameterTypeRequiredDescription
featureid|nameYes
positionits new indexYes
activeboolNotrue = it ends up before the history marker, false = behind it; other features keep their state
Automation details

Command ID: timeline.reorder

Parameters:

feature: id|name, position: its new index, active?: bool (true = it ends up before the history marker, false = behind it; other features keep their state); refused when a feature that worked would fail, unless allow_errors?: bool (default false): then made, and broken: [{feature, error}] lists the features it broke → feature, position: its index now, from: its index before, moved: bool, note?: why nothing moved, or that a position past the end meant the last slot

Reorder Features

ParameterTypeRequiredDescription
features[id|name]Yes
positioninsertion slot in the current historyYes
activeboolNoas timeline.reorder's
Automation details

Command ID: timeline.reorder_many

Parameters:

features: [id|name], position: insertion slot in the current history; selected features keep their relative order; active?: bool (as timeline.reorder's); refused when a feature that worked would fail, unless allow_errors?: bool (default false): then made, and broken: [{feature, error}] lists the features it broke

Edit Feature

ParameterTypeRequiredDescription
featureid|nameYes
commandthe feature's command idYes
paramsits parametersYesthe feature is rebuilt in place
Automation details

Command ID: timeline.redefine

Parameters:

feature: id|name, command: the feature's command id, params: its parameters (the feature is rebuilt in place) → feature, recomputed, restored, rolled_back: bool (the feature is after the history marker, so the edit is not built yet; `note` then says so), warning?

Feature Dependents

ParameterTypeRequiredDescription
featureid|nameYes
Automation details

Command ID: timeline.dependents

Parameters:

feature: id|name → features deleted with it, and features that would fail without it

Suppress Feature

ParameterTypeRequiredDescription
featureid|nameYes
features[id|name]Yes
groups[timeline folder ids]Yesevery feature and joint in those folders and their nested folders; one undo step
suppressedboolNodefault toggles: features and joints are all suppressed unless all of them already are, then all are unsuppressed
Automation details

Command ID: timeline.suppress

Parameters:

feature: id|name | features: [id|name] | groups: [timeline folder ids] (every feature and joint in those folders and their nested folders; one undo step), suppressed?: bool (default toggles: features and joints are all suppressed unless all of them already are, then all are unsuppressed) → feature: id (or features: [ids]; groups: [ids] and joints: [ids] when groups are given), suppressed, failing?: [{feature, error}] lists features that worked before the change and now fail

Edit Feature

ParameterTypeRequiredDescription
featureid|nameYes
set{fields to change, merged into the feature's definition as timeline.inspect returns it, e.g. {"extent": {"distance": "30"}} (extrude), {"angle": "90 deg"} (revolve); a dotted key names a nested field ({"plane.distance": "8 mm"} = {"plane": {"distance": "8 mm"}}); expressions are text, or a number in mm or degrees}Yes
Automation details

Command ID: timeline.edit

Parameters:

feature: id|name, set: {fields to change, merged into the feature's definition as timeline.inspect returns it, e.g. {"extent": {"distance": "30"}} (extrude), {"angle": "90 deg"} (revolve); a dotted key names a nested field ({"plane.distance": "8 mm"} = {"plane": {"distance": "8 mm"}}); expressions are text, or a number in mm or degrees} → recomputed: features rebuilt, restored: features whose earlier result for the same inputs was reused, failing?: [{feature, error}] lists features that worked before the change and now fail

Inspect Feature

ParameterTypeRequiredDescription
groupfolder idYes
Automation details

Command ID: timeline.inspect

Parameters:

group: folder id → group, name, parent, features, joints; or feature: id|name → type, definition (the fields timeline.edit's set changes, with their current values), inputs: [{label, param, expression, unit}] (named inputs parameters.change can also set), error, warning

Copy Features

ParameterTypeRequiredDescription
features[ids or names]Yesin timeline order on paste
Automation details

Command ID: timeline.copy

Parameters:

features: [ids or names] (in timeline order on paste)

Paste Features

ParameterTypeRequiredDescription
translate[x,y,z]Nomoves the copies' geometry
componentwhere the copies goNodefault: the active one
component_pathits placementNodefault: the active one, else its only one
from_designtrue to paste sketch features from the host's cross-design clipboard snapshotNo
Automation details

Command ID: timeline.paste

Parameters:

translate?: [x,y,z] (moves the copies' geometry); component?: where the copies go (default: the active one), component_path?: its placement (default: the active one, else its only one); the copies go at the marker, each where its original is in the world (copies into their own component keep its coordinates); body transfers are left out; from_design?: true to paste sketch features from the host's cross-design clipboard snapshot

Add Recorded Feature

ParameterTypeRequiredDescription
featurea feature as the design file and timeline.inspect hold itYes{type, name?, id?, …}; the name is kept even when another feature has it, the id is kept and refused when another feature has it, so later steps can refer to them
params[{name, expression, unit?, comment?}]Nothe model parameters its sketch dimensions use
Automation details

Command ID: timeline.add

Parameters:

feature: a feature as the design file and timeline.inspect hold it ({type, name?, id?, …}; the name is kept even when another feature has it, the id is kept and refused when another feature has it, so later steps can refer to them); params?: [{name, expression, unit?, comment?}] (the model parameters its sketch dimensions use); the feature goes at the marker → feature, name, error, warning

Export Command Script

ParameterTypeRequiredDescription
pathwrite the script to this fileNo
Automation details

Command ID: timeline.export_script

Parameters:

path?: write the script to this file → script: {commands: [...]} that rebuilds the design (solidcraft-cli eval/run), steps, path (as given), absolute_path (with path: the file written as an absolute path, left out when it can't be worked out), bytes (with path: the size of the file written), omitted: what the script leaves out (appearances, folders, views, configurations a replay cannot rebuild, print-face assignments); components and assemblies are not supported yet

Other commands: select

Select

Read the window tour.

ParameterTypeRequiredDescription
items[{type: body|edge|face|feature|sketch_curve|sketch_point|profile, …} or {type: drawing, drawing, object: ids of the drawing open and of a selectable object (including a placed image) of it}]Yes
addboolNo
Automation details

Command ID: select.set

Parameters:

items: [{type: body|edge|face|feature|sketch_curve|sketch_point|profile, …} or {type: drawing, drawing, object: ids of the drawing open and of a selectable object (including a placed image) of it}], add?: bool; face/edge: body plus point [x,y,z] in world mm or index (both also accepted); a point uses Measure's pick tolerance, an index supplies a point on the item; invalid partial picks leave the selection unchanged

Selection filter

Read the window tour.

ParameterTypeRequiredDescription
modebody|face|componentYes
Automation details

Command ID: select.filter

Parameters:

mode: body|face|component → validated UI pick granularity; headless echo only, no document edits or undo

Select Boundary

Read the window tour.

ParameterTypeRequiredDescription
bodyworld body nameNo
facesface indices of itNodefault: the selected faces, else the last selected body
holesboolNo
addboolNo
Automation details

Command ID: select.boundary

Parameters:

body?: world body name, faces?: face indices of it (default: the selected faces, else the last selected body), holes?: bool, add?: bool → selects the edges that bound exactly one face of the set (exact topology), outer loops only unless holes (a hole: a walk of the faces' inner loops only); a body alone gives its free edges → selected, body, edges, loops, holes_left

Clear Selection

Read the window tour.

Automation details

Command ID: select.clear

No parameter description is provided by the command registry.

Invert Selection

Read the window tour.

Automation details

Command ID: select.invert

Parameters:

no parameters → in place of the selected faces, edges or bodies, the other faces or edges of their bodies, or the other shown bodies; a body selected with some of its faces or edges inverts inside it; other items stay selected

Select Same Look

Read the window tour.

ParameterTypeRequiredDescription
bodyworld body nameNo
faceface indexNo
Automation details

Command ID: select.same_look

Parameters:

body?: world body name, face?: face index; defaults to the current body/face selection → selects objects using the resolved appearance

Select Sharp Edges

Read the window tour.

ParameterTypeRequiredDescription
angle_deg1…179Nodefault 30
bodysolid body nameNodefault: every shown solid body
addboolNo
Automation details

Command ID: select.sharp_edges

Parameters:

angle_deg?: 1…179 (default 30), body?: solid body name (default: every shown solid body), add?: bool → selects the edges whose faces' normals turn by more than angle_deg, measured on the exact surfaces; tangent edges never

Select Edge Loop

Read the window tour.

ParameterTypeRequiredDescription
bodyworld body name and edge?: edge indexNo
togetherYesdefault: the last selected edge
facewhich of the edge's facesNo
addboolNo
Automation details

Command ID: select.edge_loop

Parameters:

body?: world body name and edge?: edge index, together (default: the last selected edge), face?: which of the edge's faces, add?: bool → selects the closed loop of edges of that face that holds the edge (exact topology); without face: a flat face, then one with more than one loop, then the lowest index → selected, face, edges

Select All

Default keyboard shortcut: Ctrl+A

Read the window tour.

Automation details

Command ID: select.all

No parameter description is provided by the command registry.

Selection Mode

Read the window tour.

ParameterTypeRequiredDescription
modefaces|bodies|features|parts|components|sketchYes
Automation details

Command ID: select.mode

Parameters:

mode: faces|bodies|features|parts|components|sketch → mode; what a click on the model picks: faces, edges and vertices, the face's whole body, the feature that made it, the innermost placement or the top-level component holding it, or sketch geometry only. A window setting: the design is untouched

Other commands: parameters

List Parameters

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
favoritesboolNoonly favourites
filterall|user|sketch|driven|feature|model|favoritesNo
Automation details

Command ID: parameters.list

Parameters:

favorites?: bool (only favourites), filter?: all|user|sketch|driven|feature|model|favorites → parameters (name, expression, unit, value (mm/deg in every reply), display_value (in its own unit), source, feature/input, comment, favorite, uses, used_by, read_only, error) and cycles

Add User Parameter

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameYes
expressionYes
unitas parameters.changeNotext: a text parameter, its expression the text
commentNo
favoriteboolNo
Automation details

Command ID: parameters.add

Parameters:

name, expression, unit?: as parameters.change (text: a text parameter, its expression the text), comment?, favorite?: bool

Rename Parameter

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameYes
new_nameYesexpressions, feature inputs and dimensions that use it follow
Automation details

Command ID: parameters.rename

Parameters:

name, new_name (expressions, feature inputs and dimensions that use it follow)

Delete Parameter

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameYesrefused while something uses it; the error lists the users
Automation details

Command ID: parameters.delete

Parameters:

name (refused while something uses it; the error lists the users)

Favorite Parameter

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameboolYes
favoriteboolNodefault true
Automation details

Command ID: parameters.favorite

Parameters:

name, favorite?: bool (default true)

Move Parameter

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameanother user parameterYes
beforeanother user parameterYes
afteranother user parameterYes
Automation details

Command ID: parameters.move

Parameters:

name, before | after: another user parameter; the user parameter is listed just before or after it

Comment Parameter

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameYes
commentYes
Automation details

Command ID: parameters.comment

Parameters:

name, comment

Parameter Users

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
nameYes
Automation details

Command ID: parameters.users

Parameters:

name → users (parameters, feature inputs, dimensions) and the features it drives

Parameter Graph

Read the parameters and expressions guide.

Automation details

Command ID: parameters.graph

Parameters:

→ nodes, edges [user, used] (users include Feature:<name>), cycles, errors

Export Parameters

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
formatcsv|jsonNodefault csv, or from the path
pathwrite to a fileNo
Automation details

Command ID: parameters.export

Parameters:

format?: csv|json (default csv, or from the path), path?: write to a file → text

Import Parameters

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
textCSVYesheader with name, expression, unit?, comment?
Automation details

Command ID: parameters.import

Parameters:

text: CSV (header with name, expression, unit?, comment?) or JSON [{name, expression, unit?, comment?}] | path; all or nothing

Complete Expression

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
prefixthe text before the cursorNo
Automation details

Command ID: parameters.complete

Parameters:

prefix?: the text before the cursor → word, suggestions [{text, kind: parameter|function|unit|constant, detail}]

Other commands: expr

Evaluate Expression

Read the parameters and expressions guide.

ParameterTypeRequiredDescription
expressionlength|angle|mass|volume|area|unitlessYes
kindlength|angle|mass|volume|area|unitlessNoor unit?: mm|in|deg|kg…; text: the text a text parameter would hold, as `text`
Automation details

Command ID: expr.evaluate

Parameters:

expression, kind?: length|angle|mass|volume|area|unitless (or unit?: mm|in|deg|kg…; text: the text a text parameter would hold, as `text`) → ok, value (mm/rad/g/mm³/mm²), kind, display_value (in the unit, else the kind's: deg, kg…), references, error

Other commands: doc

Open

Default keyboard shortcut: Ctrl+O

Read the import and export guide.

ParameterTypeRequiredDescription
new_tabboolNotrue opens the file in a tab of its own after the active one and shows it, even when the active design is empty, so the design that was open stays open; default false: a design that is not empty is kept in its tab and the file gets one, an empty one is replaced; a design already open in a tab is shown instead; a person in the middle of a dialog or tool at the window gets the tab behind the active one, so check document.list; the desktop window only
tabwhole numberNothe desktop app: open it as a design in a new tab at this place among the tabs, 0 the first, past the last at the end, never in place of the design shown; a design already open shows its tab instead; given with `new_tab`, the place wins; elsewhere ignored
unitsfor an STL or OBJ fileNosee file.insert_mesh
originbool for a mesh fileNosee file.insert_mesh
split_to_filesbool for a STEP fileNosee file.insert_step; opens the written top `.sc`
split_folderfolder path with split_to_filesNodefault: the file's directory
overwritebool with split_to_filesNodefault false: refuse when a target `.sc` already exists
reuse_importboolNoSTEP/IGES: reuse an unchanged import from the local saved-model cache, default true; false recomputes without reading or writing the cache; → import_reused: bool, content_sha256: exact source digest
historyfeatures|solids for a FreeCAD fileNosee file.insert_step
geometrymeshes|exact for an OpenUSD fileNosee file.insert_mesh
componentsboolNodefault true
silkscreenboolNodefault true: the silk shapes and text
holesnone|mounting|pads|allNodefault mounting: the board's mounting holes, every unplated hole and each hole of a MountingHole footprint; pads adds the plated holes of through-hole pads, all adds vias; a hole left out is solid board and closed copper, and a hole that reaches the board's edge or a cutout is always kept
color"#rrggbb" or [r, g, b]Noboard substrate colour
representationmesh|brepNothe board itself; default brep: a solid whose faces can be picked
read_onlyboolNoa design: saving to its own file is refused, file.save_as keeps the changes elsewhere
linked_bodiesall|folderNoa design saved without the bodies of its linked designs and STEP files, file.save's `linked_bodies: false`: which linked files are read for them as it opens; default all; folder: only files in the design's own folder or below it, and the other links have no bodies until component.update_links reads them; warnings name each link not read
verifyboolNodefault false: a design's signature is checked and reported, `signature`
Automation details

Command ID: doc.open

Parameters:

path: .sc design (or a .solidcraft design from an earlier release), .dxf/.svg drawing (opens as a new, unsaved design with an XY sketch, using sketch.insert_dxf/sketch.insert_svg units and defaults), or a .step/.stp/.igs/.fcstd/.3dm/.3mf/.stl/.obj/.glb/.gltf/.kicad_pro/.kicad_pcb file (STEP, IGES, FreeCAD, Rhino, 3MF, STL, OBJ, glTF or KiCad PCB; opens as a new design holding the file as a component named after it, as file.insert_step and file.insert_mesh make), or a .ply/.pcd/.e57/.xyz/.pts/.asc point cloud (opens as a new design holding it, as pointcloud.insert makes; its `units` and `max_points` as there); new_tab?: bool (true opens the file in a tab of its own after the active one and shows it, even when the active design is empty, so the design that was open stays open; default false: a design that is not empty is kept in its tab and the file gets one, an empty one is replaced; a design already open in a tab is shown instead; a person in the middle of a dialog or tool at the window gets the tab behind the active one, so check document.list; the desktop window only); tab?: whole number (the desktop app: open it as a design in a new tab at this place among the tabs, 0 the first, past the last at the end, never in place of the design shown; a design already open shows its tab instead; given with `new_tab`, the place wins; elsewhere ignored); up?: z|y for a STEP, IGES, FreeCAD, Rhino or glTF file (see file.insert_step and file.insert_mesh); names?: auto|solid|product|instance for a STEP, IGES, FreeCAD or Rhino file (see file.insert_step); units?: for an STL or OBJ file (see file.insert_mesh); origin?: bool for a mesh file (see file.insert_mesh); folder?: bool for a STEP, IGES, FreeCAD or Rhino file (see file.insert_step); split_to_files?: bool for a STEP file (see file.insert_step; opens the written top `.sc`); split_folder?: folder path with `split_to_files` (default: the file's directory); overwrite?: bool with `split_to_files` (default false: refuse when a target `.sc` already exists); reuse_import?: bool (STEP/IGES: reuse an unchanged import from the local saved-model cache, default true; false recomputes without reading or writing the cache; → import_reused: bool, content_sha256: exact source digest); history?: features|solids for a FreeCAD file (see file.insert_step); reader?: solidcraft|cadmpeg for a STEP, IGES, FreeCAD or Rhino file (see file.insert_step); body_index?: zero-based body occurrence of a .step/.stp file, in the reader's order (SolidCraft reader only; see file.insert_step); geometry?: meshes|exact for an OpenUSD file (see file.insert_mesh); for a KiCad PCB: thickness?: board thickness in mm (default from the board); components?: bool (default true); copper?: "overlay" (default: flat copper just above the board), "none" (leave the traces out) or "mesh" (modelled with thickness; true also means mesh; pads are included whenever copper is enabled); silkscreen?: bool (default true: the silk shapes and text); holes?: none|mounting|pads|all (default mounting: the board's mounting holes, every unplated hole and each hole of a MountingHole footprint; pads adds the plated holes of through-hole pads, all adds vias; a hole left out is solid board and closed copper, and a hole that reaches the board's edge or a cutout is always kept); color?: "#rrggbb" or [r, g, b] (board substrate colour); representation?: mesh|brep (the board itself; default brep: a solid whose faces can be picked); read_only?: bool (a design: saving to its own file is refused, file.save_as keeps the changes elsewhere); linked_bodies?: all|folder (a design saved without the bodies of its linked designs and STEP files, file.save's `linked_bodies: false`: which linked files are read for them as it opens; default all; folder: only files in the design's own folder or below it, and the other links have no bodies until component.update_links reads them; warnings name each link not read); verify?: bool (default false: a design's signature is checked and reported, `signature`) → open_elsewhere: {host, user, app, opened} when another SolidCraft has the design open (its lock file is fresh); newer_file: {format, reads_up_to, unknown_changes, not_understood, notice} and warnings when a newer SolidCraft saved it: it opens all the same, and what this version can't read is named there and kept by saving

Recoverable Designs

Read the import and export guide.

ParameterTypeRequiredDescription
dirNodefault: the recovery folder
Automation details

Command ID: doc.recovery_list

Parameters:

dir? (default: the recovery folder) → designs autosaved by apps that crashed or closed with unsaved changes

Recover Design

Read the import and export guide.

ParameterTypeRequiredDescription
idYesfrom doc.recovery_list
dirNo
discardboolNodelete the entry once open
linked_bodiesall|folderNoa design saved without the bodies of its linked designs, whose copy lacks a link's bodies: which linked design files are read for them, as doc.open's `linked_bodies`; default all
unsavedYes
Automation details

Command ID: doc.recover

Parameters:

id (from doc.recovery_list); dir?; discard?: bool (delete the entry once open); linked_bodies?: all|folder (a design saved without the bodies of its linked designs, whose copy lacks a link's bodies: which linked design files are read for them, as doc.open's `linked_bodies`; default all) — opens it with its file path, unsaved; → warnings name each link not read

Discard Recovered Design

Read the import and export guide.

ParameterTypeRequiredDescription
idtrueYes
alltrueYes
dirNo
Automation details

Command ID: doc.recovery_discard

Parameters:

id, or all: true; dir?

Design File Info

Read the import and export guide.

Automation details

Command ID: doc.info

Parameters:

→ path (the design's file; null until it is first saved), read_only (a save to its own file is refused), unsaved (changes its file does not hold, as document.inspect's dirty), disk ({len, modified_ns}: size in bytes and modification time in nanoseconds since the Unix epoch as a decimal string, when it was opened or last saved; null without a file, in the browser, or when they could not be read), document_id (as document.revision). In a plugin run: the design the run started on, as it was before the run. Read-only

Other commands: appearance

Copy Look

Default keyboard shortcut: Ctrl+Alt+C

ParameterTypeRequiredDescription
targetappearance.chain targetYes
Automation details

Command ID: appearance.copy

Parameters:

target: appearance.chain target. Copies its resolved look to a transient session clipboard. No document change or dialogs.

Paste Look

Default keyboard shortcut: Ctrl+Alt+V

Automation details

Command ID: appearance.paste

Parameters:

bodies/faces/components: appearance.assign targets, and no look keys: the look is the one appearance.copy put in the clipboard. Applies it atomically in one undo step; no dialogs.

Favorite Look

ParameterTypeRequiredDescription
lookappearance.assign look keysYesappearance, or color/name/opacity/pbr
Automation details

Command ID: appearance.favorite

Parameters:

look: appearance.assign look keys (appearance, or color/name/opacity/pbr); favorite: true to mark, false to unmark → the validated look and the preference; UI library preference only, no document change or dialogs.

Appearance Chain

ParameterTypeRequiredDescription
target{body: name} | {body: name, face: zero-based model.faces index} | {component: name or id}Yes
Automation details

Command ID: appearance.chain

Parameters:

target: {body: name} | {body: name, face: zero-based model.faces index} | {component: name or id}; a placed copy's name (`KB (K:2)`, `K:2`) means the body or component it shows. Returns steps [{step: face|body|component|material, look: {name,color,opacity,pbr?} or null}] in precedence order and active (step or null). Component material is the common default look of its directly owned bodies, null if mixed/empty. Imported paint is a display fallback outside the four steps. Read-only; no dialogs

Replace Appearance

ParameterTypeRequiredDescription
fromlibrary name | saved look {name,color,opacity,pbr?}Yescopy appearance.list in_design
Automation details

Command ID: appearance.replace

Parameters:

from: library name | saved look {name,color,opacity,pbr?} (copy appearance.list in_design); to: library name | assignment look {appearance? | color, name?, opacity?, pbr?} (appearance.assign rules; no clear). Matches the full look including name and PBR. scope?: {bodies?: [names], components?: [names or ids]} (a placed copy's name means the body or component it shows), at most 10000 targets; body scope includes face overrides, component scope selects only the component override. Omitted scope means all overrides, including hidden/suppressed ones; physical defaults are unchanged. Duplicate targets count once. Returns count of rewritten overrides; zero adds no history. One undo step, atomic; no dialogs. Designs above 100000 overrides refuse

Appearance Library

Automation details

Command ID: appearance.library

Parameters:

→ 20 legacy scalar appearances, six opaque PBR finishes and 40 starter recipes with IDs, categories, provenance, requirements and availability; six starter glass recipes are unavailable

List Appearances

ParameterTypeRequiredDescription
bodynameNoor a placed copy's, `KB (K:2)`: the body it shows
active_onlyboolNodefault false; true omits overrides whose body or component is not in the active model
Automation details

Command ID: appearance.list

Parameters:

body?: name (or a placed copy's, `KB (K:2)`: the body it shows); active_only?: bool (default false; true omits overrides whose body or component is not in the active model) → assigned appearances (inactive_bodies lists body overrides absent from the active model); with body, its resolved look and its faces' (face index, look)

Paint Appearance

Default keyboard shortcut: B

Automation details

Command ID: appearance.paint

Parameters:

appearance or color/name/opacity/pbr: appearance.assign look parameters; validates and returns look for ui.start paint. done?: true ends the UI tool. Programmatic calls never open UI.

Pick Up Appearance

Default keyboard shortcut: I

ParameterTypeRequiredDescription
targetappearance.chain targetNo
Automation details

Command ID: appearance.pick_up

Parameters:

target?: appearance.chain target; returns its resolved look, or requests the UI sampling tool when omitted. Programmatic calls never open UI.

Other commands: material

List Materials

Automation details

Command ID: material.list

Parameters:

→ built-in and design-owned materials (user: true, look, optional physical_card/physical_validation/density_comparison). Read-only; candidate engineering records do not certify sources or supply a solver

New Physical Material

ParameterTypeRequiredDescription
nameYesnot a built-in material's
density_g_cm3Yes
appearancelibrary nameNoappearance.library
color"#rrggbb" or [r, g, b]No0–255
opacityNo0–1
pbr{metallic:0..1, roughness:0.045..1, dielectric_ior:1..3}Noopaque only, needs color/appearance
pbrnull selects scalar shadingYes
Automation details

Command ID: material.create

Parameters:

name (not a built-in material's); density_g_cm3: (0, 1000]; appearance?: library name (appearance.library) | color?: "#rrggbb" or [r, g, b] (0–255), opacity? (0–1), pbr?: {metallic:0..1, roughness:0.045..1, dielectric_ior:1..3} (opaque only, needs color/appearance): the default look. A named appearance keeps its preset response when pbr is omitted; pbr: null selects scalar shading. Optical edits do not change density. physical_card?: validated SI candidate record (null/omitted means unknown); card density never changes assigned density. Assign it with material.assign

Edit Physical Material

ParameterTypeRequiredDescription
materiala material defined in this designYes
nameNobodies and configuration cells follow
density_g_cm3No
appearanceNo
colorNo
opacityNo
pbrNoas material.create; color: null clears the look
Automation details

Command ID: material.edit

Parameters:

material: a material defined in this design; name? (bodies and configuration cells follow); density_g_cm3?; appearance? | color?, opacity?, pbr? (as material.create; color: null clears the look). physical_card?: validated SI candidate record (omitted retains, null clears). Omitted appearance/color retains the entire current look

Inspect Physical Material

Automation details

Command ID: material.inspect

Parameters:

material: built-in or design-owned name. Returns assigned density, default appearance, optional physical_card, validation and density comparison. Read-only; missing engineering data remains unknown and card density does not change mass

Delete Physical Material

ParameterTypeRequiredDescription
materiala material defined in this designYes
replacematerial for the bodies and configuration cells that use itNowithout it, a material in use is refused
Automation details

Command ID: material.delete

Parameters:

material: a material defined in this design; replace?: material for the bodies and configuration cells that use it (without it, a material in use is refused)

Validate Physical Material Data

Automation details

Command ID: material.properties.validate

Parameters:

card: schema_version 1 engineering material card in SI units. Returns numerical consistency, derived isotropic moduli, missing conditions and sources needing review. Read-only; does not assign/save properties or provide an analysis solver. See docs/physical-material-cards.md

Directional Elastic Modulus

ParameterTypeRequiredDescription
cardschema_version 1 engineering material cardYes
Automation details

Command ID: material.properties.directional

Parameters:

card: schema_version 1 engineering material card; direction: three finite nonzero-vector components in the card's material-local axes. Returns normalized direction, Young modulus in Pa and source/condition review. Read-only constitutive query; no structural solver, persistence or body-axis assignment. See docs/physical-material-cards.md

Other commands: engine

List Commands

Automation details

Command ID: engine.commands

No parameter description is provided by the command registry.

Describe Command

Automation details

Command ID: engine.describe

Parameters:

command: a command id. Returns {id, label, params, input, output} (and param_warnings in the warn parameter-check mode): the command's parameter documentation and, once the command has a typed contract, the JSON Schemas (2020-12) of its parameters and of a successful result (null otherwise). Read-only.

Other commands: drawing

Hole Callout

ParameterTypeRequiredDescription
featurethe Hole feature's idYes
pointits sketch point idNoone of the holes it drills at sketch points; none for a hole placed by position
unitsa length unitNomm, in, yd, …; default the open drawing's fixed unit, else the design's
decimals0…6Nodefault 2; inches show at least 3
Automation details

Command ID: drawing.hole_callout

Parameters:

feature: the Hole feature's id; point?: its sketch point id (one of the holes it drills at sketch points; none for a hole placed by position); units?: a length unit (mm, in, yd, …; default the open drawing's fixed unit, else the design's); decimals?: 0…6 (default 2; inches show at least 3); language?: the content language, a BCP 47 tag (default the open drawing's, else en); count?: before (default, `2× Ø6 THRU`) or after (`Ø6 THRU (x2)`), where the count of holes alike goes → hole: {feature, point?}; status: resolved | suppressed (the feature is) | failed (it did not evaluate; a later feature removed the hole, moved it some way other than solid.move, or changed its diameter or depth; or it is in sheet metal, not supported yet) | lost (the feature or the point is gone; never moved to another hole); reason? (failed, lost); callout? {count (holes the feature drills and the copies of them, made by later patterns and mirrors, that read alike), unlike? (copies that read otherwise, not counted), diameter (the drilled one), thread? (its standard designation: M8x1, a coarse one without its pitch, M8), thread_class? (the feature's, such as 6H or 2B), hand? (right | left, with thread; the text writes the thread as ISO 965-1 and ASME B1.1 designate it: M22x1-6H-LH, 1/4-20 UNC-2B-LH), thread_depth? (from the face the hole starts on, past any counterbore or countersink), extent (this hole's): {type: through} | {type: blind, depth (from the face the hole starts on)}, form: {type: simple} | {type: drilled, tip_angle} | {type: counterbore, diameter, depth} | {type: countersink, diameter, angle}, start, start_face, direction (in the model as it is now, after a solid.move of the body, in the hole's own component)} in mm and radians; lines?, text? (the lines joined by newlines). Works with a drawing open or with none. Holes of other features are not supported yet

Create Drawing

ParameterTypeRequiredDescription
namethe drawing's nameNodefault: the design's
templatea built-in's nameNodrawing.template.list; default iso-a3-part for a part, iso-a2-assembly for an assembly, a design that places components
first_sheet_nameoverride the first sheet's nameNo
first_sheet_paperoverride its {size, orientation, dpi}No
omit_first_sheet_title_blocktrue to start the first sheet without its template title blockNo
units"follow_model" or one length unit such as "mm"Nodefault: the template's
projectionfirst or thirdNoangle
Automation details

Command ID: drawing.create

Parameters:

name?: the drawing's name (default: the design's); template?: a built-in's name (drawing.template.list; default iso-a3-part for a part, iso-a2-assembly for an assembly, a design that places components) or a .json or .scdwg template file (drawing.template.save); first_sheet_name?: override the first sheet's name; first_sheet_paper?: override its {size, orientation, dpi}; omit_first_sheet_title_block?: true to start the first sheet without its template title block; standard_views?: true to place the front, top, right and isometric views at a fitted scale on the first sheet; language?: the drawing's content language, a BCP 47 tag (default: the template's, en for the built-ins); units?: "follow_model" or one length unit such as "mm" (default: the template's); projection?: first or third (angle) (default: the template's, third for the built-ins); font?: the font family its text is set in, by name (default: the template's, the built-in font for the built-ins); line_group?: the ISO 128 line group its lines are drawn in, by its wide line, one of 0.25, 0.35, 0.5, 0.7, 1, 1.4 or 2 (default: the template's, 0.5 for the built-ins); source?: another design file to draw instead of this design, which may then be empty: a design file's path of at most 4096 bytes, kept relative to this design's folder when saved. A template with a parts list requires the current design. Adds a drawing of this design (or of the file) made from the template, with ids of its own, and opens it (one undo step of the model) → as drawing.inspect

Apply Drawing Template

ParameterTypeRequiredDescription
templatea built-in's nameYesdrawing.template.list
Automation details

Command ID: drawing.template.apply

Parameters:

template: a built-in's name (drawing.template.list) or a .json or .scdwg template file (drawing.template.save); dry_run?: true to answer without changing anything. Each sheet takes the paper, drawing border and title block of the template's sheet in its place (its last for sheets past its own); text typed over a cell stays while the new block has a text cell of that name. Nothing moves → changed: [{sheet, paper, border, title_block, lost: [cells whose typed text is dropped]}] for each sheet that changes, outside: the views on a restyled sheet that fall outside its drawing space or over its title block (as drawing.sheet.set lists them), dry_run. One undo step, none when nothing changes.

Save as Drawing Template

ParameterTypeRequiredDescription
patha .scdwg fileYesa .json path gets a .scdwg file beside it with the same stem
Automation details

Command ID: drawing.template.save

Parameters:

path: a .scdwg file (a .json path gets a .scdwg file beside it with the same stem) → {path: the file written, bytes, renamed_from?: the requested .json path}. Saves the open drawing as a template with its sheets, borders, title blocks with their logos and plain-text overrides, sheet notes and sketches with fills, table layouts and symbol definitions, projection, units, language, revision numbering, and drawing properties. It clears the drawing number, sources, views and their notes, dimensions, balloons, placed images, revision rows, table row overrides, and the component each sheet documents. A parts list reads the current design's root when a drawing is created from the template. drawing.create and drawing.template.apply accept the template file. A drawing made from the template gets its own copy.

List Drawing Templates

Automation details

Command ID: drawing.template.list

Parameters:

→ templates: [{name, title, assembly: whether it is an assembly's, default: whether drawing.create starts from it for this design}], the built-ins: ISO A4 to A0 for a part and for an assembly, each with the ISO border, the built-in title block and its kind's general tolerances

List Drawings

Automation details

Command ID: drawing.list

Parameters:

→ drawings: [{id, name, sheets (how many), open}], by name, then id

Open Drawing

ParameterTypeRequiredDescription
drawingidYesfrom drawing.list
Automation details

Command ID: drawing.open

Parameters:

drawing: id (from drawing.list) or name (one only one drawing has) → as drawing.inspect. The drawing commands then change it; the model's wait until drawing.close

Close Drawing

Automation details

Command ID: drawing.close

Parameters:

→ closed: the drawing's id, or null when none was open

Delete Drawing

ParameterTypeRequiredDescription
drawingid or nameYesone only one drawing has
Automation details

Command ID: drawing.delete

Parameters:

drawing: id or name (one only one drawing has) → deleted: its id; closed when it was open (one undo step of the model)

Inspect Drawing

Automation details

Command ID: drawing.inspect

Parameters:

→ {id, name, units, projection, updates: automatic or deferred, language, font, line_group, view_letters: {reuse, given} (whether a deleted view's letter is given again, and how many letters have been given), font_note: why its text is set in the built-in font instead (the font isn't on this computer, or can't be set on paper), or null, font_fallbacks: which font set each script of its title blocks' text that the drawing's font lacks, as lines such as "Kana set in BIZ UDPGothic", properties, sources: [{id, path?: another design's file, as this design's file keeps it; none for the design itself}], sheets: [{id, name, size_mm, orientation, title_block (its definition, or null), title_block_cells: [{name, text, value?, notes?}] (each text cell as the sheet shows it, a cell that shows a logo, its `image` in `title_block`, left out: its fields' values, nothing for one with none, or the text typed over it with the value it hides as `value`; `notes` are what doesn't fit on paper, each {fit: chars (with count and max), height or width}, shown whole, or {refused: why} for a label or value the drawing's font can't set, left off the sheet), title_block_overrides, dpi, line_group (its own, or null for the drawing's), documents, excluded, views: [{id, kind: base|projected|section, parent?, side?, label, dimensions: [ids], balloons: [ids], notes: [ids]}], base views by id, each followed by those projected or cut from it, notes: [ids] (on the sheet itself), tables, images, revision_tags: [ids], each list by id: what the sheet shows, as the Browser lists it}], symbols: [{id, name, prompts: [keys]}], revisions: {rows: [{row, revision, description, designer, checker, date, hidden}], the oldest first (the newest is the drawing's revision), next: the revision a new row gets}}. Read-only.

Drawing Settings

Automation details

Command ID: drawing.set

Parameters:

name?, language?: a BCP 47 tag, units?: "follow_model" or one length unit such as "mm", projection?: first or third (angle), which every projected view follows, updates?: automatic, or deferred: its views follow a changed model only on drawing.update, font?: the font family its text is set in, by name, never a file ("": the built-in font). line_group?: the ISO 128 line group its lines are drawn in, by its wide line: 0.25, 0.35, 0.5, 0.7, 1, 1.4 or 2; a sheet or a view may choose another. revision_numbering?: {start: 0 or 1}, the number new revisions count from: rows already there stay as typed. view_letters_reuse?: whether a deleted view's letter is given again (true, the default) or never (false). One undo step.

Drawing Properties

Automation details

Command ID: drawing.properties

Parameters:

→ metadata: the drawing's properties as saved (other tools' keys too); properties: project, part_number, revision, author, organization, description, material, finish and license, each its text or null. The design properties' rules (document.metadata).

Change Drawing Properties

Automation details

Command ID: drawing.properties.set

Parameters:

key and value, or values: {key: value, …} (all or nothing, one undo step), as document.metadata.set takes them → metadata, changed: [keys]

Remove Drawing Property

ParameterTypeRequiredDescription
key[keys]Yes
keys[keys]Yes
Automation details

Command ID: drawing.properties.remove

Parameters:

key, or keys: [keys] → metadata, removed: [keys that were there]

Add Balloon

ParameterTypeRequiredDescription
viewa saved view's idYes
parts_listthe table it readsNodefault its sheet's only parts list, else the drawing's
at_edgemiddleNodefault: the arrow ends on the edge's middle
Automation details

Command ID: drawing.balloon.add

Parameters:

view: a saved view's id; edge: the edge its arrow points at, a point on it [x, y, z] in the design's frame, {point} or {body, index}, and `path` INSIDE it (not a top-level field), the occurrences its body is placed through, from the top (the part the balloon numbers; at least one; a design of one part has none, so place it as a component first), e.g. edge: {point: [40, 0, 0], path: [3]}; at: [x, y], the balloon's centre on paper in mm from the view's centre; parts_list?: the table it reads (default its sheet's only parts list, else the drawing's); at_edge?: middle (default: the arrow ends on the edge's middle) or picked (it ends at the edge's `point`, kept as a part of the edge's length) → what drawing.balloon.inspect answers for it. Saved by the edge's name, never the point picked; one on a part its view doesn't draw (its hide or 
             source leaves it out) is refused. One undo step; no model is evaluated.

Delete Balloon

ParameterTypeRequiredDescription
balloonits idYes
Automation details

Command ID: drawing.balloon.delete

Parameters:

balloon: its id → {balloon}. The part it numbered keeps its row in the parts list. One undo step; no model is evaluated.

Edit Balloon

ParameterTypeRequiredDescription
balloonits idYes
set{at?: [x, y], parts_list?: a table's id, or null to read the only list}Yes
Automation details

Command ID: drawing.balloon.edit

Parameters:

balloon: its id; set: {at?: [x, y], parts_list?: a table's id, or null to read the only list} → {balloon, changed: [fields]}. What it points at stays: to number another part, add a new one. One undo step, none when nothing changes; no model is evaluated.

Repair Balloon

Automation details

Command ID: drawing.balloon.repair

Parameters:

balloon: its id, one that reads lost or ambiguous; pick: {edge}, the edge it points at now, as add takes it but without path (it keeps its own, the part it numbers); an edge candidate inspect lists passes back as it stands → what drawing.balloon.inspect answers for it. Saved by the edge's name; its id, place and parts list stay. One undo step; no model is evaluated.

Inspect Balloon

ParameterTypeRequiredDescription
balloonits idYes
Automation details

Command ID: drawing.balloon.inspect

Parameters:

balloon: its id → {balloon, view, record: as saved, occurrence: the part it numbers, status: ok, ambiguous, suppressed, failed or lost, why?, point?: where its arrow ends (its edge's middle, or where `at_edge: picked` picked it, in the design's frame), exact, candidates?: [{edge: {body, index}}] what an ambiguous edge's name finds, or a lost one's leads ({face: {body, index}} too), parts_list?: the list it reads, choices?: with none to go by, those it could name, item?: its row's item ("1.2"), row_status: ok, no_list, reference, no_row, not_found or unread (its list's design can't be read), warnings?: such as its view edited since to leave its part out}. A lost row never removes it. Read-only; no model is evaluated.

Preview View Breaks

ParameterTypeRequiredDescription
angle_radcut-line angleYes
shortening_axis[x,y]Nodefault [1,0], normalized independently of the cut
scalepaper:modelYes
lines[[[x,y],[x,y]]]No
paper_points[[x,y]]No
Automation details

Command ID: drawing.break.preview

Parameters:

angle_rad: cut-line angle; shortening_axis?: [x,y] (default [1,0], normalized independently of the cut); scale: paper:model; breaks: [{start,end,gap_mm}] along the cut normal in original view-plane mm, gaps in paper mm along the shortening axis; lines?: [[[x,y],[x,y]]]; paper_points?: [[x,y]] → clipped straight lines, normal-coordinate paper gaps and inverse picks (null inside gaps); read-only preview, no drawing objects

Set Automatic Center Marks

ParameterTypeRequiredDescription
viewidYes
enabledboolYes
Automation details

Command ID: drawing.auto_center_mark.set

Parameters:

view: id; enabled: bool. Disabling removes the rule and its exclusions; one undo step. Enabling is refused on a view that draws another configuration or position (not supported yet); disabling is always allowed.

Inspect Automatic Center Marks

ParameterTypeRequiredDescription
viewidYes
Automation details

Command ID: drawing.auto_center_mark.inspect

Parameters:

view: id → {view, enabled, exclusions: [{reference, status, why?, exact, candidates?}], changed, reason?}: the saved exclusions and their reference statuses, and, when automatic marks are on, why the current model cannot be scanned for them. Both are read from the model and the view's settings as they are now. A deferred drawing's sheet keeps showing the marks and failures it last drew until drawing.update, and drawing.scene lists that view in out_of_date meanwhile.

Exclude Automatic Center Mark

ParameterTypeRequiredDescription
viewidYes
edgemodel edge pick with optional occurrence pathYes
Automation details

Command ID: drawing.auto_center_mark.exclude

Parameters:

view: id; edge: model edge pick with optional occurrence path. Refused on a view that draws another configuration or position. One undo step.

Include Automatic Center Mark

ParameterTypeRequiredDescription
viewidYes
Automation details

Command ID: drawing.auto_center_mark.include

Parameters:

view: id; reference: saved exclusion as returned by inspect, even when lost; allowed on a view that draws another configuration or position, to clean up a saved rule. One undo step.

Add Center Line

ParameterTypeRequiredDescription
viewsaved view idYes
overshoot_mmextension on paper at each endYes
Automation details

Command ID: drawing.center_line.add

Parameters:

view: saved view id; a and b: model point picks; overshoot_mm: extension on paper at each end. The view must draw both parts and show the assembled design. One undo step.

Edit Center Line

ParameterTypeRequiredDescription
lineidYes
overshoot_mmextension on paper at each endYes
Automation details

Command ID: drawing.center_line.edit

Parameters:

line: id; overshoot_mm: extension on paper at each end. One undo step if changed.

Inspect Center Line

ParameterTypeRequiredDescription
lineidYes
Automation details

Command ID: drawing.center_line.inspect

Parameters:

line: id → saved record and current endpoints or reference status, with a warning if its view no longer draws a part or draws another configuration or position.

Remove Center Line

ParameterTypeRequiredDescription
lineidYes
Automation details

Command ID: drawing.center_line.remove

Parameters:

line: id → removed line. One undo step.

Add Center Mark

ParameterTypeRequiredDescription
viewsaved view idYes
edgemodel edge pick with optional occurrence pathYes
overshoot_mmextension on paper at each endYes
Automation details

Command ID: drawing.center_mark.add

Parameters:

view: saved view id; edge: model edge pick with optional occurrence path; overshoot_mm: extension on paper at each end → mark and resolved circle. The view must draw the part and show the assembled design. One undo step.

Edit Center Mark

ParameterTypeRequiredDescription
markidYes
overshoot_mmextension on paper at each endYes
Automation details

Command ID: drawing.center_mark.edit

Parameters:

mark: id; overshoot_mm: extension on paper at each end. One undo step if changed.

Inspect Center Mark

ParameterTypeRequiredDescription
markidYes
Automation details

Command ID: drawing.center_mark.inspect

Parameters:

mark: id → saved record and current circle or reference status, with a warning if its view no longer draws the part or draws another configuration or position.

Remove Center Mark

ParameterTypeRequiredDescription
markidYes
Automation details

Command ID: drawing.center_mark.remove

Parameters:

mark: id → removed mark. One undo step.

Check Drawing

ParameterTypeRequiredDescription
sheetid or nameNodefault: every sheet
Automation details

Command ID: drawing.check

Parameters:

sheet?: id or name (default: every sheet) → {sheet?, findings: [{kind, sheet, object: {kind: view|sketch|fill|dimension|centre_line|centre_mark|balloon|note|table|image|title_block|view_label|revision_tag, id}, cell?, field?, item?, why}], counts: [{kind, count}], coverage: [{feature, name, state, by?: [{kind: dimension|note, id}], why?}], coverage_counts: [{state, count}]}: what makes the drawing wrong or incomplete, in sheet order, then by the record each names. kind is one of a closed list: lost, ambiguous, unmeasurable, suppressed, failed (a dimension, balloon or note whose reference isn't found as one thing, can't be measured, or depends on a suppressed or failed feature; failed is also a view or centre annotation that can't be drawn; an automatic centre mark failure names its view), overridden (a dimension whose text is typed over its value, or a title block cell whose typed text hides a value), out_of_date (a view, a dimension, balloon or note on a view, or a sketch or fill on the sheet, that a deferred drawing shows as it last was), nothing_shown (a view with nothing to measure), empty_field (a title block field with no value, as source.key; a revision field only once the drawing has a revision row; a cell whose typed text fills it is none), not_ballooned (a row of a parts list on the sheet that no balloon points at, by item), outside_sheet (a view outside its sheet's drawing space or over its title block; a dimension, centre annotation, balloon, image or table off the paper). coverage lists each feature of the design in timeline order, apart from the findings: covered (a dimension or note points at a face it made: an edge covers the latest feature among the faces it separates, a corner the latest among its edges' faces, a pattern's copy the pattern; by lists them), not_covered (a view draws a face it made, named from exact history, and nothing points at it), unknown (the faces a view draws of it aren't named from exact history), not_applicable (it is suppressed or rolled back, only reference parts draw it, or no view draws a face it made: a sketch, a plane). Coverage says a dimension or a note points at a feature, not that it is fully dimensioned. With sheet, the findings and the coverage are of that sheet only, and sheet echoes its id. The sheet is read as an export reads it: a deferred drawing is checked as it shows the model, with what it shows as it last was listed. Read-only: nothing is drawn or saved, and the same drawing always gives the same answer.

Add Image

ParameterTypeRequiredDescription
sheetid or nameYes
rect_mm[x0, y0, x1, y1] from the sheet's lower-left cornerYes
Automation details

Command ID: drawing.image.add

Parameters:

sheet: id or name; file: a PNG or JPEG, at most 4 MiB and 64 million pixels, read from the file's header before anything decodes it; rect_mm: [x0, y0, x1, y1] from the sheet's lower-left corner → {image, format, pixels}. Its bytes are saved in the design, once however many places it sits, and its path isn't. image is the placement's id. At most 9 MiB of image files a drawing. One undo step; no model is evaluated.

ParameterTypeRequiredDescription
cella text cell's name in a sheet's title blockYes
sheetsids or namesNoevery sheet whose block has the cell
Automation details

Command ID: drawing.title_block.logo

Parameters:

cell: a text cell's name in a sheet's title block; file: a PNG or JPEG as drawing.image.add takes it, shown in place of the cell's text, or null for the text again; sheets?: ids or names (every sheet whose block has the cell) → {sheets, image: the file's id or null}. One file however many sheets show it, and it goes with the last of them. One undo step; no model is evaluated.

Add Note

Automation details

Command ID: drawing.note.add

Parameters:

anchor: {sheet: id or name}, {view: id}, {edge: {view, edge}} or {corner: {view, corner}} (an edge or a corner as drawing.dimension.add takes it; its leader ends there); at: [x, y] on paper in mm, from the sheet's lower-left corner or the view's centre; content: text, or [{text} or {field: {source: component|drawing|sheet|revision, key, format?}}]; cap_mm?: 0.5..100, its text height; align?: left (default: the text starts at `at`), centre (the text is centred on `at`) or right (the text ends at `at`), each line of several standing the same way; at_edge?: middle (default) or picked, where an edge anchor's leader ends: on the edge's middle, or at its `point`, kept as a part of the edge's length; branches?: [{edge} or{corner}], more leaders of a note on a view, 16 leaders in all, its anchor's included → what drawing.note.inspect answers for it. Saved by name, never the point picked; an edge or a corner on a part its view doesn't draw is refused. One undo step; no model is evaluated.

Delete Note

ParameterTypeRequiredDescription
noteits idYes
Automation details

Command ID: drawing.note.delete

Parameters:

note: its id → {note}. One undo step; no model is evaluated.

Edit Note

ParameterTypeRequiredDescription
noteits idYes
set{at?: [x, y], content?, cap_mm?: a height, or null for the drawing's, align?: left, centre or right, branches?: {remove?: [numbers from 0 as the list is now, each once], add?: [{edge} or {corner}], after those that stay}}Yes
Automation details

Command ID: drawing.note.edit

Parameters:

note: its id; set: {at?: [x, y], content?, cap_mm?: a height, or null for the drawing's, align?: left, centre or right, branches?: {remove?: [numbers from 0 as the list is now, each once], add?: [{edge} or {corner}], after those that stay}} → {note, changed: [fields]}. What it belongs to stays: to point at something else, add a new one. One undo step, none when nothing changes; no model is evaluated.

Inspect Note

ParameterTypeRequiredDescription
noteits idYes
Automation details

Command ID: drawing.note.inspect

Parameters:

note: its id → {note, align?: left, centre or right (none for a note saved before alignments, whose block is centred on at), record: as saved, status: ok, ambiguous, suppressed or lost, why?, point?: where its leader ends, in the design's frame, exact, candidates?: [{edge: {body, index}}], branches?: [{status, why?, point?, exact, candidates?}] (a lost one loses only its own leader), text: what it says now, its fields read for its sheet, fields?: [{source, key, state: shown, empty, lost (its sheet documents a component the design no longer has) or unknown (its source has no such field), value?, why?}], warnings?: its view edited since to leave out a part a leader points at, or its text, by its alignment at `at`, running off the paper}. A lost reference keeps the note and its text in place, without a leader. Read-only; no model is evaluated.

Define Symbol

ParameterTypeRequiredDescription
nameits own among the drawing's symbolsYes
Automation details

Command ID: drawing.symbol.define

Parameters:

name: its own among the drawing's symbols; pieces: [{stroke: {path: [segments], closed?, line: visible|hidden|centre|thin}}, {fill: {path}} or {text: {at: [x, y], content: [{text} or {field: {source: drawing|sheet|component|revision|prompt, key}}], cap_mm?: 0.5..100, align?: left|centre|right}}], 1 to 1000 of them, at most 64 texts, in mm from its insertion point (at most 5000 mm from it); a segment is {type: line, a, b} or {type: arc, center, radius, start, sweep}, as a drawing saves it → {symbol, record, prompts: [keys] each placement answers}. A stroke's width and dashes come from the sheet's line group. One undo step; no model is evaluated.

Edit Symbol

ParameterTypeRequiredDescription
symbolits idYes
set{name?, pieces?: all its pieces, as drawing.symbol.define takes them}Yes
Automation details

Command ID: drawing.symbol.edit

Parameters:

symbol: its id; set: {name?, pieces?: all its pieces, as drawing.symbol.define takes them} → {symbol, changed: [fields]}. One undo step, none when nothing changes; no model is evaluated.

Delete Symbol

ParameterTypeRequiredDescription
symbolits idYes
Automation details

Command ID: drawing.symbol.delete

Parameters:

symbol: its id → {symbol}. One undo step; no model is evaluated.

Add Drawing Dimension

ParameterTypeRequiredDescription
viewa saved view's idYes
offset_mmthe dimension line's distance on paperNodefault 10; a linear, length, chain or set one's on the side away from what it measures
textcentredNodefault
decimals0..6Nodefault 2
Automation details

Command ID: drawing.dimension.add

Parameters:

view: a saved view's id; kind: {linear: {a, b: corners, direction?: aligned (default), horizontal, vertical or {along: [x, y]}, reading?: projected (default) or true}}, {length: {edge, direction?, reading?}}, {angle: {a, b: straight edges, reading?, other_side?}}, {radial: {edge: a circle or an arc the view sees face on, diameter?: by default for a whole circle or half a turn or more}}, {cylinder: {face: a face of a whole cylinder the view doesn't see end-on, read as Ø between its silhouettes}}, {sphere: {face: a face of a sphere, read as SØ when the body's faces on it are the whole sphere, else as SR on the arc of its outline in the view that is on them}}, {cone: {face: a face of a cone whose two silhouettes in the view are on it, read as its included angle, foreshortened unless the view's plane holds its axis}}, {silhouettes: {a, b: {face, side: near or far, the silhouette nearer the other cylinder or farther}, direction?: as a linear one's, aligned being square to them}: two of one cylinder make its cylinder dimension}, {faces: {a, b: flat, parallel faces the view sees edge-on, direction?: as a linear one's, aligned being square to them}}, {overall: {body: a body's name, path?, direction?: horizontal (its width, default) or vertical (its height): its size in the view with rounded corners included, between the two flat faces that bound it, saved as a faces dimension; a body with a bulge past them is refused}} or {chain: {points: [3 to 64 corners, in order along one line], direction?: as a linear one's, aligned being first to last}} or {baseline: {origin: a corner, targets: [2 to 64 corners, in any order], direction?: as a linear one's, aligned being from the origin to the last target, the others running toward the target farthest from it}: a dimension from the origin to each target, stacked 7 mm apart on paper, the nearest first; a target before the origin along the line, or in line with it, can't be measured} or {ordinate: as a baseline's, with 1 to 64 targets: each target's distance at the end of a leader from it, the origin's as 0, numbers that would overlap moved apart; a target before the origin can't be measured}; an edge is a point on it [x, y, z] in the design's frame, {point} or {body, index}, and a corner a point, {point}, {edges: [2 to 16 edges]} or {centre: an edge that is a circle or an arc}, and a face a point on it, {point} or {body, index}, each with path?: the occurrences its body is placed through, from the top; offset_mm?: the dimension line's distance on paper (default 10; 
             a linear, length, chain or set one's on the side away from what it measures); 
             text?: centred (default) or {at: [x, y]} from the view's centre; text_to_mm?: [x, y], where its text's centre goes, or line_through_mm?: 
             [x, y], a point its line, arc or leader passes through, in paper mm from the sheet's lower-left corner, as edit's drag 
             (instead of offset_mm and text; not a set's yet); decimals?: 0..6 (default 2); override_text?: its text, in which 
             {value} is its measured number as it reads alone (Ø12.00), so `2× {value} THRU` follows the model, and {{ and }} are a brace each (not a 
             chain's or a set's); dry_run?: true to answer what it would add, adding nothing (no id is taken, no undo step) → what 
             drawing.dimension.inspect answers for it. Saved by the edges' names, never the points picked; one the view can't measure, or on a part it doesn't draw, is refused. This is the way to dimension a view, never a free line or text note; drawing.dimension.from_model brings the model's own dimensions in. One undo step; no model is evaluated.

Edit Drawing Dimension

ParameterTypeRequiredDescription
dimensionits idYes
set{offset_mm?, text?: centred or {at: [x, y]}, decimals?: 0..6, override_text?: its text ({value} is its measured number as it reads alone, {{ and }} a brace each; without {value} it is shown instead of the number), or null to show the number again; direction?, reading?: a linear or length dimension's, reading? and other_side?: an angle's, diameter?: a radial dimension's, direction?: a chain's, a set's or a silhouettes one's, targets?: a set's {remove?: [numbers from 0, each once], add?: [corners]}, taken out first, then added after the rest, the set kept as one dimension; a drag (not a set's yet), instead of offset_mm and text: text_to_mm?: [x, y], where its text's centre goes, or line_through_mm?: [x, y], a point its line, arc or leader passes through, each in paper mm from the sheet's lower-left corner, as inspect's layout}Yes
Automation details

Command ID: drawing.dimension.edit

Parameters:

dimension: its id; set: {offset_mm?, text?: centred or {at: [x, y]}, decimals?: 0..6, override_text?: its text ({value} is its measured number as it reads alone, {{ and }} 
             a brace each; without {value} it is shown instead of the number), or null to show the number again; direction?, reading?: a linear or length dimension's, reading? and other_side?: an angle's, diameter?: a 
             radial dimension's, direction?: a chain's, a set's or a silhouettes one's, targets?: a set's {remove?: [numbers from 0, 
             each once], add?: [corners]}, taken out first, then added after the rest, the set kept as one dimension; a drag (not a 
             set's yet), instead of offset_mm and text: text_to_mm?: [x, y], where its text's centre goes, or line_through_mm?: [x, y], 
             a point its line, arc or leader passes through, each in paper mm from the sheet's lower-left corner, as inspect's layout} → 
             {dimension, changed: [fields]}. What it measures stays, a set's targets aside: to measure something else, add a new 
             one; a set its view can't measure after the change, or a target on a part the view doesn't draw, is refused. One undo 
             step, none when nothing changes; no model is evaluated.

Repair Drawing Dimension

Automation details

Command ID: drawing.dimension.repair

Parameters:

dimension: its id, one that reads lost or ambiguous; slot: which of its references, a or b (a linear dimension's corners, an angle's edges, the faces of silhouettes or of faces), edge (a length's or a radial one's), face (a cylinder's, a sphere's or a cone's), origin (a set's) or a chain's point or a set's target by its number from 0, one that no longer finds the one thing it names; pick: what that reference names now, {edge}, {corner} or {face}, each as add takes it but without path (it keeps its own); a candidate inspect lists of the slot's kind passes back as it stands → what drawing.dimension.inspect answers for it. Saved by name; its id, view, place and settings stay, and one the view can't measure is refused. One undo step; no model is evaluated.

Inspect Drawing Dimension

ParameterTypeRequiredDescription
dimensionits idYes
Automation details

Command ID: drawing.dimension.inspect

Parameters:

dimension: its id → {dimension, view, record: as saved, status: ok, overridden, ambiguous, suppressed, failed, lost or unmeasurable, why?, value? (model mm, or degrees for an angle; a chain's overall, a set's farthest target), foreshortened?, text? 
             (none for a chain or a set; its text with {value} filled in), measured_text?: its number as it reads with no text of its own, 
             members?: a chain's [{value, text}] from its first point, or a set's for each target, last_good? (the value it last read, kept when the design 
             is saved, when it has none now), exact, candidates?: [{edge: {body, index}}, {corner: [x, y, z]} or {face: {body, index}}]: what an ambiguous name finds, or a lost one's leads; one of a slot's kind passes back to drawing.dimension.repair as it stands, warnings?: its view edited since to leave out a part it measures, layout?: where it sits on its view's sheet now, in paper mm from the sheet's lower-left corner, its lines before an arrowhead stops one: {extension_lines, dimension_lines: [[[x, y], ..]], arrows: [{tip, points: the unit direction}], text_boxes: [[4 corners]]: start and end on the line's side, then end and start on the far side} (none when it isn't drawn; one the sheet leaves out for its limits, or on a view whose lines fail, still has one, and drawing.scene's drawn says; none while its text waits for a font, which is never waited for here), layout_why?: why it has no layout, or no box for its text, when status doesn't say}. Read-only; no model is evaluated.

Model Dimensions

ParameterTypeRequiredDescription
viewa saved view's idYes
sketcha sketch's id or nameNoonly its dimensions
featurea feature's id or nameNoonly its own dimensions and its sketch's
bodya body's nameNoonly dimensions of features that made a face of it
Automation details

Command ID: drawing.dimension.from_model

Parameters:

view: a saved view's id; sketch?: a sketch's id or name (only its dimensions); feature?: a feature's id or name (only its own dimensions and its sketch's); body?: a body's name (only dimensions of features that made a face of it); the filters narrow together → {added: [{dimension, from}], skipped: [{from, reason, why, shown_as?}]}, in timeline order, then the sketch's own order: the model's own dimensions brought into the view as dimensions of the drawing, each placed where drawing.dimension.add places one (they can overlap: nothing is laid out). from is {kind: sketch, sketch, constraint} or {kind: feature, feature, param}. A sketch's Length, Distance, DistanceX, DistanceY, Radius, Diameter and Angle come in on a view that sees the sketch face on, found at the sketch's points on the model; an extrude's Distance comes in as the distance between its two caps, a box's Length, Width and Height as the distance between its two faces along x, y or z, a fillet's Radius and a hole's Diameter as the radial dimension of a circular edge of that size on a face it made. Each is kept only when it reads the model dimension's value. reason is one of a closed list: already_shown (a dimension of the drawing shows it: shown_as), not_supported, driven (a driven sketch dimension), not_face_on, not_found (no edge, corner or face, or several, at its points), not_drawn (the view doesn't draw its body), unmeasurable, value_differs (what was found reads another value), in_component (a sketch or feature of a placed component, not supported yet). Each model dimension shows once on the drawing: deleting its dimension frees it. One undo step; none when nothing is added.

Export Sheet

Command group: DRAWING REVIEW › OUTPUT

ParameterTypeRequiredDescription
sheetid or nameYes
formatsvg| png | pdf | dxfNodefault; millimetres, layers VISIBLE, THIN, HIDDEN, DASHED, TEXT and FILL, each entity at its line's weight; pictures are left out and counted in report.pictures_left_out
Automation details

Command ID: drawing.export

Parameters:

sheet: id or name; format?: svg (default) | png | pdf | dxf (millimetres, layers VISIBLE, THIN, HIDDEN, DASHED, TEXT and FILL, each entity at its line's weight; pictures are left out and counted in report.pictures_left_out); pdf only: text?: text (default: real text in an embedded font, selectable and searchable, with the same look) | outlines (glyph outlines only, no text in the file), sheets?: [id or name, ...], one page each in that order (a pdf given neither sheet nor sheets holds every sheet, in the drawing's order), each page the sheet's paper size, its lines and text vector, shaded views and images embedded; path?: a file with the format's extension, required for png and pdf (else the reply holds an svg's or dxf's text, at most 64 MiB); png only: dpi?: 25 to 2400 (default the sheet's own), colour?: grey (default) | black_white | rgb | transparent; paper?: white (default) | blueprint | prussian_blue, whose png is rgb → {sheet, pages? (a pdf's sheets), format, bytes, path | svg | dxf, report: {widths_snapped, pieces_merged, pixels?: [width, height], pictures_left_out?}, views: [{view, status: drawn|placeholder|failed, reason?, stats?}]}. The sheet as drawing.scene draws it: its drawing border, each image on it, then each view's lines, then centre annotations, parts lists and revision tables, then its title block's lines. Refused, naming them, while any view or sketch on the sheet failed or any fill failed or lost its boundary or any image won't decode; a placeholder view draws nothing. Omitted centre annotations are listed in annotation_failures with their reasons. What lies outside a sheet written is listed in outside_sheet: [{kind: outside_sheet, sheet, object: {kind, id}, why}], as drawing.check lists it for those sheets, in page order (a view outside its sheet's drawing space or over its title block; a dimension, centre annotation, balloon, image or table off the paper); the file is written all the same. A view of another configuration evaluates a copy of the design; the design is unchanged.

Command group: DRAWING REVIEW › OUTPUT

Default keyboard shortcut: Ctrl+P

ParameterTypeRequiredDescription
patha .pdf fileYes
Automation details

Command ID: drawing.print

Parameters:

path: a .pdf file → as drawing.export's for a pdf. The whole drawing as one vector PDF for printing, one page per sheet in the drawing's order, each page its sheet's paper size and asking a viewer to print it at actual size (PrintScaling None): drawing.export with format pdf and no sheets named. Its outside_sheet lists what lies outside any sheet, as drawing.export's does; the PDF is written all the same. The window opens it in the system's PDF viewer (a new tab in a browser) to print from there.

Fill Sheet Sketch

ParameterTypeRequiredDescription
sketchexact sheet-sketch idYes
boundarycomplete canonical outer and holes curve identitiesYes
Automation details

Command ID: drawing.sketch.fill

Parameters:

sketch: exact sheet-sketch id; boundary: complete canonical outer and holes curve identities; paint: {kind: solid} or {kind: hatch, pattern: exact pattern id, pen_width_mm}. Saves one fill in paper millimetres, in one drawing undo step.

Edit Sheet Fill

ParameterTypeRequiredDescription
fillexact fill idYes
boundaryreplacementsNo
paintreplacementsNo
Automation details

Command ID: drawing.fill.edit

Parameters:

fill: exact fill id; boundary?, paint?: replacements. A replacement boundary must match one complete current profile. Unchanged edits add no undo step.

Delete Sheet Fill

ParameterTypeRequiredDescription
fillexact fill idYes
Automation details

Command ID: drawing.fill.delete

Parameters:

fill: exact fill id. Removes that fill in one drawing undo step.

Inspect Sheet Fill

Automation details

Command ID: drawing.fill.inspect

Parameters:

fill?: exact fill id, else all fills in the open drawing. Reports complete boundary identity, paint and current, lost-boundary or failed status without changing saved geometry.

List Fill Profiles

ParameterTypeRequiredDescription
sketchexact sheet-sketch idYes
Automation details

Command ID: drawing.fill.profiles

Parameters:

sketch: exact sheet-sketch id. Lists certified complete outer-and-hole curve identities and counts uncertified profiles. Incomplete or inexact source conversion refuses. Read-only; ordinary sketch inspection remains available separately.

Import Fill Pattern

ParameterTypeRequiredDescription
kindpat with sourceYes
unitsmm|inchesNo
scalepositive multiplierNo
Automation details

Command ID: drawing.pattern.import

Parameters:

kind: pat with source, units?: mm|inches, scale?: positive multiplier; or kind: builtin with pattern: lines_45|cross_hatch. Stores independent pattern snapshots. Duplicate names retain distinct ids. Import is complete or refused, in one drawing undo step.

Inspect Fill Pattern

Automation details

Command ID: drawing.pattern.inspect

Parameters:

pattern?: exact pattern id, else all snapshots in the open drawing. Lengths are paper millimetres; angles are radians; signed gaps and zero dots remain explicit.

Delete Fill Pattern

ParameterTypeRequiredDescription
patternexact pattern idYes
Automation details

Command ID: drawing.pattern.delete

Parameters:

pattern: exact pattern id. Refuses while any fill references it. Removes an unused snapshot in one drawing undo step.

Add Revision

ParameterTypeRequiredDescription
set{revision?, description?, designer?, checker?, date?, hidden?}: the new row's textsNothe revision, when not given, the next one: after the highest the drawing has given
Automation details

Command ID: drawing.revision.add

Parameters:

set?: {revision?, description?, designer?, checker?, date?, hidden?}: the new row's texts (the revision, when not given, the next one: after the highest the drawing has given) → {row: its id, rows, next}. One undo step.

Add Revision Tag

ParameterTypeRequiredDescription
rowa row's idYes
sheetid or nameYes
at[x, y] on paperYes
textshown in place of the row's revisionNo
Automation details

Command ID: drawing.revision.tag.add

Parameters:

row: a row's id; sheet: id or name; at: [x, y] on paper; size_mm?: its side, 1 to 50 (default 8.3, for a 2.5 mm revision); text?: shown in place of the row's revision → {tag, rows, next, tags: [{tag, row, sheet, at, size_mm, shows, lost}]}. Drawn on the sheet as a triangle round what it shows, its place the centroid.

Edit Revision Tag

ParameterTypeRequiredDescription
taga tag's idYes
set{sheet?, at?, size_mm?, text?: text, or null to show the row's revision again}Yes
Automation details

Command ID: drawing.revision.tag.edit

Parameters:

tag: a tag's id; set: {sheet?, at?, size_mm?, text?: text, or null to show the row's revision again} → as tag.add. One undo step, none when nothing changes.

Delete Revision Tag

ParameterTypeRequiredDescription
taga tag's idYes
Automation details

Command ID: drawing.revision.tag.delete

Parameters:

tag: a tag's id → as tag.add. A row's delete leaves its tags, showing the revision they had; a sheet's delete takes the tags on it.

Issue Revision

Automation details

Command ID: drawing.revise

Parameters:

row?: a row's id, issued as it reads; set?: without `row`, the texts of a new revision to add and issue (as drawing.revision.add takes them) → {row, rows, next, issued: the issued history, the oldest first, version?: {path, change}, what it was issued against}. One undo step. A row is issued once; its copy keeps what it read when the row is edited, hidden or deleted. Nothing is filled in for you: no date, checker or approval.

Edit Revision

ParameterTypeRequiredDescription
rowa row's idYes
set{revision?, description?, designer?, checker?, date?: each as typed (a revision is one line); hidden?: left out of the revision table}Yes
Automation details

Command ID: drawing.revision.edit

Parameters:

row: a row's id; set: {revision?, description?, designer?, checker?, date?: each as typed (a revision is one line); hidden?: left out of the revision table} → {row, rows, next, changed: [fields], warnings?: a change to an issued row, whose copy keeps what it read}. One undo step, none when nothing changes.

Delete Revision

ParameterTypeRequiredDescription
rowa row's idYes
Automation details

Command ID: drawing.revision.delete

Parameters:

row: a row's id → {row, rows, next, tags_lost?: the revision tags bound to it, which keep the revision they showed}. Its revision is not given out again. One undo step.

Add Table

ParameterTypeRequiredDescription
sheetid or nameYes
kindparts_listYesat the top right; lists the component its sheet documents, else the design
setas drawing.table.editNo
Automation details

Command ID: drawing.table.add

Parameters:

sheet: id or name; kind: parts_list (at the top right; lists the component its sheet documents, else the design) or revision (at the bottom left); set?: as drawing.table.edit → {table, sheet, record: as saved, warnings?}. A parts list saves the numbers its view shows, if it has none saved, so what is printed doesn't move. One undo step; no model is evaluated.

Edit Table

ParameterTypeRequiredDescription
tableits idYes
set{sheet?, list?: {component?, levels?, group_by?, group_children?, show_purchased_contents?, mass?: {unit: g|kg|lb, decimals}}, columns?, heading?: top|bottom, row_height_mm?, cap_mm?, filter?, overrides?, place?: {anchor: {corner, offset_mm?}} or {at: [x, y]}}Yes
columnsYes
filterYes{only?, ballooned?: sheet|drawing: only the rows a balloon there reads, text?}
Automation details

Command ID: drawing.table.edit

Parameters:

table: its id; set: {sheet?, list?: {component?, levels?, group_by?, group_children?, show_purchased_contents?, mass?: {unit: g|kg|lb, decimals}}, columns?, heading?: top|bottom, row_height_mm?, cap_mm?, filter?, overrides?, place?: {anchor: {corner, offset_mm?}} or {at: [x, y]}}, columns, filter ({only?, ballooned?: sheet|drawing: only the rows a balloon there reads, text?}) and overrides as a drawing saves them → as drawing.table.add. One undo step, none when nothing changes.

Delete Table

ParameterTypeRequiredDescription
tableits idYes
Automation details

Command ID: drawing.table.delete

Parameters:

table: its id → {table, balloons?: those that named it, which name no list now}. A sheet's delete counts the tables on it and takes them with `contents: delete`. One undo step.

Inspect Table

ParameterTypeRequiredDescription
tableits idYes
Automation details

Command ID: drawing.table.inspect

Parameters:

table: its id → {table, sheet, status: ok|failed, why?, outline_mm?: [x0, y0, x1, y1] on the sheet, rows?: [{key, rect_mm, balloons?: how many point at it}] those it shows, listed: how many before its filter, overrides?: [{row, column, text, replaced}], warnings?: [{row?, column, warning: width|height|chars}]}, laid out in the drawing's font as the sheet draws it. Read-only; a parts list showing a mass weighs the design.

Drawing Status

Automation details

Command ID: drawing.status

Parameters:

→ {views: [{view, sheet, status: current|out_of_date|placeholder|failed, reason?}], dimensions: [{dimension, status: ok|overridden|ambiguous|suppressed|lost|unmeasurable, why?, out_of_date?: true when its sheet shows it as it last was, or not at all}], waiting: how many views are out of date, held?: true when a deferred drawing's views or dimensions out of date wait for drawing.update}. current: drawn, from the model and with the settings the view has now. current, out_of_date and waiting say what the sheet page shows: the page draws the views one at a time. drawing.scene and an export of an automatic drawing draw every view from the model at once and record what they drew, so a view they drew whole reads current without a sheet page (the CLI, MCP); a view nothing has drawn since the model changed stays out_of_date. A dimension's status is its reading from the model now; out_of_date says the sheet doesn't show that yet: its view is out of date, or it was read from another model or record than it has now (as drawing.scene's out_of_date lists it). Balloons, centre marks and centre lines are read by their inspect commands. Read-only: nothing is drawn, and each body a dimension names is read once for the call.

Update Drawing

Automation details

Command ID: drawing.update

Parameters:

→ {waiting}: a deferred drawing's views may draw from the model as it is now, until that moves on; waiting: how many are out of date until they are drawn. Nothing is drawn here: the sheet page draws them, and for a deferred drawing so do drawing.scene and an export of their sheet. A drawing that isn't deferred follows the model already: its scenes and exports draw from the model at once, and waiting counts only what the sheet page hasn't drawn yet.

What Is Under a Point

ParameterTypeRequiredDescription
sheetid or nameYes
point_mm[x, y] on paperYes
band_mmhow near a box's edge counts as on itNodefault 0
Automation details

Command ID: drawing.scene.hit

Parameters:

sheet: id or name; point_mm: [x, y] on paper; band_mm?: how near a box's edge counts as on it (default 0) → {hit: {object, kind, on_edge} or null}: of the boxes round the objects drawing.scene lists (a view's is its boundary, so one that can't be drawn is there too) that hold the point within the band, the smallest, then the topmost, with its kind as that list gives it. The drawing border is never hit. Read-only; a view of another configuration evaluates a copy of the design; the design is unchanged.

Line Under a Point

ParameterTypeRequiredDescription
sheetid or nameYes
point_mm[x, y] on paperYes
band_mmhow far from a line the point may beNodefault 1
Automation details

Command ID: drawing.scene.line

Parameters:

sheet: id or name; point_mm: [x, y] on paper; band_mm?: how far from a line the point may be (default 1) → {line: {view, occurrence, body, reference, source: {kind: edge, edge, tangent} or {kind: silhouette, face}, distance_mm} or null}: in the view drawing.scene.hit finds there (over the views alone), the nearest line within the band, of two as near the one drawn on top, named as drawing.view.snapshot names its lines. The sheet's views out of date are drawn first, as the page draws them; a view that can't be drawn has no lines. Read-only; a view of another configuration evaluates a copy of the design; the design is unchanged.

Draw Sheet

ParameterTypeRequiredDescription
sheetid or nameYes
Automation details

Command ID: drawing.scene

Parameters:

sheet: id or name → {sheet, scene: {size_mm, groups: [{object, kind: drawing_border|sheet_image|view|dimension|note|balloon|centre_mark|centre_line|parts_list|revision_table|revision_tag|fill|sketch|title_block, items: [{kind: stroke, path, closed, width_mm} or {kind: fill, region} or {kind: picture, source, rect: {min, max}, opacity} or {kind: text, font, scale, origin, angle, slant, glyphs, text, clusters, rtl}]}], fonts?: [the fonts its text names, by id, with their glyphs and never their bytes]} in paint order: the sheet's drawing border (object: the sheet), then each image on it by id (object and source: the placement), then each view on it by id (object: the view; its hidden lines dashed, under its visible ones), then the dimensions, notes and balloons of those views by view and id (object: the dimension, note or balloon; lines, arrowheads and text, set in the drawing's font and language, in paper millimetres at any scale; a note's fields read as its sheet's title block's do, its leader to where it points now; a balloon's circle round its number in its parts list, its leader to its edge's middle), then centre marks and lines (automatic marks use the view as their object), then its parts lists and revision tables by id (object: the table; its lines and its words, where its place puts it), then the notes on the sheet by id, then each sheet sketch by id, then its title block's lines (object: the sheet), views: [{view, status: drawn|placeholder|failed, reason?, stats?}], objects: [{object, kind, bounds_mm: {min, max}, boundary_mm?}], where the border, each view, each dimension, each note and each table sit on paper (what draws nothing and has no boundary isn't one), dimensions: [{dimension, view, status: ok|overridden|ambiguous|suppressed|lost|unmeasurable, drawn, why?}], notes?: [{note, view?: none on the sheet, status, drawn, why?}], balloons?: [{balloon, view, status, row_status: ok|no_list|not_found|reference|no_row|unread, item?, drawn, why?}], tables: [{table, status: ok|failed, drawn, why?}], annotation_failures?: [{object, view, kind, reason}], sketches: [{sketch, status: drawn|empty|failed, reason?}]}. A table that can't be read or laid out says why, and the rest of the sheet still draws; one with a word the drawing's fonts can't set leaves that word off and says why. A view with nothing to measure, or one that can't be drawn yet, is left out and says why, and so is a dimension that isn't found again or whose view isn't drawn; one whose text the drawing's font can't set keeps its lines and says why. A note whose reference is lost keeps its text, with no leader, and a lost balloon keeps its circle and number; one with no row keeps an empty circle and says why. Read-only; a view of another configuration evaluates a copy of the design; the design is unchanged. A deferred drawing draws only what drawing.update allows; out_of_date lists the views, dimensions, notes, balloons and sketches it shows as they last were.

Add Sheet

ParameterTypeRequiredDescription
aftera sheetNoid or name; default the last
nameNo
size{standard: a3} or {custom: {sides_mm: [w, h]}}No
orientationlandscape|portraitNo
dpi25..2400No
documents{source: id, component: id (0 the design)}No
excluded{count?, print?}No
title_block_overrides{cell: text}Nonone of these unless given
Automation details

Command ID: drawing.sheet.add

Parameters:

after?: a sheet (id or name; default the last); name?; size?: {standard: a3} or {custom: {sides_mm: [w, h]}}; orientation?: landscape|portrait; title_block?: a definition, "built-in" or null; dpi?: 25..2400; line_group?: 0.25, 0.35, 0.5, 0.7, 1, 1.4 or 2, or null for the drawing's (each defaulting to the sheet it follows); documents?: {source: id, component: id (0 the design)}; excluded?: {count?, print?}; title_block_overrides?: {cell: text} (none of these unless given) → sheet: the new sheet's id, sheets. One undo step.

Sheet Settings

ParameterTypeRequiredDescription
sheetid or nameYes
documents{source: id, component: id (0 the design)} or nullNo
excluded{count?, print?}No
title_block_overrides{cell: text, shown in place of its value, or null to drop it} or null to drop them allNo
Automation details

Command ID: drawing.sheet.set

Parameters:

sheet: id or name; name?, size?, orientation?, title_block?: a definition, "built-in" or "compact" (the built-in block's older 49 mm form, without scale, type, status, language, revision and department; its general tolerances empty) or null (a new block keeps the overrides of the text cells it still has), dpi?, line_group?: the ISO 128 line group its views are drawn in (0.25, 0.35, 0.5, 0.7, 1, 1.4 or 2), or null for the drawing's; documents?: {source: id, component: id (0 the design)} or null; excluded?: {count?, print?}; title_block_overrides?: {cell: text, shown in place of its value, or null to drop it} or null to drop them all → the drawing's sheets, and after a change of paper or title block `outside`: the sheet's views whose boundary leaves its drawing space or lies over its title block (none is moved), and after a new title block `lost`: the cells whose typed text it drops. One undo step, none when nothing changes.

Reorder Sheets

Automation details

Command ID: drawing.sheet.reorder

Parameters:

sheets: every sheet's id, in the new order → the drawing's sheets. One undo step, none for the same order.

Delete Sheet

ParameterTypeRequiredDescription
sheetid or nameYesa drawing keeps at least one
Automation details

Command ID: drawing.sheet.delete

Parameters:

sheet: id or name (a drawing keeps at least one); contents?: delete, to delete the views on it, their dimensions, notes, centre marks, centre lines and balloons, and the images and sheet sketches and fills on it, with it (without it a sheet with anything on it is refused, naming what) → the drawing's sheets. One undo step.

Create Sheet Sketch

ParameterTypeRequiredDescription
ownerexact sheet or drawing-view id in the open drawingYes
nametextNo
viewopen Sheet tile displaying the owner's sheetNo
Automation details

Command ID: drawing.sketch.create

Parameters:

owner: exact sheet or drawing-view id in the open drawing; name?: text; view?: open Sheet tile displaying the owner's sheet. Hosted calls default to the focused or most recent matching Sheet tile and return sketching_view; headless calls omit view and have no tile owner. Creates and enters one sketch: a sheet's in paper XY millimetres, a drawing view's in model millimetres in its plane; one drawing undo step.

Edit Sheet Sketch

ParameterTypeRequiredDescription
sketchexact encoded sketch id in the open drawingYes
Automation details

Command ID: drawing.sketch.edit

Parameters:

sketch: exact encoded sketch id in the open drawing; view?: matching open Sheet tile (headless calls omit it). Returns sketching_view for hosted edits, distinct from the encoded drawing view in the reply's view field. Enters that sketch (a sheet's in paper XY millimetres, a drawing view's in model millimetres in its plane) without changing its data or the source design.

Inspect Sheet Sketch

Automation details

Command ID: drawing.sketch.inspect

Parameters:

sketch?: exact encoded id, else the active sheet sketch. Reports resolved points in its owner's frame (paper millimetres for a sheet's sketch, model millimetres in the view's plane for a view's) and local entity ids without adopting the solution.

Drawing View Snapshot

ParameterTypeRequiredDescription
scale"paper:model" such as "1:2"Nodefault: the largest ISO 5455 scale that fits the sheet's drawing area
position_mm[x, y] for the view's centre on the sheetNodefault the sheet's centre
sheet{size: {standard: a3} or {custom: {sides_mm: [w, h]}}, orientation?: landscape|portrait, dpi?: 25..2400}Nodefault A3 landscape, 300 dpi
reference_hides_modelfalseNo
tangent_edgeshideNodefault
chord_mm0.001..1 paper mm the lines are sampled atNodefault 0.01
max_error_mmthe accuracy the lines must certify on paperNorefused while a piece is sampled, as the mesh's are, or bounded past it
showsallNodefault: every body, whatever the browser shows
Automation details

Command ID: drawing.view.snapshot

Parameters:

view?: front (default), back, top, bottom, left, right, iso (= iso_front_right), iso_front_left, iso_back_right, iso_back_left, or {direction, up, origin?}; scale?: "paper:model" such as "1:2" (default: the largest ISO 5455 scale that fits the sheet's drawing area); position_mm?: [x, y] for the view's centre on the sheet (default the sheet's centre); sheet?: {size: {standard: a3} or {custom: {sides_mm: [w, h]}}, orientation?: landscape|portrait, dpi?: 25..2400} (default A3 landscape, 300 dpi); visual_style?, reference_style?: visible (default), visible_hidden or shaded (drawn as a picture, without its own lines, and not with scene; shaded_visible and shaded_visible_hidden aren't supported yet); reference_hides_model?: false; reference_shown_percent?: 0..100, how far the box grows from the model's towards holding its reference parts, each side on its own (0, the default: the model's box; 100: holds them all); tangent_edges?: hide (default) or show; chord_mm?: 0.001..1 paper mm the lines are sampled at (default 0.01); max_error_mm?: the accuracy the lines must certify on paper (refused while a piece is sampled, as the mesh's are, or bounded past it); scene?: true adds the lines as a paper scene of the sheet, hidden lines dashed under the visible ones; source?: {occurrences: [[ids…]]}, the occurrence subtrees drawn ([] the design's own bodies; default every body); hide?: [[ids…]], subtrees left out; hide_bodies?: [{path: [ids…] (default [], the design's own bodies), body: its definition's body name}], single bodies of a part left out, each one the design places there; shows?: all (default: every body, whatever the browser shows) or design (only the bodies the design shows: the browser's eyes on bodies, placements, folders and groups, isolation included); at most 1000 paths in each and 4096 ids in all. measure?: up to 100 values to read on the view, each {linear: {along: x|y, from, to}}, {aligned: {from, to}} (model points), {angle: {edge: [a, b], from: horizontal|vertical|[c, d]}} or {radius: {edge}} (an edge as drawing.dimension.add takes it, which the view must see face on), with units?: mm|cm|m|in|ft (default the design's) and decimals?: 0..6 (default 2) for their labels; the reply then has measurements: [{kind, value_mm and paper_mm, or value_rad, label, meaning: projected, foreshortened, status: exact|approximate}]. Every body the design places, whatever the browser shows, unless shows: design. Returns {view, scale: {text, factor, fitted}, position_mm, sheet, extents (model mm on the view's plane), boundary_mm (on the sheet), lines: [{occurrence, body, reference, source: {kind: edge, edge, tangent} or {kind: silhouette, face}, pieces: [{visibility, path: [paper mm lines, and arcs for circles facing the view], accuracy}]}], status: {lines: exact|approximate, provenance: hidden_lines|mesh_projection|hidden_lines_and_mesh_projection, chord_mm, model_chord_mm, uncertain_pieces, covered_pieces}, stats, scene (with scene: true: {size_mm, groups: [{object: 0, kind: view, items: [{kind: stroke, path, closed, width_mm}]}]}), picture? ({pixels: [w, h], dpi, rect_mm} when something is shaded: the boundary's pixel grid at sheet.dpi or 1200, the lower, which dpi gives), source}. Read-only: saves nothing.

Inspect Drawing View

ParameterTypeRequiredDescription
viewa saved view's idYes
Automation details

Command ID: drawing.view.inspect

Parameters:

view: a saved view's id → {view, sheet, kind: base|projected|flat, source, parent?, side?, axonometry? (a pictorial view's), direction, place: {at: [x, y]} or {aligned: n}, settings: {scale, visual_style, reference_style, reference_hides_model, tangent_edges, occurrences (null: every body), exploded ("assembled" or {view: id}), pose ("designed", {joints: [...]} as saved, in radians and mm, or {study: {id, step}}; with drawn?, skipped? and study? for a position of its own), configuration ("active" or {row: id}, with drawn: {id, name} or null, and errors?), hide: {value, from: this|parent|default, parent?, set}, hide_bodies: as hide, [{path, body}] or null, shows: as hide, all|design}, unmatched?: [the hide_bodies entries that name no body the design places there now, as {path, body}: renamed or deleted since], bodies: [{path, body, drawn}: every body its design places, before source, hide and hide_bodies, and whether the view draws it now (false for one the design hides when shows: design)], reference_shown_percent, boundary_mm: {min, max} on the sheet (a 20 x 20 mm placeholder round the view's centre when there's nothing to measure), extents: {min, max, error_mm, status: approximate|exact (a flat pattern view's)|placeholder, provenance (a placeholder's reason: past_walk_limit, no_bodies, not_placed, nothing_chosen, no_exploded_view, not_posed, no_configuration, not_configured, no_flat or cut_away; a flat pattern view's: flat_pattern)} in model mm on the view's plane, linked? (a projected view's display settings: true, false or "partly"), dimensions: [its dimensions' ids, in id order], balloons: [its balloons' ids, in id order], centre_marks: [its manual marks' ids], centre_lines: [its manual lines' ids], choices: {visual_style, scale}}. Read-only; a view of another configuration evaluates a copy of the design; the design is unchanged.

Edit Drawing View

ParameterTypeRequiredDescription
viewa saved view's idYes
set{scale?, visual_style?, reference_style?, reference_hides_model?, tangent_edges?, line_group?: an ISO 128 line group by its wide line (0.25, 0.35, 0.5, 0.7, 1, 1.4 or 2), source?: {occurrences: [[ids…]]}, hide?: [[ids…]], hide_bodies?: [{path, body}], shows?: all|design (design is refused on a view of a linked design or a flat pattern view) as drawing.view.snapshot's, exploded?, pose?, configuration?: as drawing.view.base's: each a value, or null to follow the parent (a base view keeps a scale; a base view's line group follows its sheet's, then its drawing's); reference_shown_percent?; view?: a base view's direction; place?: {at: [x, y]} or {aligned: n}; linked?: a projected view's display settings all following its parent (true) or all its own, as they are now (false); axonometry?: a pictorial view's, as drawing.view.projected takes it}Yes
Automation details

Command ID: drawing.view.edit

Parameters:

view: a saved view's id; set: {scale?, visual_style?, reference_style?, reference_hides_model?, tangent_edges?, line_group?: an ISO 128 line group by its wide line (0.25, 0.35, 0.5, 0.7, 1, 1.4 or 2), source?: {occurrences: [[ids…]]}, hide?: [[ids…]], hide_bodies?: [{path, body}], shows?: all|design (design is refused on a view of a linked design or a flat pattern view) as drawing.view.snapshot's, exploded?, pose?, configuration?: as drawing.view.base's: each a value, or null to follow the parent (a base view keeps a scale; a base view's line group follows its sheet's, then its drawing's); reference_shown_percent?; view?: a base view's direction; place?: {at: [x, y]} or {aligned: n}; linked?: a projected view's display settings all following its parent (true) or all its own, as they are now (false); axonometry?: a pictorial view's, as drawing.view.projected takes it} → {view, changed: [fields], followers: [the views projected from it whose settings changed with it], outside?: [it and the views lined up with it, when it moved or changed size and their boundary leaves the sheet's drawing space or lies over its title block, none moved back in]}. One undo step; no model is evaluated, but to check a new source, hide or hide_bodies, a view of another configuration evaluates a copy of the design; the design is unchanged.

Move View

ParameterTypeRequiredDescription
viewa saved view's idYes
to_mm[x, y] for its centreYes
break_alignmentplace a view lined up with its parent apartNodefault false: it takes only its free axis
Automation details

Command ID: drawing.view.move

Parameters:

view: a saved view's id; to_mm: [x, y] for its centre; break_alignment?: place a view lined up with its parent apart (default false: it takes only its free axis) → {view, place, centre_mm, followers: the views lined up with it that went with it, outside: [{view, boundary_mm, unmeasured?}], those now outside the sheet's drawing space}. One undo step, no model evaluated; a move to where it is makes no step.

Move View to Sheet

ParameterTypeRequiredDescription
viewa saved view's idYes
sheetid or nameYes
position_mm[x, y] for its centreNodefault: where it is, or the sheet's centre for a view lined up with its parent
Automation details

Command ID: drawing.view.move_to_sheet

Parameters:

view: a saved view's id; sheet: id or name; position_mm?: [x, y] for its centre (default: where it is, or the sheet's centre for a view lined up with its parent); break_alignment?: true to move a view lined up with its parent, which is then placed apart → {view, sheet, views: [it, then the views lined up with it, which go with it], outside?: [those whose boundary leaves the sheet's drawing space or lies over its title block, none moved back in]}. One undo step. On the sheet it is on, a position_mm moves it as drawing.view.move does, and none changes nothing.

Copy View to Sheet

ParameterTypeRequiredDescription
viewa saved view's idYes
sheetid or nameYes
position_mm[x, y] for the copy's centreNodefault the sheet's centre
Automation details

Command ID: drawing.view.copy_to_sheet

Parameters:

view: a saved view's id; sheet: id or name; position_mm?: [x, y] for the copy's centre (default the sheet's centre); with_linked?: the views lined up with it copied too, lined up with the copy (true), or not (false); needed when it has any → {view: the copy, sheet, views: [the copies, its first], outside?: [those whose boundary leaves the sheet's drawing space or lies over its title block]}. A copy follows none of the views it was copied from: a projected view copied alone becomes a base view, looking the way it did, with the settings it had. Each view's dimensions, balloons, notes, sketches, centre marks and centre lines are copied with it, with ids of their own. One undo step.

Base View

ParameterTypeRequiredDescription
sheetid or nameYes
viewas drawing.view.snapshot'sNofront by default
scale"paper:model"Nodefault: the largest ISO 5455 preset at which it lies inside the sheet's drawing space and off its title block, centred where it goes, or 1:1 with nothing to measure; saved either way
position_mm[x, y] for its centreNodefault the sheet's centre
Automation details

Command ID: drawing.view.base

Parameters:

sheet: id or name; view?: as drawing.view.snapshot's (front by default); scale?: "paper:model" (default: the largest ISO 5455 preset at which it lies inside the sheet's drawing space and off its title block, centred where it goes, or 1:1 with nothing to measure; saved either way); position_mm?: [x, y] for its centre (default the sheet's centre); visual_style?, reference_style?, reference_hides_model?, reference_shown_percent?, tangent_edges?, source?: {occurrences: [[ids…]]}, hide?: [[ids…]], hide_bodies?: [{path, body}], shows?: all|design (as drawing.view.snapshot's), exploded?: "assembled" (default) or an exploded view of the design by its name or id, pose?: "designed" (default), [{joint: id or name, values: [as joint.drive takes them]}] or {study: id or name, step: a whole step of its timeline}, configuration?: "active" (default) or a row of the design's configuration table by its name or id: settings it sets itself (each left out follows the default) → {view, sheet, scale: {text, factor, fitted}, boundary_mm, outside?: [it, when its boundary leaves the sheet's drawing space or lies over its title block]}. A view of the drawing's design. One undo step; a view of another configuration evaluates a copy of the design; the design is unchanged.

Projected View

ParameterTypeRequiredDescription
parenta saved view's idYes
place{at: [x, y]} or {aligned: n}Noa side's default: lined up with its parent, its boundary 20 mm past the parent's; a diagonal's: at the point that puts its boundary 20 mm past the parent's on both axes; a diagonal takes {at} only
Automation details

Command ID: drawing.view.projected

Parameters:

parent: a saved view's id; side: left, right, above or below, where it sits (the drawing's projection says which side of the model it shows), or above_right, above_left, below_right or below_left for a pictorial view on that diagonal, which shows what its two neighbours show and is never lined up; place?: {at: [x, y]} or {aligned: n} (a side's default: lined up with its parent, its boundary 20 mm past the parent's; a diagonal's: at the point that puts its boundary 20 mm past the parent's on both axes; a diagonal takes {at} only); axonometry?: a pictorial view's (ISO 5456-3): "isometric" (default), "dimetric" (its depth at half: for a parent of main importance) or {scales: [x, y, depth]}, its parent's paper x, paper y and depth in that proportion (a trimetric view; each squared at most the other two squared together), refused with a side → {view, sheet: its parent's, scale: its parent's, boundary_mm, outside?}. Its scale and display settings follow its parent; drawing.view.edit sets its own. No view is made from a pictorial or flat pattern view yet. One undo step; a view of another configuration evaluates a copy of the design; the design is unchanged.

Projected View at Point

ParameterTypeRequiredDescription
parenta saved view's idYes
Automation details

Command ID: drawing.view.projection_for

Parameters:

parent: a saved view's id; offset_mm: [dx, dy], paper mm from the parent's centre, each at most 10000 either way; axonometry?: a diagonal's pictorial view's, as drawing.view.projected takes it (isometric by default; a side's view has none) → {kind: orthographic|pictorial|none, side? (as drawing.view.projected takes it), lined_up, direction? (as drawing.view.inspect gives it), scale? (the parent's), projection: first|third, why? (for none: on the parent's centre, or why no view is made from that parent)}: which view drawing.view.projected would make there, the nearest of eight directions (sides within 22.5° of an axis, diagonals between), under the drawing's projection. Read-only; no model is evaluated.

Auxiliary View

ParameterTypeRequiredDescription
parenta saved view's idYes
place{at: [x, y]}Nodefault: unfolded from its parent, so each point lines up with the parent across the fold line, and moved along its side until its boundary is 20 mm past the parent's
Automation details

Command ID: drawing.view.auxiliary

Parameters:

parent: a saved view's id; edge?: a straight edge the parent shows as a line, as drawing.dimension.add takes one (a point on it [x, y, z], {point} or {body, index}, with path?): the view looks square to it, so it shows at its true length; face?: a flat face the parent shows edge-on, given as an edge is: the view looks along its normal, so it shows at its true shape (give one of edge and face); toward?: [dx, dy], the side of the parent it sits on, a direction on the parent's paper (default: the side away from the middle of what the parent shows); place?: {at: [x, y]} (default: unfolded from its parent, so each point lines up with the parent across the fold line, and moved along its side until its boundary is 20 mm past the parent's) → {view, sheet: its parent's, scale: its parent's, boundary_mm, outside?}. It saves only its side, not the edge or face; its scale and display settings follow its parent. Refused: an edge that isn't straight or that the parent shows end-on, a face that isn't flat or that the parent doesn't show edge-on (with its angle), a side along the fold line, a pictorial or flat pattern parent. One undo step; a view of another configuration evaluates a copy of the design; the design is unchanged.

Flat Pattern View

ParameterTypeRequiredDescription
sheetid or nameYes
bodya sheet-metal body's nameNodefault the last one made
scale"paper:model"Nodefault: the largest ISO 5455 preset at which it lies inside the sheet's drawing space and off its title block; saved either way
position_mm[x, y] for its centreNodefault the sheet's centre
Automation details

Command ID: drawing.view.flat

Parameters:

sheet: id or name; body?: a sheet-metal body's name (default the last one made); scale?: "paper:model" (default: the largest ISO 5455 preset at which it lies inside the sheet's drawing space and off its title block; saved either way); position_mm?: [x, y] for its centre (default the sheet's centre); turn?: 0 (default), 90, 180 or 270 degrees counter-clockwise → {view, sheet, scale: {text, factor, fitted}, boundary_mm, outside?}. The flat pattern as sheet.flat_pattern reports it: its outlines and cut-outs as visible lines, bends up as chain lines (long dash, dot) and bends down as double-chain lines (long dash, two dots), narrow. Refused as sheet.flat_pattern refuses the body. One undo step; no model is evaluated.

Detail View

ParameterTypeRequiredDescription
parenta saved view's idYes
scale"paper:model"Nodefault twice the parent's
place{at: [x, y]}Nodefault right of the parent, a gap past its boundary
Automation details

Command ID: drawing.view.detail

Parameters:

parent: a saved view's id; boundary: {circle: {centre: [x, y], radius}} or {rectangle: {min: [x, y], max: [x, y]}}, the region on the parent's plane in model mm, or boundary_mm: the same drawn round the parent on its sheet, in paper mm (give one); scale?: "paper:model" (default twice the parent's); place?: {at: [x, y]} (default right of the parent, a gap past its boundary) → {view, sheet, scale: {text, factor, fitted}, boundary_mm, letter, outside?}. A detail view: the parent's region drawn again at its own scale, its lines cut to the region, labelled DETAIL and its letter; the parent shows the region's outline, thin, and the letter beside it. Its parent's settings except its scale; a view made from it, and a shaded one, are not supported yet. One undo step; no model is evaluated.

Section View

ParameterTypeRequiredDescription
parenta saved view's idYes
line{kind: full|half|offset|aligned, points: 2 to 32 [x, y] on the parent's plane in model mm (full 2, half and aligned 3, offset an even number from 4), arrows: left|right, the side of the line walked from its first point that is kept and seen}Yes
place{at: [x, y]}Nodefault: where the projected view looking its way would sit, lined up with its parent, its boundary 20 mm past the parent's: away from the arrows in third angle, towards them in first
Automation details

Command ID: drawing.view.section

Parameters:

parent: a saved view's id; line: {kind: full|half|offset|aligned, points: 2 to 32 [x, y] on the parent's plane in model mm (full 2, half and aligned 3, offset an even number from 4), arrows: left|right, the side of the line walked from its first point that is kept and seen}; place?: {at: [x, y]} (default: where the projected view looking its way would sit, lined up with its parent, its boundary 20 mm past the parent's: away from the arrows in third angle, towards them in first) → {view, sheet: its parent's, scale: its parent's, boundary_mm, letter, outside?}. A view of the parent's model cut along the line, looking the arrows' way; its scale and display settings follow its parent. Only full sections are supported so far; half, offset, aligned and shaded section views are refused as "not supported yet". The line is saved with this view, on the parent, so it moves and scales with the parent: this is the way to draw a section line, never a free line, sketch or text on the sheet; there is no command yet to move the cut, so a changed cut is a new section view (delete the old one). One undo step; the design is unchanged.

Standard Views

ParameterTypeRequiredDescription
sheetid or nameYes
scale"paper:model" for all of themNodefault: the largest ISO 5455 preset at which every one lies inside the sheet's drawing space and off its title block
isoan isometric view in the fourth cornerNodefault true
Automation details

Command ID: drawing.view.standard

Parameters:

sheet: id or name; view?: the main view's direction, as drawing.view.base takes it (front by default); scale?: "paper:model" for all of them (default: the largest ISO 5455 preset at which every one lies inside the sheet's drawing space and off its title block); gap_mm?: the paper gap between neighbouring views, 0 to 1000 (default 20); iso?: an isometric view in the fourth corner (default true) → {view, top, right, iso?, sheet, scale: {text, factor, fitted}, outside?: [those that leave the sheet's drawing space or lie over its title block at a given scale]}. The main view as a base view, its top and right views projected from it and lined up with it on the sides the drawing's projection puts them (above and right in third angle, below and left in first), and an isometric base view in the corner between them, laid out together. One undo step; no model is evaluated.

Base View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.base.planned

No parameter description is provided by the command registry.

Projected View

Automation details

Command ID: drawing.view.projected.planned

No parameter description is provided by the command registry.

Section View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.section.planned

No parameter description is provided by the command registry.

Detail View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.detail.planned

No parameter description is provided by the command registry.

Align Views

Command group: DRAWING LAYOUT › ARRANGE

Automation details

Command ID: drawing.views.align

No parameter description is provided by the command registry.

Insert Image

Command group: DRAWING LAYOUT › INSERT

Automation details

Command ID: drawing.image

No parameter description is provided by the command registry.

Drawing Line

Automation details

Command ID: drawing.line

No parameter description is provided by the command registry.

Browse Drawing Resources

Automation details

Command ID: drawing.resources

No parameter description is provided by the command registry.

Drawing Dimension

Command group: DRAWING ANNOTATE › MEASURE

Automation details

Command ID: drawing.dimension

No parameter description is provided by the command registry.

Hole Callout

Command group: DRAWING ANNOTATE › MEASURE

Automation details

Command ID: drawing.hole_callout.planned

No parameter description is provided by the command registry.

Drawing Note

Command group: DRAWING ANNOTATE › NOTES

Automation details

Command ID: drawing.note

No parameter description is provided by the command registry.

Leader Note

Command group: DRAWING ANNOTATE › NOTES

Automation details

Command ID: drawing.leader

No parameter description is provided by the command registry.

Datum

Automation details

Command ID: drawing.datum

No parameter description is provided by the command registry.

Center Mark

Command group: DRAWING ANNOTATE › SYMBOLS

Automation details

Command ID: drawing.centre_mark

No parameter description is provided by the command registry.

Align Annotations

Command group: DRAWING ANNOTATE › ARRANGE

Automation details

Command ID: drawing.annotations.align

No parameter description is provided by the command registry.

Space Annotations

Command group: DRAWING ANNOTATE › ARRANGE

Automation details

Command ID: drawing.annotations.space

No parameter description is provided by the command registry.

Parts List

Command group: DRAWING PARTS › ASSEMBLY

Automation details

Command ID: drawing.parts_list

No parameter description is provided by the command registry.

Balloon

Command group: DRAWING PARTS › ASSEMBLY

Automation details

Command ID: drawing.balloon

No parameter description is provided by the command registry.

Revision Table

Command group: DRAWING PARTS › TABLES

Automation details

Command ID: drawing.revision_table

No parameter description is provided by the command registry.

Update Drawing

Command group: DRAWING REVIEW › CHANGES

Automation details

Command ID: drawing.update.planned

No parameter description is provided by the command registry.

Check Drawing

Command group: DRAWING REVIEW › CHANGES

Automation details

Command ID: drawing.check.planned

No parameter description is provided by the command registry.

Add Drawing Revision

Command group: DRAWING REVIEW › REVISION

Automation details

Command ID: drawing.revision

No parameter description is provided by the command registry.

Break View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.break

No parameter description is provided by the command registry.

Auxiliary View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.auxiliary.planned

No parameter description is provided by the command registry.

Pictorial View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.pictorial

No parameter description is provided by the command registry.

Draft View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.draft

No parameter description is provided by the command registry.

Flat Pattern View

Command group: DRAWING LAYOUT › VIEWS

Automation details

Command ID: drawing.view.flat_pattern

No parameter description is provided by the command registry.

Move to sheet

Command group: DRAWING LAYOUT › ARRANGE

Automation details

Command ID: drawing.view.move_to_sheet.planned

No parameter description is provided by the command registry.

Copy to sheet

Command group: DRAWING LAYOUT › ARRANGE

Automation details

Command ID: drawing.view.copy_to_sheet.planned

No parameter description is provided by the command registry.

Sheet Sketch

Command group: DRAWING LAYOUT › INSERT

Automation details

Command ID: drawing.sheet_sketch

No parameter description is provided by the command registry.

Hatch

Command group: DRAWING LAYOUT › INSERT

Automation details

Command ID: drawing.hatch

No parameter description is provided by the command registry.

Model Dimensions

Command group: DRAWING ANNOTATE › MEASURE

Automation details

Command ID: drawing.dimension.from_model.planned

No parameter description is provided by the command registry.

Chain

Command group: DRAWING ANNOTATE › MEASURE

Automation details

Command ID: drawing.dimension.chain

No parameter description is provided by the command registry.

Suggest

Command group: DRAWING ANNOTATE › MEASURE

Automation details

Command ID: drawing.dimension.suggest

No parameter description is provided by the command registry.

Chamfer Note

Command group: DRAWING ANNOTATE › NOTES

Automation details

Command ID: drawing.note.chamfer

No parameter description is provided by the command registry.

GD&T

Command group: DRAWING ANNOTATE › SYMBOLS

Automation details

Command ID: drawing.gdt

No parameter description is provided by the command registry.

Surface Texture

Command group: DRAWING ANNOTATE › SYMBOLS

Automation details

Command ID: drawing.surface_texture

No parameter description is provided by the command registry.

Weld

Command group: DRAWING ANNOTATE › SYMBOLS

Automation details

Command ID: drawing.weld

No parameter description is provided by the command registry.

Tidy

Command group: DRAWING ANNOTATE › ARRANGE

Automation details

Command ID: drawing.dimension.tidy

No parameter description is provided by the command registry.

Auto Balloon

Command group: DRAWING PARTS › ASSEMBLY

Automation details

Command ID: drawing.balloon.auto

No parameter description is provided by the command registry.

Renumber

Command group: DRAWING PARTS › ASSEMBLY

Automation details

Command ID: drawing.parts_list.renumber

No parameter description is provided by the command registry.

Edit Table

Command group: DRAWING PARTS › TABLES

Automation details

Command ID: drawing.table.edit.planned

No parameter description is provided by the command registry.

Replace Model

Command group: DRAWING REVIEW › CHANGES

Automation details

Command ID: drawing.replace_model

No parameter description is provided by the command registry.

Issue Revision

Command group: DRAWING REVIEW › REVISION

Automation details

Command ID: drawing.revise.planned

No parameter description is provided by the command registry.

Revision Tag

Command group: DRAWING REVIEW › REVISION

Automation details

Command ID: drawing.revision.tag.add.planned

No parameter description is provided by the command registry.

Other commands: library

Inspect Local Library

ParameterTypeRequiredDescription
pathv1/v2 library JSONYes
Automation details

Command ID: library.inspect

Parameters:

path: v1/v2 library JSON; returns validated catalog and exact entry revisions, without changing the design

Export Design Library

ParameterTypeRequiredDescription
path.jsonYes
Automation details

Command ID: library.export

Parameters:

path: .json; id? (default user.local), name?, provenance?, overwrite? false, format? solidcraft-library/2 (default) | solidcraft-library/1 (refuses PBR/cards). Copies assigned looks and design-local physical definitions; never changes the design

Apply Local Library Entry

ParameterTypeRequiredDescription
pathYes
entryqualified IDYes
revisionexact content SHA-256Yes
targets{bodies?, faces?: [{body,point}], components?}No
namephysical material name on importNo
Automation details

Command ID: library.apply

Parameters:

path, entry: qualified ID, revision: exact content SHA-256; targets?: {bodies?, faces?: [{body,point}], components?}; name?: physical material name on import. Copies values in one undo step; material conflicts are explicit

Other commands: tab

Apply View Layout

ParameterTypeRequiredDescription
namea saved view layoutYes
Automation details

Command ID: tab.layout.apply

Parameters:

name: a saved view layout → name; arranges the current design's views in the saved window setup

List Saved View Layouts

Automation details

Command ID: tab.layout.list

Parameters:

no parameters → layouts: names of the app's saved view layouts; read-only

Remove Saved View Layout

ParameterTypeRequiredDescription
namea saved view layoutYes
Automation details

Command ID: tab.layout.remove

Parameters:

name: a saved view layout → name; removes it from the app's saved layouts

Rename Saved View Layout

ParameterTypeRequiredDescription
namea saved view layoutYes
Automation details

Command ID: tab.layout.rename

Parameters:

name: a saved view layout; new_name: 1 to 64 characters after trimming, no control characters → name, new_name

Save View Layout

Automation details

Command ID: tab.layout.save

Parameters:

name: 1 to 64 characters after trimming, no control characters → name; saves the current window setup for reuse with any design

Open Another View

Default keyboard shortcut: Ctrl+T

ParameterTypeRequiredDescription
kindmodel|sheet|render|animationNodefault: the active view's kind
subjectencoded drawing id / encoded sheet idNolegacy bare sheet id when unambiguous
reuseboolNodefault: true with a subject, false opens another view
windowidNodefault: last focused
Automation details

Command ID: tab.view.open

Parameters:

kind?: model|sheet|render|animation (default: the active view's kind); subject?: encoded drawing id / encoded sheet id (legacy bare sheet id when unambiguous); reuse?: bool (default: true with a subject, false opens another view); window?: id (default: last focused) → the request, id: the view now shown; the window opens a sub-tab of the shown design; never edits the design or opens a dialog

Close View

ParameterTypeRequiredDescription
idthe viewNodefault: the active one
Automation details

Command ID: tab.view.close

Parameters:

id?: the view (default: the active one) → id; closes it, which Reopen Closed View undoes; the last view of a design never closes (an error); never opens a dialog

Close Other Views

ParameterTypeRequiredDescription
idthe view to keepNodefault: active
windowidNodefault: the named view's window or last focused
Automation details

Command ID: tab.view.close_others

Parameters:

id?: the view to keep (default: active); window?: id (default: the named view's window or last focused) → id, window; closes the other views in that window

Close Views to the Right

ParameterTypeRequiredDescription
idthe view to keepNodefault: active
windowidNodefault: the named view's window or last focused
Automation details

Command ID: tab.view.close_right

Parameters:

id?: the view to keep (default: active); window?: id (default: the named view's window or last focused) → id, window; closes the views to the right of that view in that window

Open View in New Window

Default keyboard shortcut: Ctrl+Alt+O

ParameterTypeRequiredDescription
idthe viewNodefault: the active view
Automation details

Command ID: tab.view.pop_out

Parameters:

id?: the view (default: the active view) → id; moves the view to another desktop window of the live design; never opens a dialog

Move View to Window

Default keyboard shortcut: Ctrl+Alt+W

ParameterTypeRequiredDescription
viewan open view idYes
windowid or newNodefault
Automation details

Command ID: tab.view.move_to_window

Parameters:

view: an open view id; window?: id or new (default); existing only: index?: insertion position (0 first); new only: display?: name or index, x?, y?, w?, h?: logical points, level?: views_only → view, window, created, from, closed_source, placement

Rename Window

ParameterTypeRequiredDescription
windowa pop-out idYes
namenew window nameYes
Automation details

Command ID: tab.window.rename

Parameters:

window: a pop-out id; name: new window name → window, name

Move Window to Display

ParameterTypeRequiredDescription
windowa pop-out idYes
displaya zero-based display indexYes
Automation details

Command ID: tab.window.move_to_display

Parameters:

window: a pop-out id; display: a zero-based display index → window, display

List Windows

Automation details

Command ID: tab.window.list

Parameters:

no parameters → windows of the active design; main window is 0; read-only

Show Window

Automation details

Command ID: tab.window.focus

Parameters:

window: a window id, including 0 for the main window → window; brings it forward

Clean Window (Present)

Default keyboard shortcut: F11

ParameterTypeRequiredDescription
windowidNodefault: last focused
onboolNodefault: toggle
Automation details

Command ID: tab.window.clean

Parameters:

window?: id (default: last focused); on?: bool (default: toggle) → window, on; hide or restore window chrome; never opens a dialog

Get Window Options

ParameterTypeRequiredDescription
windowpop-out idNodefault: current or last focused pop-out
Automation details

Command ID: tab.window.options

Parameters:

window?: pop-out id (default: current or last focused pop-out) → window, options

Set Window Options

ParameterTypeRequiredDescription
windowpop-out idNo
card_headersalways|hover|hiddenNo
keep_on_topboolNo
interface_size90|100|125|150|200No
ribbonboolNo
ribbon_auto_hideboolNo
panelsboolNo
top_baralways|edgeNo
Automation details

Command ID: tab.window.set_options

Parameters:

window?: pop-out id; card_headers?: always|hover|hidden; keep_on_top?: bool; interface_size?: 90|100|125|150|200; ribbon?: bool; ribbon_auto_hide?: bool; panels?: bool; top_bar?: always|edge → window, options

Close Window

ParameterTypeRequiredDescription
windowa pop-out idYes
Automation details

Command ID: tab.window.close

Parameters:

window: a pop-out id → returned: view ids sent back to the main window, in order

Reopen Closed View

Default keyboard shortcut: Ctrl+Shift+T

Automation details

Command ID: tab.view.reopen

Parameters:

no parameters → id of the view brought back, which is shown again; an error when none was closed

Show View

ParameterTypeRequiredDescription
idthe viewYes
indexits place in tab orderYes0 first
windowdefaults to the last focused windowNo
Automation details

Command ID: tab.view.activate

Parameters:

id: the view, or index: its place in tab order (0 first); window?: defaults to the last focused window → id; shows it

Rename View

Default keyboard shortcut: F2

ParameterTypeRequiredDescription
idthe viewNodefault: the active one
Automation details

Command ID: tab.view.rename

Parameters:

name?: 1 to 64 characters after trimming, no control characters (left out, the window opens the view's name field for typing); id?: the view (default: the active one) → id, name

Duplicate View

ParameterTypeRequiredDescription
idthe viewNodefault: the active one
Automation details

Command ID: tab.view.duplicate

Parameters:

id?: the view (default: the active one) → id of the copy, which is shown; the copy sits next to the original

Move View

ParameterTypeRequiredDescription
fromplaces in tab orderYes
toplaces in tab orderYes0 first
Automation details

Command ID: tab.view.move

Parameters:

from, to: places in tab order (0 first) → from, to; moves the view among the views of its design

Show Views Together

ParameterTypeRequiredDescription
layoutsingle|side_by_side|stacked|large_and_two|gridYes
windowidNodefault: last focused
Automation details

Command ID: tab.view.layout

Parameters:

layout: single|side_by_side|stacked|large_and_two|grid; window?: id (default: last focused) → layout, shown: how many views the window shows together; fills the layout with the window's Model, Sheet and Render views in tab order (the active one among them); single shows one view at a time again; never edits the design

Equal Sizes

ParameterTypeRequiredDescription
windowidNodefault: last focused
Automation details

Command ID: tab.view.equal_sizes

Parameters:

window?: id (default: last focused) → window; equalizes tile areas, keeping the same cells and views

Reset All Cameras

ParameterTypeRequiredDescription
windowidNodefault: last focused
Automation details

Command ID: tab.view.reset_cameras

Parameters:

window?: id (default: last focused) → window; fits the visible views in that window

ParameterTypeRequiredDescription
windowidNodefault: last focused
modeoff|orientation|zoom|bothYes
Automation details

Command ID: tab.view.link

Parameters:

window?: id (default: last focused); mode: off|orientation|zoom|both → window, mode; sets how visible Model views share camera changes

Show View Beside

ParameterTypeRequiredDescription
edgeleft|right|top|bottom of the active viewNodefault: right
windowidNodefault: last focused
Automation details

Command ID: tab.view.beside

Parameters:

id?: the open Model, Sheet or Render view to show (default: a new Model angle); edge?: left|right|top|bottom of the active view (default: right); placement?: requires id and replaces edge, {kind:empty,index}, {kind:replace,target}, or {kind:split,target,edge}; window?: id (default: last focused) → id, edge or placement, shown; allows up to four views without a limit per kind

Collapse Views

ParameterTypeRequiredDescription
collapsedboolNodefault: the other way round from now
Automation details

Command ID: tab.view.collapse

Parameters:

collapsed?: bool (default: the other way round from now) → collapsed: as the views are now; folds the shown design's sub-tabs into its tab (its name and how many views it has) or shows them again; the views themselves are unchanged

List Views

Automation details

Command ID: tab.view.list

Parameters:

no parameters → views: [{id, kind, name, subject?, active}] of the shown design in tab order, collapsed: whether they are folded into its tab; read-only

Other commands: window

Use Window Options as Default

ParameterTypeRequiredDescription
windowpop-out idNodefault: current or last focused pop-out
Automation details

Command ID: window.options.use_as_default

Parameters:

window?: pop-out id (default: current or last focused pop-out) → window, options; saves its options as the defaults for new pop-outs

Other commands: settings

Settings Profiles

Automation details

Command ID: settings.profile.list

Parameters:

→ profiles: [name], active: name|null; handled by the app

Save Settings Profile

ParameterTypeRequiredDescription
name1..64 charactersYes
Automation details

Command ID: settings.profile.save

Parameters:

name: 1..64 characters → name; keeps the current input and interface settings under `name` (replacing a profile of that name) and makes it the active one

Apply Settings Profile

ParameterTypeRequiredDescription
nameYes
Automation details

Command ID: settings.profile.apply

Parameters:

name → name, applied, skipped: [preference]; switches every setting the profile holds at once

Rename Settings Profile

ParameterTypeRequiredDescription
name1..64 charactersYes
to1..64 charactersYes
Automation details

Command ID: settings.profile.rename

Parameters:

name, to: 1..64 characters → name

Delete Settings Profile

ParameterTypeRequiredDescription
nameYes
Automation details

Command ID: settings.profile.delete

Parameters:

name → deleted

Export Settings Profile

ParameterTypeRequiredDescription
namefileYes
pathfileNo
Automation details

Command ID: settings.profile.export

Parameters:

name, path?: file → profile (a `solidcraft-profile/1` document), written to `path` when given; never opens a dialog

Import Settings Profile

ParameterTypeRequiredDescription
pathfileYes
profilesolidcraft-profile/1 documentYes
name1..64 charactersNo
Automation details

Command ID: settings.profile.import

Parameters:

path: file | profile: `solidcraft-profile/1` document, name?: 1..64 characters → name; adds the profile without switching to it

Other commands: diagnostics

Report an Issue

ParameterTypeRequiredDescription
titlestringYes
descriptionstringNo
typebug | feature | questionNo
appslugNodefault solidcraft
systemboolNo
reproboolNo
logboolNo
screenshotboolNodefault true
Automation details

Command ID: diagnostics.report_issue

Parameters:

title: string; description?: string; type?: bug | feature | question; app?: slug (default solidcraft); system?, repro?, log?, screenshot?: bool (default true); design?, crash?: bool (default false). Files a problem report on tickets.solidcraft.io for the person: the app gathers what the report dialog would, sends it as a draft and opens it in their browser to review and file. Ask the person first. design and crash are never sent on an agent's word: asking for them shows the report dialog for the person to tick them. Returns {report, status, message?, url?, ticket?, dropped?}; follow it with diagnostics.report_issue_status. Needs the SolidCraft app (not headless)

Report Status

ParameterTypeRequiredDescription
reportid from diagnostics.report_issueYes
awaiting_userYesthe report dialog waits for the person
sendingYes
openedYesin their browser to file
filedYes
queuedYesoffline
Automation details

Command ID: diagnostics.report_issue_status

Parameters:

report: id from diagnostics.report_issue. Returns {report, status, message?, url?, ticket?, dropped?}: status pending, awaiting_user (the report dialog waits for the person), sending, opened (in their browser to file), filed, queued (offline) or failed

Crash Reports

Automation details

Command ID: diagnostics.crash_reports

Parameters:

limit?: number (default 20). Lists this computer's crash reports, newest first: {dir, reports: [{id, kind, time, message, command, count, version, path, replayable}]}. kind: command_panic | panic | kernel_panic_recovered | unclean_exit | device_lost | device_lost_recovered (a lost graphics device replaced in the same session, with its renderer). Read one with diagnostics.crash_report; reproduce it with `solidcraft-cli crashes replay <id>`

Crash Report

Automation details

Command ID: diagnostics.crash_report

Parameters:

id: report id. The whole report: message, location, backtrace, app version and commit, system, the command that crashed and the recent ones, notes, and design_path / replay_path when the crash can be replayed (`solidcraft-cli run <replay_path> --in <design_path>`)

Delete Crash Reports

ParameterTypeRequiredDescription
idone reportNodefault: all
Automation details

Command ID: diagnostics.crash_reports.clear

Parameters:

id?: one report (default: all). Returns {deleted}

Profile

ParameterTypeRequiredDescription
enabledboolNostart or stop recording
resetboolNoforget what was recorded
toprowsNodefault 20, 0: all
Automation details

Command ID: diagnostics.profile

Parameters:

enabled?: bool (start or stop recording); reset?: bool (forget what was recorded); top?: rows (default 20, 0: all); trace?: path (write the recorded spans as a Chrome trace-event file, for chrome://tracing or Perfetto). Returns what was recorded before enabled and reset apply: {compiled, enabled, wall_ms, spans, dropped, by_category: [{category, self_ms, share}], rows: [{category, name, count, total_ms, self_ms, max_ms}], rows_total, trace?}, the rows the most self time first. Categories: solidcore (the kernel's calls), kernel, feature (one per feature computed, by its type), doc, command, import (STEP/IGES stages), io. Self time is a span's time less the spans inside it; total counts its outermost run only. Recording also starts with SOLIDCRAFT_PROFILE=1, the CLI's --profile and the app's preference; off, it costs nothing measurable. Read-only

Validation

Automation details

Command ID: diagnostics.validation

Parameters:

mode?: each_step | each_feature | off (default: leave it). When the kernel's full check runs on the features computed from now on: after every sweep, boolean and blend (each_step), once on the bodies each feature makes or changes (each_feature, the default; a body it refuses still fails its feature, with the check's reason), or never (off, experimental). Results already there stand until their features are computed again (timeline.compute_all). The app's preference of the same name sets it. Returns {mode, previous}

Crash Test

Automation details

Command ID: diagnostics.crash_test

Parameters:

mode: panic | kernel | worker | worker_raw | abort. Checks that crash reports work: panic = an internal error in this command (caught; the design is unchanged), kernel = one inside the geometry kernel (caught), worker / worker_raw = one on a Rayon worker, caught inside / outside the kernel's guard, abort = the app ends at once (reported at the next start). Only when the SOLIDCRAFT_CRASH_TEST environment variable is set

Other commands: render

Import Surface Maps

ParameterTypeRequiredDescription
nameYes
settyped CPU raytrace or GPU path setup patchNo
frameworld-mm origin/u/v physical repeat vectorsYes
mapsexplicit base_color_srgb/normal_opengl/roughness_linear/metallic_linear {path,expected_sha256?}Yes
provenance{author,source,license}Yes
normal_strength1No
flip_vfalseNo
replacefalseNo
Automation details

Command ID: render.surface.import

Parameters:

name; set?: typed CPU raytrace or GPU path setup patch; body_index and body_name from render.scene; frame: world-mm origin/u/v physical repeat vectors; maps: explicit base_color_srgb/normal_opengl/roughness_linear/metallic_linear {path,expected_sha256?}; provenance:{author,source,license}; normal_strength?:1; flip_v?:false; replace?:false. Captures exact PNG/JPEG bytes and saves definition-local binding in one undo. CPU maps require noninterlaced 8-bit PNG. Saved designs reopen without the source files.

List Embedded Surface Images

Automation details

Command ID: render.texture.list

Parameters:

No parameters. Lists bounded design-owned texture digests, byte counts, dimensions, declared provenance and referencing setups; never returns image bytes or source filesystem paths.

Remove Embedded Surface Image

Automation details

Command ID: render.texture.remove

Parameters:

sha256: exact embedded image digest. Refuses while any saved setup uses the image, listing its users. Removing an unused image is one undo step.

Set Render Environment

ParameterTypeRequiredDescription
nameYes
setnumerical setup patchNo
Automation details

Command ID: render.environment.set

Parameters:

name; set?: numerical setup patch; rotation_deg?: finite degrees within +/-1000000, wrapped to [-180,180); intensity?: finite linear intensity 0..64 CPU HDR/constant or 0..100 CPU/GPU Sky and GPU HDR. Edits the existing HDR, sky or constant environment in one undo, without selecting a source, moving the camera or starting a render. Absent environments and raster refuse.

Set Render Light

ParameterTypeRequiredDescription
nameYes
settingsfull unsaved RenderSetupNo
expected_revisionu64No
Automation details

Command ID: render.lights.set

Parameters:

name; id except add; settings?: full unsaved RenderSetup; expected_revision?:u64; set for set/add: kind directional/point/spot/area, intensity_ev, temperature_k, softness, azimuth_deg, elevation_deg, distance_mm, size_mm, aim_at, width_mm, height_mm, position_mm, direction, edge_u_mm, edge_v_mm, radiance, colour, reference_distance_mm, minimum_distance_mm. Validated finite light edit in one undo. Existing family caps and backend support apply; refusal is atomic. Names remain defaults.

Add Light

ParameterTypeRequiredDescription
nameYes
settingsfull unsaved RenderSetupNo
expected_revisionu64No
Automation details

Command ID: render.lights.add

Parameters:

name; id except add; settings?: full unsaved RenderSetup; expected_revision?:u64; set for set/add: kind directional/point/spot/area, intensity_ev, temperature_k, softness, azimuth_deg, elevation_deg, distance_mm, size_mm, aim_at, width_mm, height_mm, position_mm, direction, edge_u_mm, edge_v_mm, radiance, colour, reference_distance_mm, minimum_distance_mm. Validated finite light edit in one undo. Existing family caps and backend support apply; refusal is atomic. Names remain defaults.

Duplicate Render Light

ParameterTypeRequiredDescription
nameYes
settingsfull unsaved RenderSetupNo
expected_revisionu64No
Automation details

Command ID: render.lights.duplicate

Parameters:

name; id except add; settings?: full unsaved RenderSetup; expected_revision?:u64; set for set/add: kind directional/point/spot/area, intensity_ev, temperature_k, softness, azimuth_deg, elevation_deg, distance_mm, size_mm, aim_at, width_mm, height_mm, position_mm, direction, edge_u_mm, edge_v_mm, radiance, colour, reference_distance_mm, minimum_distance_mm. Validated finite light edit in one undo. Existing family caps and backend support apply; refusal is atomic. Names remain defaults.

Remove Render Light

ParameterTypeRequiredDescription
nameYes
settingsfull unsaved RenderSetupNo
expected_revisionu64No
Automation details

Command ID: render.lights.remove

Parameters:

name; id except add; settings?: full unsaved RenderSetup; expected_revision?:u64; set for set/add: kind directional/point/spot/area, intensity_ev, temperature_k, softness, azimuth_deg, elevation_deg, distance_mm, size_mm, aim_at, width_mm, height_mm, position_mm, direction, edge_u_mm, edge_v_mm, radiance, colour, reference_distance_mm, minimum_distance_mm. Validated finite light edit in one undo. Existing family caps and backend support apply; refusal is atomic. Names remain defaults.

List Render Lights

ParameterTypeRequiredDescription
setupsaved setup name OR settings?: complete RenderSetup snapshotNo
Automation details

Command ID: render.lights.list

Parameters:

setup?: saved setup name OR settings?: complete RenderSetup snapshot; neither uses defaults. Returns {lights:[{id,kind,name,name_key,number,implicit,intensity,colour,...spatial fields}]}. IDs are kind:zero-based-source-slot, stable across numerical edits but not family changes/reordering/removal/rig replacement; point and spot share punctual slots. Includes implicit default/preset lights. GPU RGB radiance is factored as colour * intensity; area edges are full world-mm vectors. Read-only, no host, camera change, save, render, model evaluation or undo. See docs/render-settings.md.

Layered Surface Aging

Automation details

Command ID: render.aging.describe

Parameters:

Empty object. Read-only original Rust/patina/dust/grime/scratch/chip/fading presets and exact GPU aging contract. UI activation opens the shared Aging tab; edits remain a saved render draft, never engineering geometry or material-property mutation.

Lens and Creative Effects

Automation details

Command ID: render.effects.describe

Parameters:

Empty object. Read-only original photographic/creative filter defaults and constraints. UI activation opens shared Effects controls. Saved finishing and exact-master regrading preserve raw EXR bytes; no physical lens or branded-film calibration is implied.

Save Clear Coat

ParameterTypeRequiredDescription
nameYes
setnumerical setup patchNo
expected_revisionYes
coat{weight:0..1,roughness:0.045..1,ior:1..3}Yes
replacefalseNo
Automation details

Command ID: render.coat.bind

Parameters:

name; set?: numerical setup patch; body_index/body_name: exact render.scene identity; expected_revision; coat:{weight:0..1,roughness:0.045..1,ior:1..3}; replace?:false. Stores up to the existing 64 target bound as stable definition/feature/component/occurrence bindings for CPU/GPU. Even zero-weight coats require opaque targets. Same-target Glass refuses. One undo; no geometry, engineering material or appearance mutation.

Remove Clear Coat

ParameterTypeRequiredDescription
nameYes
targetexact saved definition/feature/component/occurrence_pathYes
Automation details

Command ID: render.coat.unbind

Parameters:

name; target: exact saved definition/feature/component/occurrence_path; expected_revision. Removes only that stable coat assignment in one undo, without device or file access.

Save Optical Binding

ParameterTypeRequiredDescription
nameCPU or GPU setupYes
setcomplete numerical setup patchNo
expected_revisionYes
optics{ior,absorption_per_mm:[r,g,b],boundary:closed_mesh|closed_box|thin_sheet,thickness_mm,shadow_transmission,subsurface?:{scattering_per_mm,anisotropy},model?:{roughness:0..1,dispersion?:{abbe_number:5..200},thin_film?:{ior:1..3,thickness_nm:0..100000}}}Yes
Automation details

Command ID: render.optics.bind

Parameters:

name: CPU or GPU setup; set?: complete numerical setup patch; body_index and body_name: exact captured target; expected_revision; optics:{ior,absorption_per_mm:[r,g,b],boundary:closed_mesh|closed_box|thin_sheet,thickness_mm,shadow_transmission,subsurface?:{scattering_per_mm,anisotropy},model?:{roughness:0..1,dispersion?:{abbe_number:5..200},thin_film?:{ior:1..3,thickness_nm:0..100000}}}; replace?:false. The optional model adds isotropic rough transmission, three-band dispersion and one lossless coherent film. CPU models require explicit Path; rough sheets require straight transmitted shadows off. See docs/render-glass-material-models.md. Stores stable definition/feature/occurrence identity in one undo without modifying engineering geometry/materials. CPU Path consumes at most 128 certified optical targets; the legacy non-Path producer retains eight. Without options.path, sheets and axis-aligned boxes retain the existing transport. Explicit progressive options.path enables exact closed-mesh certification, bounded nested convex-parent media, Beer/Snell/Fresnel and thin transmitted shadows; touching or unproven boundaries and closed transmitted-shadow connections refuse explicitly. Existing subsurface parameters may be consumed on certified closed Path media with denoising explicitly off; scalar free-flight/HG walks and separate Beer absorption are supported without refracting-boundary next-event approximation. A zero scattering rate preserves transport. GPU nested media require separate job.options.nested_media and producer certification. Unresolved or incompatible targets refuse atomically.

Remove Optical Binding

ParameterTypeRequiredDescription
namesaved setupYes
targetexact saved definition/feature/component/occurrence_pathYes
Automation details

Command ID: render.optics.unbind

Parameters:

name: saved setup; target: exact saved definition/feature/component/occurrence_path; expected_revision. Removes only that optical assignment in one undo without a device or file access.

Regrade Linear Master

ParameterTypeRequiredDescription
jobexact completed JobIdNodefault selected result
Automation details

Command ID: render.result.regrade

Parameters:

job?: exact completed JobId (default selected result); presentation: {exposure_ev?,tone_map?,finishing?,backdrop?,background?,transparent_background?}. Queues cancellable nondestructive PNG presentation from that retained native FLOAT32 master, not from PNG. Captured geometry/camera/lighting and source EXR remain unchanged; no path tracing, denoising, external EXR import or automatic file writes. Returns a distinct job with source identity and original-master digest. Existing frame retention and export rules still apply.

Set Render Camera

Automation details

Command ID: render.camera.set

Parameters:

camera: complete Render Camera snapshot (target, yaw, pitch, distance, fov; roll defaults to 0 and up to z). Validates the same finite mm/radian bounds as saved render intent, preserves explicit roll/up and changes only transient view state. No model evaluation, setup save, renderer, dirty flag or undo step. Design view.apply retains its separate up-axis policy.

Inspect Render Camera

Automation details

Command ID: render.camera.get

Parameters:

No parameters. Returns the explicitly defined current view camera, or null if the session has no camera override. No camera is fitted, no job is started and no saved setup or engineering document is changed.

Frame Render Subject

Automation details

Command ID: render.camera.fit

Parameters:

aspect?: the picture's width over its height, 0.000001 to 1000000 (default 1). Fits the current camera to the visible product bounds through the shared Camera::fit contract, moving back for a picture taller than wide so its sides hold the product too; changes only view state, not a saved setup, rendering job, stage or engineering geometry.

Review Native Studio

ParameterTypeRequiredDescription
idNATIVE-STUDIO-001..025Yes
nameYes
settyped CPU/GPU setup patchNo
Automation details

Command ID: render.preset.resolve

Parameters:

id: NATIVE-STUDIO-001..025; name; set?: typed CPU/GPU setup patch; expected_revision?:u64. Resolves original built-in HDR/rig/passive ground with conservative geometry clearance, returns all replacements and preserved fields without mutation. Unbound SCENE-* concepts are not accepted.

Apply Native Studio

Automation details

Command ID: render.preset.apply

Parameters:

Same reviewed input as render.preset.resolve, expected_revision required, replace_lighting_and_environment:true and replace_stage:true when an existing stage would change. Re-resolves the complete candidate and publishes one undo or no mutation; camera, optical bindings, geometry and engineering materials are preserved.

Review Fixed Sampling Budget

ParameterTypeRequiredDescription
idQ-*Yes
Automation details

Command ID: render.quality.prepare

Parameters:

id: Q-*; variant:fixed_samples_png for the existing GPU projection, or cpu_progressive_png for Q-001/002/003 CPU cost budgets; acknowledge_omissions:true. Optional cpu:{minimum_budget:compact|studio|workstation,adaptive?:captured AdaptiveSampling} selects the smallest existing profile admitting pilots plus production without lowering minimum_budget. CPU budgets use authored sizes, 16/32/64 production samples and seed21026; preserve transport depth, denoise, optics and effects. Read-only numerical projections, not convergence/time guarantees or complete quality acceptance. Never switches executor, adopts fixed CPU sampling or mutates a shot.

Duplicate Render Shot

ParameterTypeRequiredDescription
nameu64Yes
new_nameu64Yes
expected_revisionu64Yes
Automation details

Command ID: render.shot.duplicate

Parameters:

name, new_name, expected_revision:u64. Copies exact saved setup and resource references in one undo. Existing destinations refuse; captured jobs and camera navigation are unchanged.

Rename Render Shot

ParameterTypeRequiredDescription
nameu64Yes
new_nameu64Yes
expected_revisionu64Yes
Automation details

Command ID: render.shot.rename

Parameters:

name, new_name, expected_revision:u64. Renames exact saved setup in one undo; an existing destination or stale review refuses.

Remove Render Shot

ParameterTypeRequiredDescription
nameu64Yes
expected_revisionu64Yes
Automation details

Command ID: render.shot.remove

Parameters:

name, expected_revision:u64. Removes only that saved setup in one undo; retains resources, geometry and captured results.

Inspect Original Surface Map

Automation details

Command ID: render.library.preview

Parameters:

id: SURF-*. Returns bounded hash-verified original base-color PNG bytes and source-map fidelity label, not a rendered material thumbnail. No external paths, rendering or document edits.

Prepare Physical Reference

ParameterTypeRequiredDescription
idnamed built-in physical profileYes
nameproposed new material labelYes
acknowledge_referencetrueYes
Automation details

Command ID: render.library.physical.prepare

Parameters:

id: named built-in physical profile, name: proposed new material label, acknowledge_reference:true. Read-only loss-aware creation plan using native ValidatedCard admission and one point density; returns source receipts, extended fields and omissions. Does not execute material.create, assign bodies or infer effective-part physics.

Save Render Ground

ParameterTypeRequiredDescription
nametyped raytrace setupYes
setsetup patchNo
margin_fraction0.25No
gap_mm0.1No
reflectance_linear[0.18,0.18,0.18]No
replace_stagefalseNo
Automation details

Command ID: render.stage.ground

Parameters:

name: typed raytrace setup, set?: setup patch, margin_fraction?:0.25, gap_mm?:0.1, reflectance_linear?:[0.18,0.18,0.18], replace_stage?:false. Fits one finite passive ground below the visible product once and saves its physical transforms in one undo. Product AABB separation is rechecked on every render.

Save Physical Render Background

ParameterTypeRequiredDescription
nametyped raytrace setupYes
setsetup patchNo
kindfloor_wall or cycloramaYes
reflectance_linear[0.18,0.18,0.18]No
expected_revisionreviewed revisionYes
replace_stagefalseNo
Automation details

Command ID: render.stage.backdrop

Parameters:

name: typed raytrace setup, set?: setup patch, kind: floor_wall or cyclorama, reflectance_linear?: [0.18,0.18,0.18], expected_revision: reviewed revision, replace_stage?:false. Fits a finite floor/wall or a 24-strip polygonal cyclorama behind the visible subject using the saved camera azimuth; world +Z up and a minimum one-mm stage envelope. Preserves subject geometry, lighting, output, pose and engineering materials; one undo and rechecked product separation. Not an infinite/analytically smooth/terrain background.

Remove Render Stage

ParameterTypeRequiredDescription
namesetupYes
setsetup patchNo
Automation details

Command ID: render.stage.clear

Parameters:

name: setup, set?: setup patch. Removes saved render-only panels atomically; CAD geometry and lighting are unchanged.

Save Surface Binding

ParameterTypeRequiredDescription
nameCPU or GPU setupYes
setsetup patchNo
surfacesame input as render.library.surface.prepareYes
Automation details

Command ID: render.library.surface.bind

Parameters:

name: CPU or GPU setup; set?: setup patch; surface: same input as render.library.surface.prepare; replace?: false. Pins exact source hashes and definition/feature/occurrence identity with local-mm mapping in one undo. No paths, mesh ordinals or physical material changes.

Remove Surface Binding

ParameterTypeRequiredDescription
namesetupYes
targetsaved definition/feature/component/occurrence_pathYes
setsetup patchNo
Automation details

Command ID: render.library.surface.unbind

Parameters:

name: setup, target: saved definition/feature/component/occurrence_path, set?: setup patch. Removes only that explicit binding in one undo; no device or current geometry required.

Retain Displayed Render Result

Automation details

Command ID: render.result.pin

Parameters:

job?: completed JobId (default selected result), or null to clear selection. Selects within the eight retained completed results; oldest is evicted first. Preserves exact export bytes and original host memory accounting. No design/undo change; preview or foreign jobs refuse.

Find Render Library Targets

ParameterTypeRequiredDescription
queryexact-name substringNo
offset0No
Automation details

Command ID: render.library.targets

Parameters:

query?: exact-name substring; offset?:0; limit?:128 (1..128). Returns a bounded page of captured body ordinals/names, revision and scene bounds. Settles the model through ordinary command handling; never returns a large mesh payload.

Browse Render Library

ParameterTypeRequiredDescription
querybounded searchNo
availabilityall/usable/specification/blockedNo
offset0No
Automation details

Command ID: render.library.list

Parameters:

kind?: surfaces, selene_appearances, hdr, rigs, scenes, materials, lighting, environments, quality, native_scenes, selene_shots or capabilities; query?: bounded search; availability?: all/usable/specification/blocked; offset?:0; limit?:48 (1..128). Returns source status and explicit implemented projections separately. No device, file IO or design change.

Inspect Render Library Resource

Automation details

Command ID: render.library.describe

Parameters:

kind, id: exact authored resource. Returns original specification, runtime projection variants and explicit omissions. A concept is not an executable preset.

Apply Library Opaque Appearance

ParameterTypeRequiredDescription
idSURF-* or SELENE-AP-*Yes
variantuniform_opaqueYesrequired
Automation details

Command ID: render.library.appearance.apply

Parameters:

id: SURF-* or SELENE-AP-*; variant: uniform_opaque (required); bodies: 1..256 exact body names. Applies the original scalar baseline through ordinary appearance assignment in one undo, preserving physical properties. Spatial maps and advanced target effects are explicitly excluded.

Apply Built-in HDR Environment

ParameterTypeRequiredDescription
idHDR-*Yes
namesaved setupYes
settyped CPU/GPU setup patchNo
rotation_radauthored rotationNonative origin offset is explicit in the reply
intensity1No
samples16 for CPUNo
Automation details

Command ID: render.library.environment.apply

Parameters:

id: HDR-*; name: saved setup; set?: typed CPU/GPU setup patch; rotation_rad?: authored rotation (native origin offset is explicit in the reply); intensity?:1; samples?:16 for CPU; replace_environment?:false. Hash-verifies and embeds original bytes, saves one atomic undo without external files or a render device. An HDR-owned sun cannot duplicate an analytic sun.

Prepare Authored Surface Maps

ParameterTypeRequiredDescription
idSURF-*Yes
origin[0,0,0]No
planexy/yz/zxNo
scale1No
Automation details

Command ID: render.library.surface.prepare

Parameters:

id: SURF-*; body_index and body_name from render.scene; origin?:[0,0,0]; plane?:xy/yz/zx; scale?:1; rotation_rad?:0 (positive around the plane normal). Returns an explicit GPU temporary planar binding and a source usable by saved CPU/GPU surface.bind, with source hashes, original millimetre scale, image-up normal orientation and absolute base-color semantics. No document change; height/displacement and true anisotropy are not included.

Prepare Authored Studio Lights

ParameterTypeRequiredDescription
idRIG-*Yes
Automation details

Command ID: render.library.studio.prepare

Parameters:

id: RIG-*; variant: complete for emitter-only rigs, emitters_only for rigs with passive cards; center_mm and subject_extent_mm required. Converts exact rectangular half-edges and solar direction/radius. Optional name and typed CPU set return the complete CPU projection and explicit indirect-lighting adoption plan; authored radiance beyond CPU intensity64 refuses without scaling. Blocked calibration and external-sun rigs refuse. Returns a geometry-clearance review requirement; does not create cards or modify the scene.

Apply Authored Studio Lights

ParameterTypeRequiredDescription
nameYes
settyped CPU/GPU setup patchNo
expected_revisionu64No
enable_indirectfalseNoexplicit CPU Sun adoption after review
Automation details

Command ID: render.library.studio.apply

Parameters:

rig: id, variant, center_mm and subject_extent_mm; name; set?: typed CPU/GPU setup patch; expected_revision?:u64; enable_indirect?:false (explicit CPU Sun adoption after review); replace_lighting_and_environment:true required. Saves the explicit rig projection in one undo, removing prior lighting/environment only with that confirmation. Subject clearance still needs review; passive cards are never silently omitted.

Inspect HDR Source

ParameterTypeRequiredDescription
pathscoped Radiance HDR fileYes
Automation details

Command ID: render.hdr.inspect

Parameters:

path: scoped Radiance HDR file; validates the complete bounded source and returns sha256, width, height, encoded_bytes and primaries without saving or rendering

Save Render Settings with HDR

ParameterTypeRequiredDescription
nametyped CPU/GPU setup patch with hdr/environment unsetYes
settyped CPU/GPU setup patch with hdr/environment unsetYes
pathscoped HDRYes
expected_sha256digest returned by render.hdr.inspectNochanged sources refuse
rotation_rad0No
intensity1No
samples1/4/16/64 for CPU onlyNodefault16
Automation details

Command ID: render.settings.capture_hdr

Parameters:

name, set: typed CPU/GPU setup patch with hdr/environment unset; path: scoped HDR; expected_sha256?: digest returned by render.hdr.inspect (changed sources refuse); rotation_rad?:0, intensity?:1; samples?:1/4/16/64 for CPU only (default16); assume_linear_srgb?:false for GPU only. Captures immutable bytes and saves resource plus setup atomically in one undo, without a host; returns name/setup/resource metadata, never source bytes

Check Render Request

ParameterTypeRequiredDescription
setupsaved name OR settings?: full RenderSetupNo
progressivefalseNoregistered GPU path, CPU integrator/LED options are mutually exclusive
texture_filteringfalseNoGPU
max_depth1..64No
seedu32 for progressiveNo
environment{path: scoped HDR, expected_sha256?: inspected digest, rotation_radians: 0, intensity: 1, samples: 16} OR {resource: saved HDR digest, rotation_radians, intensity, samples}No
Automation details

Command ID: render.preflight

Parameters:

setup?: saved name OR settings?: full RenderSetup. A typed job selects raster/cpu_raytrace/gpu_path and its numerical options plus embedded HDR before dispatch; only replace and transient studio_weights may accompany it. Without job, the legacy runtime controls below remain available. See docs/render-settings.md. studio_weights?: three finite 0..1 visibility weights for raster or implicit GPU studio sources only; never saved. integrator?: raster (default) or raytrace; progressive?: false (registered GPU path, CPU integrator/LED options are mutually exclusive); texture_filtering?: false (GPU); CPU raytrace.texture_filtering?: false. Explicitly enables ray-footprint mip and bounded anisotropic map filtering on GPU, and bounded anisotropic filtering on CPU. GPU filtering off retains bilinear LOD0; CPU filtering off retains isotropic mip selection, using the coarsest available mip when footprint data is unavailable. samples?: 1..65536; max_depth?: 1..64; seed?: u32 for progressive; raytrace?: bounded runtime progressive/primary_samples/lights/punctual_lights/area_lights/area_samples/seed/exposure_ev/shadows/reflections/anisotropic_faces/emissions/surface_effects/dielectrics/environment options, only with raytrace. CPU raytrace.lens?: {aperture_radius_mm:0..10000000,focus_distance_mm:0.000001..1000000000}; positive aperture requires explicit CPU progressive sampling and a bounded perspective camera; absent/zero keeps the original CPU ray stream. See docs/render-thin-lens.md. CPU raytrace.volume?: one HomogeneousVolume box with world-mm min_mm/max_mm, extinction_per_mm:0..1000, RGB scattering_albedo:0..1 and anisotropy:-0.95..0.95. Positive extinction requires explicit Indirect lighting and cannot combine with Glass/SSS or surface Denoise. Physical eye/pupil prefixes and the orthographic line/box union preserve camera/model framing under existing ray/profile caps. See docs/render-cpu-volume.md. CPU raytrace.sun? uses the shared finite-disk Sun contract; raytrace.sky? uses {gradient,rotation_rad,intensity}. Both require explicit Indirect lighting, and gradient Sky excludes a constant/HDR environment. Their medium NEE uses the HG response/PDF and physical light source; see docs/render-cpu-celestial.md. CPU transparent_background?:false exports straight-alpha primary geometry coverage for fixed/progressive sampling; body/face opacity must remain 1, and active bloom/backdrop/photographic effects require opaque output. CPU raytrace.output?: {tone_map,finishing,backdrop,linear_exr}; shared presentation supports up to 8192 per side and 33554432 output pixels, CPU exposure remains raytrace.exposure_ev; raw FLOAT32 EXR is retained only at final completion. CPU raytrace.budget?: compact (legacy default), studio or workstation; see docs/render-cpu-resource-profiles.md for explicit image/geometry/memory/work limits. CPU raytrace.progressive?: {samples_per_pixel:1..profile limit, seed:u32}; requires primary_samples:1 and selected reflections.samples:1; area/LED sources and certified planar anisotropy/thin-sheet/axis-aligned-box dielectric continuations share the existing bounded transport and compatibility checks. See docs/render-cpu-progressive.md; environment?: {path: scoped HDR, expected_sha256?: inspected digest, rotation_radians: 0, intensity: 1, samples: 16} OR {resource: saved HDR digest, rotation_radians, intensity, samples}; embedded resources cannot combine with path/hash; explicit sRGB/D65 HDR primaries required. Opaque CPU preview with selected mirror/rough-specular reflections and certified planar anisotropy. HDR with rough reflections or anisotropy requires fully metallic selected bodies and all effective faces; unsupported combinations refuse. Optional raytrace.path:{max_depth:1..64} enables CPU diffuse/specular GI with matched rectangle/HDR light and BSDF MIS plus certified closed-mesh Glass. It requires explicit progressive camera sampling, primary_samples:1 and traced shadows; selected reflections and certified anisotropy refuse before HDR IO without changing intent. CPU Path dielectric subsurface?:{scattering_per_mm:0..100,anisotropy:-0.95..0.95} enables homogeneous free-flight/HG walks inside certified closed media; positive rates require denoising off. Contained light connections include scattering survival; closed refractive light connections and combining Glass with external volume remain unsupported. Absent path keeps the old certified thin_sheet/closed_box producer and refuses subsurface intent explicitly. See docs/render-cpu-general-glass.md and render-raytrace-dielectrics.md. CPU emissions are visible radiance and may light neighbors through sampled Path continuation, without mesh-emitter next-event sampling; surface_effects change roughness/shading normals without geometry changes. led_strip?: continuous world-mm LED rectangle recipe; led_samples?: 1/4/16/64 for the whole strip, default16. At most8directional+8punctual+4rectangle/LED sources; shared area N. See docs/render-light-union.md. transparent_background?: false; replace?: false. With progressive:true, raytrace instead accepts GPU dielectrics/clear_coats/textures; environment instead accepts tagged hdr/embedded_hdr/sky with rotation_rad/intensity; file hdr supports expected_sha256, embedded_hdr uses a document resource digest. See docs/render-hdr-resources.md. GPU lens, studio lighting, tone_map, denoise, clamp_indirect?: 0.000001..1000000 (biased; caps each contribution from the first bounce on, keeping its hue; see docs/render-path.md), bounded finishing/backdrop and linear_exr retention are also available. CPU raytrace and GPU top-level controls accept supersampling:1|2 (default 1; doubles internal width and height at 2, averages scene-linear premultiplied samples before tone mapping, exports selected dimensions), denoise_settings:{passes:1..3,strength:0..1,firefly_suppression:bool,optical_filter:bool}, and denoise_diagnostics:false. Optical filtering defaults to true for eligible mirror/glass guides; optical_filter:false restores legacy opaque-only display denoising. Guides and diagnostics retain their independent eligibility policy and conservative highlight protection. CPU raytrace.threads:0..64 selects bounded automatic workers at 0 (default), serial work at 1 or an explicit count from 2 through 64. Resource checks include internal image buffers and worker scratch. See docs/render-quality-controls.md. Both path tracers accept optional metal_energy_compensation: true for rough isotropic metals (inside CPU raytrace or top-level GPU). Both methods accept optional caustics {photons:1..1048576,radius_mm:0.000001..1000000,max_depth:1..64,seed:u32,area_lights?:false,environment?:false,guided_emission?:false,refresh_per_pass?:false} (inside CPU raytrace; top-level GPU). Optical assignments accept optional model {roughness:0..1,dispersion?:{abbe_number:5..200},thin_film?:{ior:1..3,thickness_nm:0..100000}}. CPU advanced models require Path; rough sheets require straight transmitted shadows off. See docs/render-glass-material-models.md. GPU adaptive?: {pilot_samples:16..256,min_samples:16..samples,relative_error:0..1,absolute_error:0.000001..1000000,coverage_error:0.001..0.25} allocates independent production budgets; pilots are discarded, not a certified error guarantee. transmission_samples?:1|2|4 stratifies the first Fresnel branch with extra path cost. volume?:{min_mm:[x,y,z],max_mm:[x,y,z],extinction_per_mm:0..1000,scattering_albedo:[r,g,b],anisotropy:-0.95..0.95} is one finite homogeneous world-mm medium; active media require explicit lighting/environment and refuse glass, denoise and multiple transmission strata. These fields also persist in GPU job.options. See docs/render-materials/TRANSPORT-MASTER-BATCH-2026-10-23.md; see docs/render-transmission.md, render-environment.md, render-runtime-textures.md, render-thin-lens.md, render-studio-lighting.md and render-denoise.md. Optional CPU raytracing requires a raytrace-cpu build and native host, checked before scene capture. Stale geometry is rejected. See docs/render-jobs.md

Render Image

Command group: RENDER › IMAGE

Default keyboard shortcut: R

Automation details

Command ID: render.start

Parameters:

Same request as render.preflight. Captures an immutable product scene and queues a bounded image job. Returns its session-scoped job identity, captured scene_generation and progress. Does not change the design. See docs/render-jobs.md

Render Progress

Automation details

Command ID: render.status

Parameters:

job?: {session, serial, generation}. Non-blocking progress, errors and captured frame metadata with queue:{running,waiting,job,shot,error}. Without job returns queue only. Advances an explicitly started render.batch through render.start as jobs finish; never pumps render work. Preview is separate from the exportable final image.

Cancel Render

Automation details

Command ID: render.cancel

Parameters:

job?: {session, serial, generation}, default the active render.batch job. Requests cooperative cancellation and drops its waiting shots; completed jobs remain completed. Late cancelled frames cannot be published.

Copy Render Image

ParameterTypeRequiredDescription
jobcompleted JobIdNodefault selected result
Automation details

Command ID: render.result.copy

Parameters:

job?: completed JobId (default selected result). Validates the retained PNG for app clipboard copying (max 4096 per side, 4194304 pixels); headless returns frame metadata only. Never copies a provisional image or starts a job.

Export Render Image

Automation details

Command ID: render.export

Parameters:

job?: {session, serial, generation} (default selected result), path: destination matching format?: png (default), exr or denoise_mask (PNG extension), overwrite?: false. Guide masks require denoise_diagnostics captured during rendering; their separate bytes, dimensions and SHA are returned under denoise_mask, while frame identifies the parent colour result. EXR requires an opt-in raw linear master retained by that completed CPU or GPU job; never converts PNG pixels. Exports a retained completed image atomically; an existing destination is preserved on failure. See docs/render-jobs.md

Render Backends

Automation details

Command ID: render.backends

Parameters:

No parameters. Returns {schema_version: 1, default_backend: builtin, backends: [{id, label, availability, executors: [{id, availability, profiles, limits, scratch}]}]}. Metadata only; does not start rendering or probe a GPU. See docs/render-backends.md

Render Settings

ParameterTypeRequiredDescription
namesaved setupNo
Automation details

Command ID: render.settings.get

Parameters:

name?: saved setup. Without name returns {setups, defaults}; with name returns {name, setup}. Does not evaluate the model or apply a camera. See docs/render-settings.md

Save Render Settings

ParameterTypeRequiredDescription
namesetup nameYes
setobject of fields to replaceYesbackend, mode, camera, width, height, format, exposure_ev, environment_rotation, environment_intensity, background, job, surfaces, optics, coats, stage
Automation details

Command ID: render.settings.set

Parameters:

name: setup name, set: object of fields to replace (backend, mode, camera, width, height, format, exposure_ev, environment_rotation, environment_intensity, background, job, surfaces, optics, coats, stage). job?: typed active raster/cpu_raytrace/gpu_path configuration with optional validated embedded HDR reference; omitted preserves, null clears, object replaces the complete job. Creates from defaults and saves without a host, validates atomically, one undo step; identical edits are no-ops. See docs/render-settings.md

Inspect Render Scene

Command group: RENDER › SCENE

Automation details

Command ID: render.scene

Parameters:

No parameters. Authoritative product-scene metadata, without modelling overlays or mesh payloads. Explicitly settles stale geometry; does not render an image. See docs/render-workspace.md

Apply Render Camera

Automation details

Command ID: render.settings.apply

Parameters:

name: saved setup. Applies its existing Camera snapshot including roll/up as view state, without modifying the document or starting a render.

Copy Render Check Report

Automation details

Command ID: render.preflight.copy

Parameters:

text: nonempty report, at most 65536 bytes. Validated clipboard request; headless echo only, never renders or edits a design.

Select Render Result

Automation details

Command ID: render.result.select

Parameters:

index: integer 0..7, oldest first; must be retained. Selects a completed result as transient per-document view state; echoes index.

Discard Render Result

Automation details

Command ID: render.result.discard

Parameters:

index: integer 0..7, oldest first; must be retained. Drops only that transient result, selecting the newest remaining result if necessary; echoes index.

Set Render Output Size

ParameterTypeRequiredDescription
width1..16384Yes
height1..16384Yes
customboolNo
Automation details

Command ID: render.output.size

Parameters:

width, height: 1..16384; custom?: bool. Validated Render output draft request; headless echo only, no design edits or job. The UI separately limits new selections to 8192 per side, 33554432 output pixels and the selected rendering profile.

View Render Image

ParameterTypeRequiredDescription
viewmodel|image|fit|actual|denoise_maskYes
Automation details

Command ID: render.result.view

Parameters:

view: model|image|fit|actual|denoise_mask. Guide-mask view requires a selected completed result captured with denoising diagnostics. Validated result canvas request; headless echo only, never starts a job.

Close Render Image

Default keyboard shortcut: Escape

Automation details

Command ID: render.result.close

Parameters:

No parameters. Return to Model Preview; headless echo only, never cancels a job.

Solo Light

Command group: RENDER SCENE › LIGHTS

ParameterTypeRequiredDescription
idkind:slot light addressNo
soloboolYes
Automation details

Command ID: render.lights.solo

Parameters:

id?: kind:slot light address; solo:bool. Enabling requires an id; false clears solo. Validates and echoes per-document UI view state. Never saves settings, evaluates geometry, opens an editor or changes history.

Mute Light

Command group: RENDER SCENE › LIGHTS

ParameterTypeRequiredDescription
idkind:slot light addressYes
Automation details

Command ID: render.lights.mute

Parameters:

id: kind:slot light address; mute:bool. Validates and echoes per-document UI view state, applied to live preview and captured render copies only. Never changes saved settings or history.

Compare Images

Command group: RENDER › RESULT

Automation details

Command ID: render.compare

Parameters:

left, right: live or retained result index 0..7 (oldest first), distinct and retained; OR off:true. Validated per-document comparison view request; headless echo, no rendering or design/history change.

Move Render Comparison Divider

Automation details

Command ID: render.compare.divider

Parameters:

position: finite number, clamped to 0.05..0.95. Transient comparison divider request; headless echo only.

Render All Shots

Command group: RENDER › BATCH

Automation details

Command ID: render.batch

Parameters:

request?: render.start parameters, shared across all saved shots except camera. Default: first saved setup in name order. Captures up to 32 shot cameras and queues sequentially through render.start; returns {queued:n}. Refuses active renders, no shots or stale geometry. render.status (also with {}) and the UI tick advance the queue; Cancel on the active job drops waiting shots. No design/history/revision change.