C++
int acedSSLength( const ads_name sname, Adesk::Int32 * len );
File
acedads.h
Description
Returns the number of entities in the specified selection set.
The result is the number of distinct entities; selection sets never contain duplicate entities, regardless of how the set was chosen.
Warning Because selection sets can contain more than 65,535 entities, the len argument must be a long integer. Be sure to pass a pointer to type long in your application; passing type short (or int on short-integer platforms) leads to disaster.
If acedSSLength() succeeds, it returns RTNORM; otherwise, it returns an error code.
Note Only selection sets with entities from the current drawing's model space and paper space, not nongraphical objects or entities in other block definitions, can be addressed by this function.
Parameters
Parameters | Description |
---|---|
sname | Selection set |
len | Pointer to the number of entries in the selection set |