Jump to content


SendStringToExecute error


  • You cannot reply to this topic
No replies to this topic

#1 popojargo

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 23 October 2015 - 11:30 PM

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.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users