Code Red > .NET
Using Selectionfilter for leader and mleader
(1/1)
latour_g:
Hi all,
I'm trying to use selectionfilter to select only leader and mleader. What I've done above doesn't work.
I tried with Line, Circle, Polyline and it's working fine.
Thank you !
--- Code - C#: --- string objects = ("LEADER,MLEADER"); //string objects = ("LINE,CIRCLE,POLYLINE"); TypedValue[] values = new TypedValue[1] { new TypedValue((int)DxfCode.Start, objects) }; SelectionFilter filter = new SelectionFilter(values); PromptSelectionOptions SelOpts = new PromptSelectionOptions(); SelOpts.AllowDuplicates = false; SelOpts.MessageForAdding = "\nSélectionner Leader ou Mleader"; SelOpts.MessageForRemoval = "\nSélectionnez des objets à enlever de la sélection :"; Utils.SetFocusToDwgView(); PromptSelectionResult res = ed.GetSelection(SelOpts, filter); if (res.Status != PromptStatus.OK) return;
Jeff_M:
Either of these should work
--- Code - C#: ---string objects = ("LEADER,MULTILEADER");
or
--- Code - C#: ---string objects = ("*LEADER");
latour_g:
You are totally right ! Thank you SO much !
Navigation
[0] Message Index
Go to full version