Table Object Type in Select Set

Phenom
Phenom

The following does not seem to be working for me with a table selected in the Draft sheet:

 

Dim oApp As SolidEdgeFramework.Application = Marshal.GetActiveObject("SolidEdge.Application")
Dim oDoc As SolidEdgeDraft.DraftDocument = oApp.ActiveDocument

Dim oSel As SelectSet = oDoc.SelectSet
Dim oObject As Object
oObject = oSel.Item(1)
If TypeOf oObject Is SolidEdgeDraft.Table Then
  MessageBox.Show("Selected object is a Table.")
End If

To interactively create a table for testing, select the Table command from the Tables group and click OK without changing a single setting. Select the table and run the above code. the message box is never displayed.

 

Untitled.png

1 REPLY

Re: Table Object Type in Select Set

Phenom
Phenom

After coupe of hours more of digging deeper, found that TablePage is the correct object type whose Parent is the Table selected interactively.