Message 1 of 4
Issue in filter selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have below codes. But it has error(image attached).
If i omit the line 'filterlist[1] = new TypedValue(67, s);' it works.
What is the issue?
Thank you
Editor editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
LayoutManager layoutMgr = LayoutManager.Current;
string s = layoutMgr.CurrentLayout;
TypedValue[] filterlist = new TypedValue[2];
filterlist[0] = new TypedValue(2, "note");
filterlist[1] = new TypedValue(67, s);
Autodesk.AutoCAD.EditorInput.SelectionFilter filter = new Autodesk.AutoCAD.EditorInput.SelectionFilter(filterlist);
PromptSelectionResult Promptentity = editor.SelectAll(filter);
SelectionSet sval = Promptentity.Value;