Public Shared Sub ChengeBlock() Dim TypedValues(0) As TypedValue TypedValues.SetValue(New TypedValue(DxfCode.BlockName, MObject), 0) Dim AcSelFtr As SelectionFilter = New SelectionFilter(TypedValues) Dim AcSelOption As PromptSelectionOptions = New PromptSelectionOptions AcSelOption.Keywords.Add("Object") AcSelOption.Keywords.Add("Factor") AcSelOption.Keywords.Add("Type") AcSelOption.MessageForAdding = (vbLf & "Select Object(s) or " & AcSelOption.Keywords.GetDisplayString(True)) AcSelOption.Keywords.Default = "Object" AddHandler AcSelOption.KeywordInput, AddressOf handle_KeywordInput Dim AcSelResult As PromptSelectionResult = Application.DocumentManager.MdiActiveDocument.Editor.GetSelection(AcSelOption, AcSelFtr) ' I Need to Exit here from this function without canceled by user If AcSelResult.Status = PromptStatus.OK Then End If End Sub