Reply
Solved! Go to solution

Table Object Type in Select Set

[ Edited ]

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.

 

1 REPLY
Solution
Solution
Accepted by topic author Tushar
‎08-26-2015 04:32 AM

Re: Table Object Type in Select Set

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