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?
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.
王磊
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。