GstarCAD command

DIMLINEAR command

Create horizontal, vertical and rotated linear dimensions between two points or from selected drawing objects.

Command
DIMLINEAR
Alias
DLI
Tool group
Annotate
Level
Beginner

What does DIMLINEAR do?

DIMLINEAR creates linear dimensions between two specified points or from a selected drawing object. It is primarily used for horizontal and vertical measurements such as lengths, widths, heights and distances between features. The command can also create rotated linear dimensions when the measurement direction needs to follow a specified angle.

How to use the command

  1. Type DIMLINEAR or its shortcut DLI, then press Enter.
  2. Specify the origin of the first extension line.
  3. Specify the origin of the second extension line.
  4. Move the cursor to position the dimension line.
  5. Click to place the dimension at the required location.
  6. Alternatively, press Enter at the first prompt and select an object to dimension it directly.
Command: DLI ↵
Specify first extension line origin or <select object>: 0,0 ↵
Specify second extension line origin: 4000,0 ↵
Specify dimension line location or [Mtext/Text/Angle/Horizontal/Vertical/Rotated]: pick location

Key DIMLINEAR options

The available options control the orientation of the dimension line and the appearance of the dimension text.

Horizontal
Creates a linear dimension that measures the horizontal distance between the extension-line origins.
Vertical
Creates a linear dimension that measures the vertical distance between the extension-line origins.
Rotated
Creates a linear dimension along a specified dimension-line angle instead of using the default horizontal or vertical direction.
Mtext
Opens the multiline text editor so the displayed dimension text can be customised.
Text
Lets you enter replacement or additional dimension text directly from the command line.
Angle
Changes the rotation angle of the dimension text without changing the dimension-line direction.

Practical example: dimension a room width

Suppose a room is 4000 mm wide. Start DIMLINEAR and snap the first extension-line origin to one wall corner. Snap the second origin to the corresponding corner on the opposite wall. Move the cursor outside the room and place the dimension line. GstarCAD measures the horizontal distance and displays the resulting 4000 mm dimension using the current dimension style.

Tip

Use DIMLINEAR when you need the horizontal or vertical component of a distance. If the dimension line should follow the actual angle between two points, use DIMALIGNED instead.

All commands Updated 1 October 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.