Command Prompt not Returned after Entity Selection

Command Prompt not Returned after Entity Selection

Anonymous
Not applicable
451 Views
1 Reply
Message 1 of 2

Command Prompt not Returned after Entity Selection

Anonymous
Not applicable
I have a Palette for displaying and setting xrecord data for 3DSolids.

Private Sub ButtonPickTimbers_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles ButtonPickTimbers.Click

Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor

Dim values() As TypedValue = {New TypedValue(DxfCode.Start, "3DSOLID")}

Dim sfilter As New SelectionFilter(values)

Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView()

Dim res As PromptSelectionResult = ed.GetSelection(sfilter)

If Not res.Status = PromptStatus.OK Then Return

SS = res.Value

TimberID = SS.Item(CurrTimberIndex).ObjectId

ListTimber(TimberID) 'Fills Palette Textboxes with data from the entities
xrecord

End Sub

The problem I'm have is that the Command: prompt is not returned after
ButtonPickTimbers_Click is executed.
0 Likes
452 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt()

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


"Robert" wrote in message
news:6174957@discussion.autodesk.com...
I have a Palette for displaying and setting xrecord data for 3DSolids.

Private Sub ButtonPickTimbers_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles ButtonPickTimbers.Click

Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor

Dim values() As TypedValue = {New TypedValue(DxfCode.Start, "3DSOLID")}

Dim sfilter As New SelectionFilter(values)

Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView()

Dim res As PromptSelectionResult = ed.GetSelection(sfilter)

If Not res.Status = PromptStatus.OK Then Return

SS = res.Value

TimberID = SS.Item(CurrTimberIndex).ObjectId

ListTimber(TimberID) 'Fills Palette Textboxes with data from the entities
xrecord

End Sub

The problem I'm have is that the Command: prompt is not returned after
ButtonPickTimbers_Click is executed.
0 Likes