set_anchors
Define named anchors on a FreeCAD object that persist with the document and follow placement moves. Use coord_frame='global' to convert global coordinates to local.
Instructions
Define explicit named anchors on an object.
Stored on the object (persists with the document) and follows Placement
moves. coord_frame="global" converts document coords to local via the
inverse Placement — use it whenever your source coordinates are global.
Args:
anchors: {name: {"pos": [x, y, z], "dir": [x, y, z] | null}}.
replace: Replace all existing anchors instead of merging.
coord_frame: "local" (stored as-is) or "global".
with_screenshot: Attach a screenshot of the result (default: no screenshot).
Returns:
JSON with anchor_count; records a modeling-session step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchors | Yes | ||
| replace | No | ||
| doc_name | Yes | ||
| obj_name | Yes | ||
| coord_frame | No | local | |
| with_screenshot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |