Share

Database.ApproxNumObjects Property

Description

Returns a value that is at least as large as the number of objects in the database.

The purpose of this function is to provide a way to determine how large an ObjectIdCollection will be required in order to hold all the objects in the database. Thus the array can be created with the proper initial size instead of growing the array as the objects are appended. For large arrays, this can result in a very noticeable performance gain and greatly reduce memory fragmentation.

Visual Basic

Public Property ApproxNumObjects() As Integer

C#

public int ApproxNumObjects;

Conditions

Read-only

Links

Database Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?