CadProgress
from OpenCAD2D import CadProgress
class CadProgress(System.Object) ยท CadProgress in the .NET reference
The progress meter of the status bar, as AutoCAD's: OPEN, SAVE and SAVEAS start one, and a command, a plugin or the host starts its own with CadProgress.Start for any long work. The meter last started and not yet stopped is the one shown: one started while another runs, as a plugin's inside SAVE, is shown in its place, and the one under it comes back when it stops.
Constructors
__init__
def __init__(self) -> None
Properties and fields
Depth
@property
def Depth(self) -> int
Gets how many meters are running, the one shown and those under it.
IsBusy
@property
def IsBusy(self) -> bool
Gets whether a meter is running.
Shown
@property
def Shown(self) -> CadProgressMeter | None
Gets the meter shown: the one last started and not yet stopped; null with none running.
Events
Changed
@property
def Changed(self) -> System.EventHandler[System.EventArgs]
@Changed.setter
def Changed(self, value: System.EventHandler[System.EventArgs]) -> None
Raised, on the thread that made the change, when what the status bar shows of the meters changes.
Methods
Start
def Start(self, label: str) -> CadProgressMeter
Starts a meter, shown at once in the place of the one shown before: indeterminate until it is given a limit (CadProgressMeter.SetLimit) or a share (CadProgressMeter.Report). Stop it, or dispose of it, when the work ends; a using block stops it when the work throws.