To draw a line in AutoCAD, you need to select the Line tool first. When you do this, you'll see the Line command listed on the ribbon. You can also access it by pressing Ctrl+L on your keyboard. Next, select a point on your drawing that is not connected to another point yet and press Enter or Return to start drawing a line from that point. After that, click at another point on your drawing and drag it up or down to create a curve along with your line.
Drawing rays is easy and straightforward in AutoCAD but there are some things that you should remember when drawing them:
The direction of your ray should always be parallel with the X-axis (the horizontal axis)
Select the Construction Line icon from the drop-down menu, as indicated in the figure below: Or. On the command line, type XL and click Enter.
On the command line or at the command prompt, type A and click Enter. Or. On the command line, choose the Ang option.
XLine's angle must be specified (Construction line). For instance, 30.
A construction line is a straight line that connects two points on a graph. A ray is the part of a line that extends from one point to infinity.