Edit grid
edit_gridEdits the axes of IfcGrids (guid, guids or the set of find_elements class IfcGrid): rename, move, add or remove one axis, set a spacing or append, the same edit on each named grid. Points are grid m [x,y] in the grid's own frame, as create_elements grid names them. New revision, effect report (n_changed, rejected, cloned, carried). A call that succeeds is not a job that's done. Target: guid, guids or a set from find_elements/get_selection, never a filter. Beyond the named: PLAN_REQUIRED, run its plan_id with expect_beyond. A FootPrint sharing the axis curves follows; one with own curves is rebuilt (footprint_rebuilt). A grid congruent with a named one but not named stays as it is, listed in coincident_not_named: name it to edit it too. The report's grid_edit: each grid before and after, read back.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "edit_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | A set id from find_elements or get_selection: writes exactly the elements seen there, nothing that matches later. An element changed since reading is rejected alone; the others are written | |
| edit | No | One operation: rename {tag|ord, new_tag}; move {tag|ord, by} or {tag|ord, from, to}; add {tag, from_tag, by} or {tag, from, to}; remove {tag|ord}; set_spacing {tag|ord, spacing}; append {tag, spacing} | |
| guid | No | One element (GlobalId) | |
| note | No | Your note, stored with the new revision | |
| guids | No | These elements (GlobalIds) | |
| dry_run | No | Preview: the planned effect and a plan_id, nothing written | |
| on_axis | No | move, set_spacing: elements of the grid storey on an old axis (axis line or hull centre, 1 mm; judged at their body points) are named in on_axis and need the plan_id (expect_beyond) that moves them along; stay moves the axes alone | |
| plan_id | No | Execute exactly the plan a dry_run returned, all or nothing; the plan holds target and fields. Plans that clone the same shared object (type, material) run one after the other: plan the second after the first ran, else PLAN_CHANGED | |
| revision | No | With edit.ord: the revision you read the order in | |
| request_id | No | Your id for this call: a repeat answers the first result and writes nothing | |
| expect_count | No | With set: how many elements the set holds - guards against a mixed-up set id | |
| expect_beyond | No | With plan_id: how many elements the plan reaches beyond those named (n_beyond of PLAN_REQUIRED or the dry_run) |