C++
ACDBCORE2D_PORT int acdbXdRoom( const ads_name ent, Adesk::Int32 * result );
File
acdbads.h
Description
Returns the amount of extended data space that is available for an entity.
The result depends on the amount of extended data already allocated to the entity by prior calls to acdbEntMod() or acdbEntMake() (possibly from applications other than the current one).
Because there is a limit (currently, 16 kilobytes) on the amount of extended data that can be assigned to an entity, and because multiple applications can append extended data to the same entity, this function is provided so that an application can verify that there is room to append the extended data. It can be called in conjunction with acdbXdSize(), which returns the size of an extended data list.
If it succeeds, acdbXdRoom() returns RTNORM; it returns RTERROR if ent is not a valid entity name. When acdbXdRoom() fails, it sets the system variable ERRNO to a value that indicates the reason for the failure.
Parameters
Parameters | Description |
---|---|
ent | Entity |
Returns
Number of bytes of extended entity data that can still be appended to the entity