SendStringToExecute error
popojargo 23 Oct 2015
Hello everyone,
I am currently facing errors while using the method SendStringToExecute from the Document Object.
Here is the Command that I am tryin to run : VIEWPORT_SINGLE
When I try to run it directly into my code, It gives me an error :
Code (dm is the DocumentManager)
dm.MdiActiveDocument.SendStringToExecute("VIEWPORT_SINGLE ", true, false, true);
Output :
Command: VIEWPORT_SINGLE
Enter viewport option [Save/Restore/Delete/1/2/3/4/Object/Polygonal/REctangular/Fit/ON(off)/Lock(unlock)/Clip/]<1> 1
Invalid Keyword or Command. Enter (') for command or (?) for math expression : 1
I tryed many others command and they are not working. What am I doing wrong?
Thank you!
SOLUTION :
Since this call is async, It was causing error.
I changed it so my programme wait to the CommandEndedEvent.
Edited by popojargo, 26 October 2015 - 01:12 AM.
I am currently facing errors while using the method SendStringToExecute from the Document Object.
Here is the Command that I am tryin to run : VIEWPORT_SINGLE
When I try to run it directly into my code, It gives me an error :
Code (dm is the DocumentManager)
dm.MdiActiveDocument.SendStringToExecute("VIEWPORT_SINGLE ", true, false, true);
Output :
Command: VIEWPORT_SINGLE
Enter viewport option [Save/Restore/Delete/1/2/3/4/Object/Polygonal/REctangular/Fit/ON(off)/Lock(unlock)/Clip/]<1> 1
Invalid Keyword or Command. Enter (') for command or (?) for math expression : 1
I tryed many others command and they are not working. What am I doing wrong?
Thank you!
SOLUTION :
Since this call is async, It was causing error.
I changed it so my programme wait to the CommandEndedEvent.
Edited by popojargo, 26 October 2015 - 01:12 AM.