Description
Counts empty objects (zero length curves and/or empty TEXT/MTEXT) in the database.
Visual Basic
Public Function CountEmptyObjects( flags As Integer ) As Integer
C#
public int CountEmptyObjects( int flags );
Parameters
| Parameters | Description |
|---|---|
| int flags | The setting of the count mode. It is stored as a bitcode using the combination of the following enum values:ZeroLengthCurve - Count zero length curves (AcDbCurve derived objects such as LINE, POLYLINE, SPLINE, etc.)EmptyText - Count empty TEXT/MTEXT objects (which contain only spaces, tabs, enters and/or new lines)AllEmptyObj - Count all empty objects |
Returns
Number of empty objects in the database
Remarks
RAY and XLINE objects are also derived from AcDbCurve, but they have infinite length by definition. Hence they are not involved in this method.