C++
ACDBCORE2D_PORT int acdbXdSize( const resbuf * rb, Adesk::Int32 * result );
File
acdbads.h
Description
Returns the size that a list occupies when it is linked to an entity as extended data.
Because there is a limit (currently, 16 Kb) on the amount of extended data that can be assigned to an entity, and because multiple applications may append extended data to the same entity, this function is provided so that an application can verify that there is room for the extended data. It can be called with acdbXdRoom(), which returns the amount of extended data space still available to an entity.
The acdbXdSize() function can be slow, so it is best to call it (with acdbXdRoom()) after a call to acdbEntMod() or acdbEntMake() fails, to verify that memory constraints were the reason for the failure.
If it succeeds, acdbXdSize() returns RTNORM; it returns RTERROR if rb is not a correctly formed extended data list.
Parameters
Parameters | Description |
---|---|
rb | Extended data list |
Returns
Number of bytes of extended entity data that the list would occupy in memory