ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wait for a command , Acad sometimes show a rotate line in command line

4 REPLIES 4
Reply
Message 1 of 5
zero111
342 Views, 4 Replies

Wait for a command , Acad sometimes show a rotate line in command line

I want get the APII for rotating a short line in command line

4 REPLIES 4
Message 2 of 5
cadproman
in reply to: zero111

Message 3 of 5
zero111
in reply to: zero111

not StatusBarProgress, it shows in command line like rotating a short line.

Message 4 of 5
Patch61
in reply to: zero111

I believe this is done by continually overwriting the prompt line with the ascii characters - \ | /  (hyphen, backslash, bar, front slash, then repeat).

 

I don't think there is a way to do this through the api.

 

Every so often, your program will need to send a backspace character and the next ascii character (given above) to the command prompt. This will make it look like a spinning line.

 

The backspace character will erase the previous character, then the next character is shown. Then a slight pause, then another backspace and the next character.

 

Let us know how it works out.

 

-Patch

 

 

(edited for spelling)

Message 5 of 5
David_Robison
in reply to: zero111

If you do a (princ "\r"), it will overwrite the current line of text, rather than making a new line.

 

Using that and manually incrementing the line you are rotating, you can get a spinner at the command line.

 

You migth need to throw another (princ) in to get the command line to update. In Lisp, it looks something like this:

 

(princ (strcat "\rMessage" spinner))

(princ)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost