Add GD&T Frame
add_gtolAdds a GD&T feature control frame to an active drawing, attaching it to a dimension or placing it with an optional leader.
Instructions
Add a GD&T feature control frame to the active drawing, e.g. position Ø0.2 (M) to A|B|C.
Attach it to a drawing dimension (dimension_view + dimension_name; the frame
sits under the dimension's text, the usual place for a hole's position
tolerance), or place it at x_mm/y_mm with an optional leader to the edge at
attach_x_mm/attach_y_mm. Add the datums it refers to with add_datum_tag.
Needs: an open, active drawing. Changes: adds the frame. Returns: data, the
frame as read back from SolidWorks. No edge at the attach point is not_found.
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": "add_gtol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | No | The frame. `characteristic` (position, flatness, perpendicularity, parallelism, profile_surface or concentricity) and `tolerance` are required, plus either the dimension or the sheet position; `diameter_zone`, `material_condition` (none, mmc, lmc) and up to three `datums` (primary first) have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||