Description
Erases empty objects (zero length curves and/or empty TEXT/MTEXT) in the database.
Visual Basic
Public Function EraseEmptyObjects( flags As Integer ) As Integer
C#
public int EraseEmptyObjects( int flags );
Parameters
| Parameters | Description |
|---|---|
| int flags | The setting of the erase mode. It is stored as a bitcode using the combination of the following enum values:ZeroLengthCurve - Erase zero length curves (AcDbCurve derived objects such as LINE, POLYLINE, SPLINE, etc.)EmptyText - Erase empty TEXT/MTEXT objects (which contain only spaces, tabs, enters and/or new lines)AllEmptyObj - Erase all empty objects |
Returns
Number of objects which are (or can be) erased.
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.