millisketch

Sketch

Revolve a profile

revolve_profile

Turns a sketch shape about an axis into a round body.

EditorTools tabAgentMCP
Needs
A closed profile picked in the sketch.
In the editor
Sketch, a closed profile picked: Revolve, about X, Y or the edge tapped, through up to 360°.
Tools tab
A form of its inputs, filled from what is picked; Run makes the change, one step to undo.
Agent and MCP
The chat's agent and MCP clients call revolve_profile, each call one step to undo. Over MCP it also takes project, editor and request_id.

What it does

A round body made by turning a closed shape about a line on the ground plane: the sketch's X or Y axis, or one of the shape's own straight edges (edge 0 runs from its first corner to its second; in the editor, the edge tapped), through an angle of up to 360°, the whole turn by default.

The axis lies on the ground, so half of a whole turn is below it: a shape revolved about Y stands up with rotation [90, 0, 0], the sketch's +Y becoming +Z.

Inputs

As the agent and MCP clients send them. One left out takes the default its description gives.

InputTypeWhat it is
shapeneededstring—
axisneededone of "x", "y", "edge"Axis.
edgewhole numberEdge.
anglenumberAngle, in °.
position[x, y, z][x, y, z] in mm: where the middle of the body's underside goes, so z 0 stands it on the ground.
rotation[x, y, z][x, y, z] in degrees, applied in that order about the body's origin.
colorstring or null"#rrggbb"; null gives the default colour back.

Limits

  • The shape must lie on one side of the line: one it crosses is refused with the reason.

Examples

A ring of square section

Given: A sketch holding a 40 × 20 mm rectangle centred on the origin (id plate) with a 6 mm circle in its middle (hole), and a 4 mm square (ring) 30 mm along X.

revolve_profile { "shape": "ring", "axis": "y" }

Then: Revolve 1: a ring 68 mm across with a 4 × 4 mm section, turned about the Y axis on the ground, half of it below until it is moved up.