.NET

Reply
*PeterG
Message 1 of 4 (282 Views)

SelectionFilter on Blockreference XData

282 Views, 3 Replies
04-12-2007 06:16 AM
Hi.

I'm trying to use a SelectionFilter on BlockReference XData value.
But I get no hits, it works fine with Lines and Polylines that has the same
kind of XData.

Is it a bug or do I have to define my SelectionFilter differently when
working with BlockReference?

Here is a part of the code :

TypedValue[] flt = new TypedValue[]
{
new TypedValue(-4, " new TypedValue(-4, " new TypedValue(8, "POLYLINE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "166448"),
new TypedValue(-4, "AND>"),
new TypedValue(-4, " new TypedValue(8, "BLOCKREFERENCE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "500077"),
new TypedValue(-4, "AND>"),
new TypedValue(-4, "OR>")
};

Best regards
Peter
*Tony Tanzillo
Message 2 of 4 (282 Views)

Re: SelectionFilter on Blockreference XData

04-12-2007 09:58 AM in reply to: *PeterG
Hi. The only XData group you can filter on
is the 1001 (appid).

You can filter on your appid, and then manually
locate what you need in the resulting selection.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"PeterG" wrote in message news:5549683@discussion.autodesk.com...
Hi.

I'm trying to use a SelectionFilter on BlockReference XData value.
But I get no hits, it works fine with Lines and Polylines that has the same
kind of XData.

Is it a bug or do I have to define my SelectionFilter differently when
working with BlockReference?

Here is a part of the code :

TypedValue[] flt = new TypedValue[]
{
new TypedValue(-4, " new TypedValue(-4, " new TypedValue(8, "POLYLINE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "166448"),
new TypedValue(-4, "AND>"),
new TypedValue(-4, " new TypedValue(8, "BLOCKREFERENCE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "500077"),
new TypedValue(-4, "AND>"),
new TypedValue(-4, "OR>")
};

Best regards
Peter
*PeterG
Message 3 of 4 (282 Views)

Re: SelectionFilter on Blockreference XData

04-17-2007 02:18 AM in reply to: *PeterG
Thanks Tony.

But why is that?
It works fine with Lines and Polylines.
Is it a bug or is it just the way it is?

"Tony Tanzillo" wrote in message
news:5550054@discussion.autodesk.com...
Hi. The only XData group you can filter on
is the 1001 (appid).

You can filter on your appid, and then manually
locate what you need in the resulting selection.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"PeterG" wrote in message
news:5549683@discussion.autodesk.com...
Hi.

I'm trying to use a SelectionFilter on BlockReference XData value.
But I get no hits, it works fine with Lines and Polylines that has the same
kind of XData.

Is it a bug or do I have to define my SelectionFilter differently when
working with BlockReference?

Here is a part of the code :

TypedValue[] flt = new TypedValue[]
{
new TypedValue(-4, " new TypedValue(-4, " new TypedValue(8, "POLYLINE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "166448"),
new TypedValue(-4, "AND>"),
new TypedValue(-4, " new TypedValue(8, "BLOCKREFERENCE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "500077"),
new TypedValue(-4, "AND>"),
new TypedValue(-4, "OR>")
};

Best regards
Peter
Member
mapaquin
Posts: 4
Registered: ‎01-27-2013
Message 4 of 4 (94 Views)

Re: SelectionFilter on Blockreference XData

01-27-2013 09:40 AM in reply to: *PeterG

I am having exactly the same issue.  I too am curious to as why this is not possible specifically with block references and works with any other type of entity?

 

Marc

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.