Hi,
I am executing Autocad command through API using "Send Command" method through API.
Here I need to get the results of my Command Execution from the Command line.
Is it possible to get the result of Command line or read theCommand line values as we are doing "Sendcommand"/
Thanks in Advance.
Regards,
Appadurai.G
You can't retrieve easily the text from the commandline, one solution is to use the approach described in that blog post, you need to use ARX for that:
Here is another suggestion, also ARX-based, but I'm not sure if this still works:
void GetCmdWinText() { CWnd* pDock = (CEdit*)acedGetAcadTextCmdLine(); CWnd* pChild = pDock->GetWindow(GW_CHILD); int index = 0; while (pChild!=NULL) { CString str; pChild->GetWindowText(str); pChild = pChild->GetNextWindow(); acutPrintf(L"\n****** Window [%d] ****** : %s", ++index, str); } }
Regards,
Philippe.