Code Red > .NET
SelectionFilter based on Circle's center coordinate
(1/1)
ThisisforAiur:
Hi,
Is there a way to implement a selectionfilter based on the circle's center coordinate with C# like one of the criteria in FILTER command?
Let say I want to select the circles with the center X>=0 and Y>=0 and Z=0.
With the following code it can create a filter to select the circles with radius >=10.0.
But I can not find a way to implement the filter based on circle's center coordinate.
Is that possible to do so?
TypedValue[] Arr = new TypedValue[]
{
new TypedValue((int)DxfCode.Start, "CIRCLE"),
new TypedValue((int)DxfCode.Operator, ">="),
new TypedValue((int)DxfCode.Real, 10.0),
}
Thanks!
gile:
Hi,
try like this:
--- Code - C#: ---var typedValues = new[]{ new TypedValue(0, "CIRCLE"), new TypedValue(-4, ">=,>=,="), new TypedValue(10, new Point3d(0.0, 0.0, 0.0))};
The AutoLISP documentation is the most exhaustive one about selection filters. You can read this section and its related topics.
ThisisforAiur:
Hi Gile.
Thanks a lot!
Kind of surprised that the operator parameter can take multiple operations in one with comma separated.
Navigation
[0] Message Index
Go to full version