Set relation
set_relationSets or removes one relation of each named object (guid; guids or a set from find_elements: several to the same to, one revision), named by its inverse attribute on the guid side (ContainedInStructure, IsTypedBy, Decomposes, Nests, ReferencedInStructures, ConnectedTo, AssignedToGroups, ProvidesBoundaries; ports, coverings, systems, assignments, structural and process links: get_guide topic relations names every key with both roles). Cardinality comes from the schema: a new ContainedInStructure replaces the old one, and the report names both. ConnectedTo is written only where both touch; two walls become IfcRelConnectsPathElements with the ends measured, never named. New revision, effect report. A call that succeeds is not a job that's done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"relation": "<relation>"
},
"name": "set_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The other end (GlobalId; storeys also by Name); its role per key: get_guide topic relations | |
| 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 | |
| guid | No | The object whose relation changes; for AssignedToGroups also a space or a group; keys from the relations guide take any object, node or type their slot admits | |
| note | No | Your note, stored with the new revision | |
| guids | No | These objects; an executor refusal for one writes none | |
| remove | No | Remove the relation to `to` instead of setting it | |
| dry_run | No | Preview: the planned effect and its checks, nothing written | |
| boundary | No | ProvidesBoundaries: required, stated, never derived; to is the IfcSpace | |
| relation | Yes | Inverse attribute | |
| realizing | No | RealizingElements: the elements that realize the connection (guid relating, to related), required to set, on remove the set to match | |
| 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 | |
| connection_type | No | RealizingElements: its ConnectionType label, as stated |