Dim ed As Editor = AcadApp.DocumentManager.MdiActiveDocument.Editor Dim acTypValAr(0) As TypedValue acTypValAr.SetValue(New TypedValue(DxfCode.BlockName, brfName), 0) Dim acSelFtr As SelectionFilter = New SelectionFilter(acTypValAr) Dim acSSPrompt As PromptSelectionResult Dim obs(0) As ObjectId obs(0) = id ed.SetImpliedSelection(obs) acSSPrompt = ed.SelectAll(acSelFtr) Dim acSSet As SelectionSet = acSSPrompt.Value Return acSSet.GetObjectIds
Dim acTypValAr(0) As TypedValue acTypValAr.SetValue(New TypedValue(DxfCode.BlockName, brfName), 0) Dim acSelFtr As SelectionFilter = New SelectionFilter(acTypValAr) Dim acSSPrompt As PromptSelectionResult acSSPrompt = ed.GetSelection(acSelFtr) Return acSSPrompt.Value.GetObjectIds