Table of Contents

Interface IDxfProgress

Namespace
CADability.DXF
Assembly
CADability.dll

Receives the progress of a DXF or DWG import, see Import(string, IDxfProgress). The progress runs from 0 to 100 percent in phases: each phase sets the size of its steps with SetStepIncrement(double) and then reports the steps it has done with DoStep(int).

public interface IDxfProgress

Methods

DoStep(int)

Reports that doneSteps more steps of the current phase are done.

void DoStep(int doneSteps = 1)

Parameters

doneSteps int

number of steps done since the last call

SetCompleted()

The import is finished or has failed; a progress display can be hidden.

void SetCompleted()

SetStepIncrement(double)

Starts a new phase at the current position, in which each step advances the progress by increment percent.

void SetStepIncrement(double increment)

Parameters

increment double

percent per step