Measure part or Part Studio
get_part_propertiesMeasure a part’s bounding box, volume, surface area, mass, and centroid in the configured length unit to verify dimensions and orientation after modeling.
Instructions
Measure geometry: the axis-aligned bounding box (min/max/size) plus volume, surface area, mass and centroid per part, in the configured length unit. Use it to verify dimensions and orientation after modeling. Mass is only meaningful if the part has a material assigned in Onshape.
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": {
"document_id": "<document_id>",
"element_id": "<element_id>"
},
"name": "get_part_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tight | No | Use Onshape's TIGHT bounding box (default). The quick REST box can be too large on swept surfaces such as threads (0.5 mm per side on an M10 nut); false returns that quick box. | |
| part_id | No | Measure only this part (from list_parts). | |
| element_id | Yes | Element (tab) ID: the string after /e/ in the Onshape URL. Get it from get_document. | |
| document_id | Yes | Onshape document ID: the 24-character hex string after /documents/ in the document URL. Get it from list_documents. | |
| workspace_id | No | Workspace ID (the string after /w/ in the URL). Optional - defaults to the document's main workspace. | |
| configuration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||