Message 1 of 5
GetSelction is bypassed
Not applicable
10-17-2011
12:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i have two ways of selection LINES, one is All in dwg (this works), second is by selection on screen using getselection. This is not allowing user to select anything, it just runs right through with out allowing user to grab anything.
Dim
myLINE As TypedValue
myLINE = New TypedValue(0, "LINE)
Dim myFilter AsNewSelectionFilter(myLine)
Dim ed AsEditor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor
Dim myPSR AsPromptSelectionResult
If RadioButton1.Checked = TrueThen''Not working
myPSR = ed.GetSelection(myFilter)
Else''Yes working
myPSR = ed.SelectAll(myFilter)
EndIf