GstarCAD command

LINE command

Draw precise straight line segments between specified points using coordinates, object snaps or direct point selection.

Command
LINE
Alias
L
Tool group
Draw
Level
Beginner

What does LINE do?

LINE creates straight line segments between specified points. You can draw a single line or continue specifying points to create a sequence of connected segments. Each segment remains a separate line object, so it can be selected, moved, trimmed or otherwise edited independently from the neighbouring segments.

How to use the command

  1. Type LINE or its shortcut L, then press Enter.
  2. Specify the first point by clicking in the drawing or entering coordinates.
  3. Specify the endpoint of the first line segment.
  4. Continue specifying additional points if more connected segments are required.
  5. Use Undo to remove the most recently created segment or Close to connect the last point back to the first point.
  6. Press Enter to finish the command.
Command: L ↵
Specify first point: 0,0 ↵
Specify next point or [Undo]: 4000,0 ↵
Specify next point or [Undo]: 4000,3000 ↵
Specify next point or [Close/Undo]: 0,3000 ↵
Specify next point or [Close/Undo]: C ↵

Key LINE options

The command provides simple controls for creating, correcting and closing a sequence of straight line segments.

First point
Defines the starting position of the first line segment using a picked point, object snap or coordinate value.
Next point
Defines the endpoint of the current segment and becomes the starting point for the next segment.
Undo
Removes the most recently created line segment without ending the current LINE command.
Close
Creates a final line segment from the current endpoint back to the first point and then finishes the command.

Practical example: draw a rectangular room outline

Suppose a room measures 4000 mm by 3000 mm. Start LINE and enter 0,0 as the first point. Enter 4000,0, followed by 4000,3000 and 0,3000. Choose Close to connect the final point back to the starting point. GstarCAD creates four individual line objects forming the rectangular room outline.

Tip

Press Enter at the first-point prompt to continue from the endpoint of the previously created line or arc. Use PLINE instead when all connected segments should behave as one polyline object.

All commands Updated 29 September 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.