GstarCAD command

RAY command

Create a construction line that starts at a specified point and extends infinitely in one direction.

Command
RAY
Alias
—
Tool group
Draw
Level
Beginner

What does RAY do?

RAY creates a construction line that begins at a specified point and extends infinitely in one direction. It is useful as reference geometry for projection, alignment and layout work where a guide needs a fixed starting position but no defined endpoint. Unlike XLINE, which extends infinitely in both directions, a ray continues only from its start point towards the direction you specify.

How to use the command

  1. Type RAY, then press Enter.
  2. Specify the starting point of the ray.
  3. Specify a second point to define the direction in which the ray should extend.
  4. Continue specifying additional through points if several rays should originate from the same starting point.
  5. Press Enter to finish the command.
Command: RAY ↵
Specify start point: pick start point
Specify through point: pick direction point
Specify through point: Enter

Key RAY behaviour

RAY has a simple workflow focused on defining a fixed starting point and one or more construction directions.

Start point
Defines the fixed origin of the construction ray. The ray does not extend behind this point.
Through point
Defines the direction in which the ray extends infinitely from its starting point.
Multiple rays
Additional through points can be specified to create several rays that share the same starting point.
Infinite length
The ray has no endpoint in its forward direction, making it useful as permanent or temporary reference geometry.

Practical example: project geometry from a fixed point

Suppose you need several construction guides radiating from the corner of a mechanical component. Start RAY and snap the start point to the required corner. Specify a point along the first projection direction, then choose additional through points for the other required directions. GstarCAD creates several rays sharing the same origin, giving you accurate construction references without drawing temporary lines to arbitrary lengths.

Tip

Use RAY when the construction geometry needs a fixed origin and should extend in only one direction. Use XLINE when the reference needs to extend infinitely on both sides of a point.

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.