e3d_update_primitive
Resize or move one referenced primitive (cylinder, box, cone, dish) in a guarded SDK operation. Inspect geometry and preview first, then execute with the returned revision to commit changes safely.
Instructions
Resize and/or move one explicitly referenced native CYLI, NCYL, BOX, NBOX, CONE, NCON or positive DISH in one guarded SDK operation. Read e3d_primitive_geometry, preview this update, pass its revision as expected_revision for execution, then verify native volume/readback and an image receipt. Omitted dimensions and transforms keep their current values. Preserves the primitive and existing child references; supported negative children move with a positive parent while their local cut placements remain unchanged. DISH editing supports a standard positive DISH without children, DIAM > 0, HEIG > 0 and RADI >= 0; these are MCP admission limits, not proof of all native geometric constraints. Its position is the base circle centre, not the bounding-box centre. NDIS is outside guarded editing. Native inspection decides shape-specific dimensions, zero-value validity and child eligibility. This is not an atomic database transaction: inspect actual rollback and residual state after failure, and never automatically replay a write. Does not rename, add to the Drawlist, or fit the camera.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wrt | No | OWNER, WORLD, /NAME or =database/element. | OWNER |
| refno | Yes | Explicit primitive /NAME or =database/element reference. | |
| dry_run | No | ||
| position | No | Position in millimetres in the wrt frame. | |
| dimensions | No | One to three finite, nonnegative millimetre values keyed by DIAM, HEIG, XLEN, YLEN, ZLEN, DTOP, DBOT or RADI. DISH uses DIAM/HEIG/RADI; stored RADI is not DIAM/2 or a verified physical knuckle radius. Inspect the native shape and volume. Names normalize to uppercase; duplicates are rejected. Native shape validation decides applicable keys and whether zero is permitted. | |
| orientation | No | Local X and Y axes as unit, orthogonal vectors in the wrt frame; Z is their cross product. | |
| capture_after | No | After a confirmed successful operation, return a native E3D image receipt. | |
| capture_width | No | ||
| capture_height | No | ||
| expected_revision | No | Revision from native inspection/preview. Required for execution; may be omitted for preview. |