#1
|
|||
|
|||
progression bar
Evening,
Do you know if it's possible to add a script into another one to show a progression bar ? |
#2
|
||||
|
||||
Re: progression bar
It might help to provide some more information. Are you talking about LISP code for Modeling or Macro code for Drafting? For what type of process do you want to display a progress bar? Do you have any sample code that you can post or attach?
__________________
John Scheffel |
#3
|
|||
|
|||
Re: progression bar
Ok I'll try to give you more informations sorry to haven't give enough details.
I wrote a lisp code (thanks for help) : http://cocreateusers.org/forum/showthread.php?t=7190 And this could take several minutes. So, instead of waiting in front of the screen, I would like to know if I could take a coffee ;-) I guess a progression bar could be useful : Perhaps a simple message could be showned instead of the bar and it's says : "Operations will take x minutes..." because I know approx. times according to operations. Hope this help. thanks again |
#4
|
||||
|
||||
Re: progression bar
The easiest way is to use the console window.
at beginning or your long lasting operation: Code:
(sd-show-console-window) Code:
(format T "~%~4D % of operation done, estimated time to finish : ~A sec." (round (* (/ x all-x) 100)) est-time-left)
__________________
Last edited by Wolfgang; 04-14-2009 at 09:56 AM. Reason: screen shot added + typo fixed (see Claus's posting) |
#5
|
|||
|
|||
Re: progression bar
thanks for this tip. Unfortunately I can't use this (due to my lacks about lips), this error appears :
where C is the counter of my loop and NB the total of loop |
#6
|
||||
|
||||
Re: progression bar
There was a typo in Wolfgang's code example:
Code:
(round ((/ x all-x) * 100)) Code:
(round (* 100 (/ x all-x)))
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#7
|
|||
|
|||
Re: progression bar
that's true, just a question "est-time-left" is a variable to define or this is a function used into lisp basics ?
|
#8
|
||||
|
||||
Re: progression bar
It's a variable.
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#9
|
|||
|
|||
Re: progression bar
thnaks, any idea to calculate time between 2 operations ?
|
#10
|
||||
|
||||
Re: progression bar
See http://l1sp.org/cl/get-universal-time. Code samples: http://www.clausbrod.de/OneSpaceModeling/MacroListDirectory , http://www.clausbrod.de/OneSpaceModeling/MacroAlarmClock .
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#11
|
|||
|
|||
Re: progression bar
wonderful, just to bore you, do you know how to stay at the same line in the console-window ? I know ~% allows to go back to the next line but I don't know the opposite even if I look for on the net.
|
#12
|
||||
|
||||
Re: progression bar
Code:
(format t "Watch this:~%") (dotimes (i 5) (sleep 1) (format t "~A~A" i #\Return))
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|