[LispFunction("readcb")]
public static object readcb(ResultBuffer rb)
{
Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
string str = Clipboard.GetText();
TypedValue ty = new TypedValue();
if (str != null)
{
ty = new TypedValue((int)LispDataType.Text, str);
}
else
{
ty = new TypedValue((int)LispDataType.Nil);
}
return ty;
}