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 !
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;