• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

dcl showing a progression bar

  • Thread starter Thread starter Giuseppe Beatrice
  • Start date Start date

Giuseppe Beatrice

Guest
Hello, everyone.
I would like to know if it is possible to create a dcl that shows the degree of advancement of the execution of a subfunction.
In practice, I wrote a file lisp that accepts incoming a list with the salient data of a series of polylinese of a drawing connected to each other (coordinate extreme points) and compares coordinate pairs, building a list of variables that constitute in practice an orderly list of the various polylines according to the coincidence of the contiguous extremes.
since I have a large number of polylines to compare (sometimes more than 1000), comparison operations can take several seconds (sometimes a few minutes).
while the program goes on, would it be possible, instead of the "turning circle", to display a simple dialog with a progress bar that shows the percentage as a ratio between the number of "draws" to be treated and what hand the function assigns to the final list? (the window may also indicate the total number of branches to be treated and the progressive number of "ordered" branches, as well as the progress bar, as well as the only ok button with which to close it at the end of the treatment)
I hope to have been clear and thank you for your availability.
 
progressbar contains a set of functions that can be used in loops while processing information. the main functions are progressbar, progress, and endprogressbar. there are a few example functions to demonstrate the syntax and method of using progressbar. pb-demo is an example for an information message only. pb-demo1 is an example for a foreach loop. pb-demo2 is an example for a repeat loop. and pb-demo3 is an example for a while loop.
http://web2.airmail.net/terrycad/lisp/progressbar.lsp
http://web2.airmail.net/terrycad/lisp/progressbar.dcl
 
...I would like to know if it is possible to create a dcl that shows the degree of advancement of the execution of a subfunction. ...
in addition to that suggested by lee max :smile: there is a more "agile" way, but you must have the express tools installed. . .
 
a huge thanks to confutatis.
I would also like to explain to me the way offered by express tools, since they are installed.
still thank you! !
 
un esempio...
Code:
(defun c:test ()
(acet-ui-progress-init "living vitamin f" 30000)
(setq and 0)
(repeat 30000
(acet-ui-progress-safe (setq and (1+ i))))
)
(acet-ui-progress-done)
)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top