Hi every body. I need to create complex selection filter, to do this operation at runtime: "Select all entities on a specific layer, of any type, but POLYLINES and LWPOLYLINES. I've wrote as below, but I get error. Any one can help? I'll apreciate that.
TypedValue[] tvals = new TypedValue[7];
tvals[0] = new TypedValue((int)DxfCode.Operator, "<not");
tvals[1] = new TypedValue((int)DxfCode.Start, "LWPOLYLINE");
tvals[2] = new TypedValue((int)DxfCode.Start, "POLYLINE");
tvals[3] = new TypedValue((int)DxfCode.Operator, "not>");
tvals[4] = new TypedValue((int)DxfCode.Operator, "<and");
tvals[5] = new TypedValue((int)DxfCode.LayerName, "Major_Contour_Line");
tvals[6] = new TypedValue((int)DxfCode.Operator, "and>");
SelectionFilter selfil = new SelectionFilter(tvals);
PromptSelectionResult selres = editor.SelectAll(selfil);