Currently there is no method exposed through Map 3D ActiveX Automation API to delete the Object Data table. We can use the following MAP LISP API functions as a workaround (ade_oddeletetab tabname)
This function deletes the specified table. You can use SendCommand method of document object to invoke this function. The following example shows how to remove a OD Table in Map 3D -
Sub f_deleteOdtable(ps_odTableName As String)
ThisDrawing.SendCommand ("(ade_oddeletetab """ & ps_odTableName & """) ")
End Sub
Sub f_test()
Call f_deleteOdtable("test")
'you must have an object data table by name "test"
End Sub

Leave a Reply