Anyone know how to return TWO points in this manner?
For example, if the LINE command is running, and I run my transparent command, I would like the transparent command to return the next TWO points for the LINE command.
I tried something like this:
[LispFunction("C:TEST")]
public static ResultBuffer TestCommand(ResultBuffer args)
{
return new ResultBuffer(
new TypedValue((int)LispDataType.Point2d, new Point2d(500,500)),
new TypedValue((int)LispDataType.Point2d, new Point2d(1000,1000))
);
}
I was hoping that I could then start the line command, and type 'TEST at the prompt, and I would get a line drawn from (500,500) to (1000,1000), and I would be left at the prompt for me to pick the next point for the LINE command.
Instead, I start the LINE command and type 'TEST, and it's as if I picked only the point (500,500).
What seems to be happening is that the 'TEST transparent function is returning a list containing two points. Then the LINE command is using the first point in the list, and ignoring the second point.