I have a very simple command and all I doing on that is, Set the UCS to World and get a point from the drawing. Problem I am having is, by running this command when I get prompted for pick pnt, I see in the message saying "Invalid Point" and also SendStringToExecute has no effect. I am attaching a image to show exactly what it is.
If I am just sending "_.ucs W " it seems to be working fine. If cant believe something this simple cause this much pain unless I am doing something wrong some where.
Thanks in advance
Tik.
[CommandMethod("SendCommandExample")]
public void SendCommandExample()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
string strSend = "_.ucs W ";
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(strSend,true,false,true);
//Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt();
Point3d pnt = new Point3d();
PromptPointResult pPntResult;
PromptPointOptions ptOpts = new PromptPointOptions("\nPick Pnt :");
pPntResult = Application.DocumentManager.MdiActiveDocument.Editor.GetPoint(ptOpts);
if (pPntResult.Status != PromptStatus.OK)
{
}
pnt = pPntResult.Value;
}