|
DXFReader Control - WriteStatus Event
Kadmos DXFReader ActiveX Control

DXFReader Control
WriteStatus Event
|
Description
|
Fired while a DXF file is being written.
|
|
Syntax
|
Private Sub DXFReader_WriteStatus(TotalEntities As Long, ProcessedEntities As Long)
|
|
Remarks
|
The WriteStatus event is fired while a DXF file is being written invoking the WriteDXF and WriteDXFBlock methods. This event lets you know how close to completion the operation is and may be used to display a progress bar or other status indicator.
The following code, inserted in the WriteStatus event, will show a progress bar during write:
If ProcessedEntities = 0 Then ProgressBar1.Visible = True ProgressBar1.Value = 0 ProgressBar1.Min = 0 ProgressBar1.Max = TotalEntities End If
ProgressBar1.Value = ProcessedEntities
If ProcessedEntities = TotalEntities Then ProgressBar1.Visible = False End If
The parameters for the WriteStatus event are described below:
| TotalEntities | A long integer that specifies the total number of entities of the drawing. | | ProcessedEntities | A long integer that specifies the number of the entity written. |
|
Copyright © 2008/2011 Kadmos.com - All rights reserved. Privacy Policy
|