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

selection filter on xdata for all type of feature

7 REPLIES 7
Reply
Message 1 of 8
dayalanr
1629 Views, 7 Replies

selection filter on xdata for all type of feature

i am trying to create selection set entity xdata(1001, 1000,1000)

features like text,line,lwpolyline,insert....etc.


but its working only on linear features

not working on remaining features

why?

please help me
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: dayalanr

Only the 1001 group (application id) can be used as a filter.

Other XData field are not supported by the selection filtering mechanism.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6313307@discussion.autodesk.com...
i am trying to create selection set entity xdata(1001, 1000,1000)

features like text,line,lwpolyline,insert....etc.


but its working only on linear features

not working on remaining features

why?

please help me
Message 3 of 8
dayalanr
in reply to: dayalanr

Thank u tony


Why its not possible for 1000 and 1002?
Message 4 of 8
Anonymous
in reply to: dayalanr

Because xdata is not supported by selection filtering.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6313742@discussion.autodesk.com...
Thank u tony


Why its not possible for 1000 and 1002?
Message 5 of 8
pymote
in reply to: Anonymous

I need to reopen this discussion.

 

Actually "XData Value filtering" is possible, unfortunately only for some types of Entities.

I build my filter like that:

 

TypedValueList tvl = new TypedValueList();
tvl.Add(new TypedValue((short)DxfCode.XDataStart));
tvl.Add(new TypedValue((short)DxfCode.ExtendedDataAsciiString, xdataValue));

 

My filter works on MTexts, Tables, Polylines and Ellipses

It does NOT WORK for Lines, Arcs and Circles

 

Does anybody know the reason for that?

 

 

 

Message 6 of 8
465340553
in reply to: pymote

I encountered the same problem

 

            TypedValue[] tv = new TypedValue[]
                               {
                                    new TypedValue((int)DxfCode.Operator, "<AND"),
                                    new TypedValue((int)DxfCode.Operator, "<OR"),
                                    new TypedValue((int)DxfCode.Start, "LWPOLYLINE"),
                                    new TypedValue((int)DxfCode.Start, "POLYLINE"),
                                    new TypedValue((int)DxfCode.Operator, "OR>"),
                                    new TypedValue((int)DxfCode.ExtendedDataRegAppName, Utility.AppName),
                                    new TypedValue((int)DxfCode.ExtendedDataAsciiString, "分区边界"),
                                    new TypedValue((int)DxfCode.Operator, "AND>")
                               };

 

My electionFilter work on LWPOLYLINE,

not work on POLYLINE,

Test with autocad 2014 and 2018

Get the same result.

 

 

王磊
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。

EESignature

Message 7 of 8
_gile
in reply to: 465340553

Hi,

With xdata you can only filter with the application name (see this topic).

You can try like this:

TypedValue[] tv = new TypedValue[]
{
    new TypedValue(0, "*POLYLINE"),
    new TypedValue(1001, Utility.AppName)
}


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 8 of 8
465340553
in reply to: _gile

thanks

王磊
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。

EESignature

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