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
- Type
RAY, then press Enter. - Specify the starting point of the ray.
- Specify a second point to define the direction in which the ray should extend.
- Continue specifying additional through points if several rays should originate from the same starting point.
- 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.
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.