Message 1 of 17
Keywords and GetSelection
Not applicable
04-25-2006
06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Isn't it possible to use Keywords with GetSelection.
I tried following code but could not see the keywords.
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
PromptSelectionOptions BlockOptionPick = new PromptSelectionOptions();
BlockOptionPick.Keywords.Add("Name");
BlockOptionPick.Keywords.Add("Liste");
BlockOptionPick.Keywords.Default = "Name";
BlockOptionPick.SingleOnly = true;
BlockOptionPick.MessageForAdding = "Referenzblock zeigen";
TypedValue[] filList = new TypedValue[1];
filList[0] = new TypedValue((int)DxfCode.Start, "INSERT");
SelectionFilter filter = new SelectionFilter(filList);
PromptSelectionResult BlockResultPick = null;
BlockResultPick = ed.GetSelection(BlockOptionPick, filter);
--
Roland Feletic
I tried following code but could not see the keywords.
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
PromptSelectionOptions BlockOptionPick = new PromptSelectionOptions();
BlockOptionPick.Keywords.Add("Name");
BlockOptionPick.Keywords.Add("Liste");
BlockOptionPick.Keywords.Default = "Name";
BlockOptionPick.SingleOnly = true;
BlockOptionPick.MessageForAdding = "Referenzblock zeigen";
TypedValue[] filList = new TypedValue[1];
filList[0] = new TypedValue((int)DxfCode.Start, "INSERT");
SelectionFilter filter = new SelectionFilter(filList);
PromptSelectionResult BlockResultPick = null;
BlockResultPick = ed.GetSelection(BlockOptionPick, filter);
--
Roland Feletic