add_layout_scale_bar
Add a scale bar to an ArcGIS Pro layout's map frame to show map scale for printing or exporting.
Instructions
Add a scale bar tied to a layout's map frame.
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": {
"layout_name": "<layout_name>"
},
"name": "add_layout_scale_bar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in page units. | |
| y | No | Y position in page units. | |
| name | No | Element name. | |
| width | No | Width in page units. | |
| height | No | Height in page units. | |
| style_item | No | Scale bar style item name. | |
| layout_name | Yes | Layout name. | |
| map_frame_name | No | Map frame to measure. | Map Frame |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |