Share

AcDbDatabase::countHardReferences

C++

Acad::ErrorStatus countHardReferences(
    const AcDbObjectIdArray& ids, 
    Adesk::UInt32* pCount
);

Description

This function traverses the database looking for objects with a hard reference to any of the objects whose objectId entities are in the ids array. Each time such a hard reference is found, the count will be incremented by 1 within the element of pCount that corresponds to the ids element of the objectId that is being hard referenced. For example, if a hard reference is found to the objectId in ids[2], then pCount[2] will be incremented by 1.

It is the caller's responsibility to make sure the elements of pCount are zero (or whatever other value is desired). This function will simply increment whatever value is there. It is also the caller's responsibility to be sure that the ids and pCount arrays are the same size.

Returns Acad::eOk if successful.

Parameters

Parameters Description
ids Input array of objectId entities of objects to find the count of hard references to those objects
pCount Input array of the same size as ids that will be filled in with the counts for each corresponding element in ids

Links

AcDbDatabase Class

Was this information helpful?