It Was in PromptPointOptions
See code example below:
// Set promptOptions
var pointOptions = new PromptPointOptions("\nSelect Next Point: ");
pointOptions.SetMessageAndKeywords("\nSelect Next Point: or Exit [Y]","Yes");
pointOptions.AppendKeywordsToMessage = true;
pointOptions.AllowArbitraryInput = true;
pointOptions.UseBasePoint = true;
pointOptions.BasePoint = drawnLine.EndPoint;
// While user wants to draw the polyline
while (pointResult.Status != PromptStatus.Keyword)
{
// Get point
pointResult = Editor.GetPoint(pointOptions);
// stop creating polyline
if (pointResult.Status == PromptStatus.Cancel)
break;
if (count == 1) {
// Get base point and add to the modelspace
drawnLine.AddVertexAt(count, pointResult.Value.Convert2d(new Plane()), 0, 0, 0);
blockTableRecord.AppendEntity(drawnLine);
transaction.AddNewlyCreatedDBObject(drawnLine, true);
} else
// Grow the polyline
stretch(drawnLine, pointResult.Value, Point3d.Origin);
// Regen
editor.Regen();
count++;
}
what you were looking for was PromptPointOptions.SetMessageAndKeywords
and by changing your loop eval you will come out when the user selects yes and you can set that up for a spacebar press.
Hope this helps :)