Quick select Objects with X-data

Quick select Objects with X-data

Anonymous
Not applicable
1,182 Views
3 Replies
Message 1 of 4

Quick select Objects with X-data

Anonymous
Not applicable

Hello,

I have many polylines in my drawing attached with some X-data values. But i need to quickly filter the Polyline objects in which
a) No X-data is associated with that Polyline object (X-data value not attached).
b) Filter objects with some X-data value.

In Qselect command there is no option related to X-data. Is there any option in autocad to isolate these Polylines from a group of objects

0 Likes
1,183 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant

You playing with xdata, but no idea how to select/find objects? Sounds strange to me.

What language/API you are looking for, or just for User interfaces?

 

a) No X-data is associated with that Polyline object (X-data value not attached).

Iterate thru all objects an check for *whateveryouwant*

Has XDATA? Has Xdata from thisXY application? According to the values the wanted? Then put them to a selectionset or do whatever you want.

 

In Lisp, you can use lispfunction SSGET, also as User you can use FILTER command

to find toplevel object with XData of applicationXY, (not for special xdata content).

sample

(sssetfirst nil (setq ss (ssget "_X" '((-4 . "<or")(-3 ("~TEST"))(-4 . "<not")(-3 ("*"))(-4 . "not>")(-4 . "or>")))))

All TopLevel objecs with xdata of TEST application

 

 


b) Filter objects with some X-data value.

    In Qselect command there is no option related to X-data. Is there any option in autocad to isolate these Polylines from a group of objects

 

Iterate thru all objects an check for *whateveryouwant*

Has XDATA? Has Xdata from thisXY application? According to the values the wanted? Then put them to a selectionset or do whatever you want.

 

In Lisp, you can use lispfunction SSGET, also as User you can use FILTER command

to find toplevel object with XData of applicationXY, (not for special xdata content).

sample

(sssetfirst nil (setq ss (ssget "_X" '((-3 ("TEST"))))))

All TopLevel objecs without xdata of TEST application

Sebastian

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi

Thanks for your reply. i will try with your suggestion.

Thanks for your time.

0 Likes
Message 4 of 4

Moshe-A
Mentor
Mentor
0 Likes