e3d_create_element
Creates a child element under an explicit parent with optional dimensions, text, and transform; preview validates compatibility and returns a revision to guard execution against changed inputs.
Instructions
Create a child through the E3D SDK under an explicit parent, with optional dimensions/text and transform. Preview validates type/owner compatibility and inputs without creating anything; it returns a revision when the connected E3D21 bridge supports guarded execution. Pass that revision as expected_revision when executing so a changed parent, frame or request is rejected before creation. Older preview calls remain compatible. Preview does not prove all database constraints. A failed initialization attempts to remove only the new element; inspect cleanup and residual state before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wrt | No | OWNER, WORLD, /NAME or =database/element. | OWNER |
| name | No | ||
| dry_run | No | ||
| position | No | Position in millimetres in the wrt frame. | |
| attributes | No | ||
| orientation | No | Local X and Y axes as unit, orthogonal vectors in the wrt frame; Z is their cross product. | |
| element_type | Yes | ||
| parent_refno | Yes | ||
| capture_after | No | After a confirmed successful operation, return a native E3D image receipt. | |
| capture_width | No | ||
| capture_height | No | ||
| expected_revision | No | Revision returned by a create preview. The E3D21 bridge requires it for guarded execution; omitted previews remain valid. |