Repository navigation
Object Distance
Marius Stanciu edited this page Oct 29, 2026
·
1 revision
The Object Distance tool measures the distance between two selected objects. It works in the main window, and in the Gerber, Excellon and Geometry editors on two selected shapes. Use it to find the gap between two objects, or the middle point between them.
- Menu: Edit > Object Distance.
- Keyboard: Shift+M.
- The panel opens in a tab next to Project and Properties. The tab shows the plugin name.
- Select exactly two objects in the Project tree, or two shapes in an editor.
- Press Shift+M to open the tool.
- Keep Type at Nearest points.
- Click Measure.
- Read the DISTANCE box in Results. The Start point and End point boxes show the two points.
- Click Jump to Half Point to move the view to the Half Point.
Screenshot placeholder:
images/Object-Distance-1.png— the Object Distance panel with two objects selected and the Results filled in.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Type (Nearest points / Center points) | Chooses how the two points are found. See the list below. | Nearest points |
Type (combo values):
- Nearest points: The minimum distance between the two objects. The start point is on the first object and the end point is on the second object.
- Center points: The distance between the centers of the two bounding boxes.
Coordinates
| Parameter | Description | Default |
|---|---|---|
| Start point | The coordinates of the first point. Read only. The unit label shows mm (or inch in an inch project). | (0, 0) |
| End point | The coordinates of the second point. Read only. | (0, 0) |
Results
| Parameter | Description | Default |
|---|---|---|
| Dx | The distance over the X axis. Read only. | 0.0 |
| Dy | The distance over the Y axis. Read only. | 0.0 |
| Angle | The angle of the line from the first point to the second point, in degrees from 0 to 360. Read only. | 0.0 |
| DISTANCE | The straight-line distance between the two points. Read only. | 0.0 |
| Half Point | The middle point of the line. Read only. | (0, 0) |
Buttons
| Button | Description | Default |
|---|---|---|
| Measure | Measures the two selected objects, or the two selected shapes in an editor, with the chosen Type. | — |
| Jump to Half Point | Moves the view to the Half Point. Enabled after a measurement. | Disabled |
| Reset Tool | Clears the measurement and the results. | — |
- Selection. The tool needs exactly two objects. If the selection has another count, it shows a warning and does not measure.
- Editors. The Geometry, Gerber and Excellon editors each use the two selected shapes. In the Excellon editor, each drill is treated as a circle.
- Touching or overlapping objects. A distance of 0 means the objects touch or overlap. The Half Point shows (0, 0), and the tool shows the intersection point in a warning.
- Center points. The center is the middle of the bounding box of each object.
- Units. The values are in mm (or inch in an inch project).
- Tcl. There is no Tcl command for this tool.
- Distance — measure any two points on the canvas.
- Object Operations — object actions, including selection.
- Gerber Editor, Excellon Editor, Geometry Editor
- Keyboard Shortcuts
FlatCAM Evo Manual · Source code · Report a problem · MIT license
Start here
- Installation
- Getting Started
- Tutorial: Single-Sided PCB
- Tutorial: Double-Sided PCB
- User Interface
- Keyboard Shortcuts
- Glossary
- FAQ and Troubleshooting
Files and projects
Objects
Editors
PCB operations
- Isolation Routing
- Non-Copper Clearing
- Paint
- Cutout
- Drilling
- Milling
- Follow
- Double-Sided
- Solder Paste
- Film
- Panelize
- Copper Thieving
- Fiducials
- Markers
- Punch Gerber
- Invert Gerber
- Etch Compensation
- Extract
- Rules Check
- QR Code
Utility plugins
- Align Objects
- Calculators
- Distance · Object Distance
- Optimal
- Move · Transform
- Subtract
- Image Import · PDF Import
- PCB Wizard
- Report
- Tcl Shell
Machine control (in development)
Advanced
- Tools Database
- Preprocessors
- Path Optimization
- Tcl Scripting
- Tcl Command Reference
- Developer Guide
- Translating
Preferences