Delete Map 3D Object Data Table using ActiveX Automation API

By Partha Sarkar

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

 


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading