Creates a ray and adds it to the drawing.
objectVariable = object.AddRay(Point1, Point2)
objectVariable is a Ray object;
object is one of the ModelSpace or PaperSpace collection objects or a Block object;
Point1 is a Point object representing the starting point of the ray;
Point2 is a Point object representing the second point of the ray.
AddRay method example