.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SelectionFilter on Blockreference XData

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
592 Views, 3 Replies

SelectionFilter on Blockreference XData

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
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

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
Message 3 of 4
Anonymous
in reply to: Anonymous

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
Message 4 of 4
mapaquin
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost