Drawing Commands
Drawing Commands
Drawing commands are used to create various geometric shape entities and are the fundamental operations of CAD drafting.
LINE - Line
Draw line segments, supporting continuous drawing of multiple end-to-end connected lines.
Command Name: LINE
Alias: L
Usage
Command: LINE
Specify point 1: <click or enter coordinates>
Specify point 2 [Undo(U)]: <click or enter coordinates>
Specify point 3 [Close(C)/Undo(U)]: <click, enter coordinates, or press Enter to finish>Options
| Option | Description |
|---|---|
U | Undo last line segment |
C | Close to start point (available from point 3 onwards) |
Coordinate Input Formats
- Absolute coordinates:
100,200- Specifies the point at X=100, Y=200 - Relative coordinates:
@50,30- Offset X=50, Y=30 relative to the last point - Polar coordinates:
@100<45- Relative to last point, distance 100, angle 45 degrees
Example
LINE
0,0
100,0
50,86.6
CCIRCLE - Circle
Draw a circle by specifying center and radius (or diameter).
Command Name: CIRCLE
Alias: C
Usage
Command: CIRCLE
Specify center: <click or enter coordinates>
Specify second point [Diameter(D)] <last radius>: <click to specify radius point or enter radius value>Options
| Option | Description |
|---|---|
D | Enter diameter instead of radius |
Instructions
- Specify the center point
- Specify the second point to determine the radius, or enter a radius value directly
- Press Enter to use the last radius value
Example
CIRCLE
100,100
50ARC - Arc
Draw an arc, supporting both three-point arc and center-start-end methods.
Command Name: ARC
Alias: A
Usage
Three-point arc (default):
Command: ARC
Specify point 1 [Center(C)]: <click or enter coordinates>
Specify point 2: <click or enter coordinates>
Specify point 3: <click or enter coordinates>Center mode:
Command: ARC
Specify point 1 [Center(C)]: C
Specify center: <click or enter center coordinates>
Specify arc start point: <click or enter start point coordinates>
Specify arc end point: <click or enter end point coordinates>Options
| Option | Description |
|---|---|
C | Switch to center mode |
Drawing Methods
- Three-point arc: Specify start point → through point → end point
- Center mode: Specify center → start point → end point
PLINE - Polyline
Draw a continuous polyline composed of line segments.
Command Name: PLINE
Alias: PL
Usage
Command: PLINE
Specify point 1: <click or enter coordinates>
Specify point 2 [Undo(U)]: <click or enter coordinates>
Specify point 3 [Close(C)/Undo(U)]: <click, enter coordinates, or press Enter to finish>Options
| Option | Description |
|---|---|
U | Undo last segment |
C | Close polyline (available from point 3 onwards) |
Example
PLINE
0,0
100,0
100,50
0,50
CELLIPSE - Ellipse
Draw an ellipse by specifying center point and two axis endpoints.
Command Name: ELLIPSE
Alias: EL
Usage
Command: ELLIPSE
Specify center: <click or enter coordinates>
Specify point 2: <click to specify major axis endpoint>
Specify point 3: <click to specify minor axis endpoint>Instructions
- Specify the ellipse center point
- Specify one endpoint of the major axis (determines major axis direction and length)
- Specify the minor axis endpoint (determines minor axis length)
Example
ELLIPSE
100,100
200,100
100,150POLYGON - Regular Polygon
Draw a regular polygon.
Command Name: POLYGON
Alias: POL
Usage
Command: POLYGON
Enter number of sides <4>: <enter number of sides>
Specify center of polygon: <click or enter coordinates>
Specify radius of circle: <enter radius>RECTANG - Rectangle
Draw a rectangle by specifying two diagonal corners.
Command Name: RECTANG
Alias: REC
Usage
Command: RECTANG
Specify first corner of rectangle: <click or enter coordinates>
Specify second corner of rectangle: <click or enter opposite corner coordinates>Instructions
Specify two diagonal corner points of the rectangle, and the system automatically creates a closed rectangular polyline.
Example
RECTANG
0,0
100,50SPLINE - Spline
Draw a smooth spline curve.
Command Name: SPLINE
Alias: SPL
Usage
Command: SPLINE
Specify first point: <click or enter coordinates>
Specify next point: <click or enter coordinates>
Specify next point or <Done>: <continue or press Enter to finish>DONUT - Donut
Draw a solid donut or circle.
Command Name: DONUT
Alias: DO
Usage
Command: DONUT
Current dimensions: Inner = 0, Outer = 1
Enter inner dimension <0>: <enter inner radius>
Enter outer dimension <1>: <enter outer radius>
Specify insertion point: <click or enter coordinates>Instructions
- When inner dimension is 0, a solid circle is drawn
- You can continuously specify multiple insertion points to place multiple donuts
Example
DONUT
0
50
100,100RAY - Ray
Draw a one-directional infinite ray from a specified point.
Command Name: RAY
Usage
Command: RAY
Specify base point: <click or enter coordinates>
Specify direction: <click to specify direction point>Instructions
You can continuously specify multiple direction points to create multiple rays from the same base point.
XLINE - Construction Line
Draw a bidirectional infinite construction line.
Command Name: XLINE
Alias: XL
Usage
Command: XLINE
Specify base point: <click or enter coordinates>
Specify direction [Undo(U)]: <click to specify direction point>Options
| Option | Description |
|---|---|
U | Undo last construction line |
Instructions
You can continuously specify multiple direction points to create multiple construction lines from the same base point.
DLINE - Double Line
Draw parallel double lines.
Command Name: DLINE
Alias: DL
Usage
Command: DLINE
Double line drawing, current width = 10
Specify point 1 [Width(W)]: <click or enter coordinates>
Specify point 2 [Undo(U)]: <click or enter coordinates>
Specify point 3 or [Butt(B)/Square(S)/Round(R)/Undo(U)]: <click or select option>
Specify point 4 or [Butt(B)/Square(S)/Round(R)/Close(C)/Undo(U)]: <click or select option>Options
| Option | Description |
|---|---|
W | Set double line width (available at point 1) |
B | Butt end join |
S | Square end cap |
R | Round end cap |
C | Close double line (available from point 4 onwards) |
U | Undo last segment |
SOLID - Solid Fill
Draw a triangular or quadrilateral solid fill region.
Command Name: SOLID
Alias: SO
Usage
Command: SOLID
Specify first point: <click>
Specify second point: <click>
Specify third point: <click>
Specify fourth point or <Exit>: <click or press Enter>DOT - Point
Draw a point marker.
Command Name: DOT
Usage
Command: DOT
Specify point: <click or enter coordinates>BOX - Rectangular Box
Quickly draw a rectangular box.
Command Name: BOX
Usage
Command: BOX
Specify first corner: <click or enter coordinates>
Specify opposite corner: <click or enter coordinates>PARALLELOGRAM - Parallelogram
Draw a parallelogram.
Command Name: PARALLELOGRAM
Usage
Command: PARALLELOGRAM
Specify first point: <click or enter coordinates>
Specify second point: <click or enter coordinates>
Specify third point: <click or enter coordinates>Script Examples
The following are examples of batch drawing using scripts:
; Draw a simple rectangle
LINE
0,0
500,0
500,400
0,400
C
; Draw a circle
CIRCLE
250,200
100
; Draw a polyline
PLINE
100,100
200,100
200,200
100,200
CNext Steps
- Edit Commands - Learn how to modify graphics
- Command Reference - View all commands
- Script Execution - Batch execute commands