Filter on Xdata

Filter on Xdata

Anonymous
Not applicable
670 Views
4 Replies
Message 1 of 5

Filter on Xdata

Anonymous
Not applicable
Hi All,

Could anyone suggest me a way to filterout entitties having a particular Xdata value. (1000 entry). My application may have several 1000 entries, I want to filter on one of these entries.

Hoping +ve.

Alan
0 Likes
671 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Here is a C++ sample using the App Name (1001) but I don't see why it wouldn't work with 1000.

struct resbuf rbFilter;
struct resbuf rbAppName;

rbFilter.restype = -3; // Extended data
rbFilter.rbnext = &rbAppName;
rbAppName.restype = 1001;
char achAppName[9] = "APP_NAME";
rbAppName.resval.rstring = achAppName;
rbAppName.rbnext = NULL;

// Create Selection Set
ads_name ssEntities;
acedSSGet("X", NULL, NULL, &rbFilter, ssEntities);

I hope this helps
Jim
0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks for UR message,

But as I don't know C/C++. I awanted a routine in VBA or in LISP. Filter on Application name is also possible with VBA and LISP but using 1000 code is not known to me.

Thanks again
0 Likes
Message 4 of 5

Anonymous
Not applicable
see filtering for exxtended data in autolisp help. it is easy! "alankar" wrote in message news:[email protected]... > Hi All, > > Could anyone suggest me a way to filterout entitties having a particular Xdata value. (1000 entry). My application may have several 1000 entries, I want to filter on one of these entries. > > Hoping +ve. > > Alan
0 Likes
Message 5 of 5

Anonymous
Not applicable
XData codes, except 1001 (AppID), are not maintained thus not filterable. The only way to get specific entity is to filter on AppID and then loop through resulting SelSet to find the matching one. Regards, Maksim Sestic "alankar" wrote in message news:[email protected]... > Thanks for UR message, > > But as I don't know C/C++. I awanted a routine in VBA or in LISP. Filter on Application name is also possible with VBA and LISP but using 1000 code is not known to me. > > Thanks again
0 Likes