Inquiry Commands
About 1 min
Inquiry Commands
Inquiry commands are used to measure distances, angles, and retrieve drawing information.
DIST - Measure Distance
Measures the distance between two points.
Command Name: DIST
Alias: DI
Usage
Command: DIST
Distance measurement
Specify first point: <Click or enter coordinates>
Specify second point: <Click or enter coordinates>
X: xxx , Y: xxx
Distance: xxxOutput Information
| Information | Description |
|---|---|
| X | Distance component in X direction |
| Y | Distance component in Y direction |
| Distance | Straight-line distance between two points |
Example
DIST
0,0
100,100ID - Query Point Coordinates
Queries the coordinate values of a specified point.
Command Name: ID
Usage
Command: ID
Specify location: <Click or snap to point>
WCS: xxx , xxx
UCS: xxx , xxxOutput Information
| Information | Description |
|---|---|
| WCS | World Coordinate System coordinates |
| UCS | User Coordinate System coordinates |
Use Cases
- Query object endpoint coordinates
- Confirm precise locations
- Use in conjunction with object snapping
ENTITYSTATS - Entity Statistics
Counts the number of each type of entity in the current drawing.
Command Name: ENTITYSTATS
Usage
Command: ENTITYSTATSOutput Example
Displays a count of each entity type.
GRAPHICSINFO - Drawing Information
Displays detailed information about the current drawing.
Command Name: GRAPHICSINFO
Usage
Command: GRAPHICSINFOOutput Content
- File information
- Drawing units
- Drawing extents
- Display performance statistics
BOUNDINGBOX - Bounding Box
Calculates the bounding box (minimum enclosing rectangle) of selected objects.
Command Name: BOUNDINGBOX
Usage
Command: BOUNDINGBOX
Select objects: <Select one or more objects>Inquiry Tips
Using Object Snapping
Inquiry commands combined with object snapping allow precise measurement:
DIST
<Snap to endpoint>
<Snap to endpoint>Script Example
; Measure the diagonal of a rectangle
LINE
0,0
200,0
200,150
0,150
C
; Measure diagonal distance
DIST
0,0
200,150
; Query corner coordinates
ID
0,0
; Count entities
ENTITYSTATSNext Steps
- View Commands - View control
- System Commands - File operations
- Command Reference - View all commands