CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 2500 

CAD tip CAD tip # 5891:

Question CAD 
 %  platform  category 
Q - question

How to use a progressbar in LISP functions?

A - answer To inform users about the progress of a lengthy calculation you can use progress bar ("thermometer"). In AutoLISP you can make use of the inbuilt function acet-ui-progress from Express Tools (must be installed).

Example - how to use it:

(acet-ui-progress-init "Working:" 10000); init - interval length

(setq i 0)

(repeat 10000; loop
; user functions performed here....
(setq i (1+ i))
(acet-ui-progress-safe i); update progressbar

(acet-ui-progress-done); dismiss progressbar
100% *  CAD 
6.12.2007    14167×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12546:How to renumber handles of selected DWG entities?
Tip 12210:How to erase a specific object type in all DWG layouts?
Tip 12143:ATrim - dynamic trim/extend by painting.
Tip 11608:Trim to rectangle - cut out a part of a DWG drawing.
Tip 10231:How to draw spiral in AutoCAD LT?

Back   All CAD Tips All CAD tips&tricks

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.

Please use these tips at your own risk.
CAD Studio is not responsible for possible problems that may occur as a result of using any of these tips.