Pin, place or give a material to a part
set_partSets what a part is. pinned: fixed to the world, so it does not move; Export Robot takes it as the robot's root link, so pin the base or the chassis and nothing else. A part inside another part - one of an imported assembly - is pinned together with the parts it is in; a part that get_document gives as fixed_to_parent is only held to the part above it, and is not pinned. under: the part it rides on and moves with - a motor, a board or a battery fixed to a chassis goes under the chassis; null frees it. material: what it is made of, for its mass and inertia - a library part has its own; give your printed parts theirs (pla, petg, abs, nylon) and machined ones al6061 or steel. mass_g: the part's mass in grams, as its maker gives it - for a bought part that is not in the library, such as a board or a battery modelled as a block: it then weighs that, whatever its bodies are made of (a library part has its maker's already); null or 0 clears it, and its bodies' volume and material weigh it again. name: a new name.
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": {
"part": "<part>"
},
"name": "set_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| part | Yes | A part by its name in get_document (components). | |
| under | No | The part to ride on, or null for none. | |
| infill | No | A 3D-printed part's infill in percent, 20 for 20 %: its walls, top and bottom weigh as solid, the inside at this (the robot export and mass_properties use it). For a part in pla, petg, abs, nylon or pc. null or 100: solid. | |
| mass_g | No | The part's mass in grams, from its maker; null or 0 clears it. | |
| pinned | No | ||
| material | No | A material: pla, petg, abs, nylon, pc, acrylic, rubber, al6061, al7075, steel, stainless, brass, copper, titanium, plywood, oak, pine or glass. | |
| print_up | No | A printed part's way up: the direction of the design, as it stands, that points up from the bed when the part is printed. Its pins and thin tabs are then checked against the layers (print_check in the answer, get_document's problems). null clears it. |