.NET

.NET

Reply
*PeterG
Message 1 of 4 (289 Views)

SelectionFilter on Blockreference XData

289 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 (289 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 (289 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 (101 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.