HOW TO
You can add ArcView extension dependencies to an Object Database (ODB) file using Avenue. This example demonstrates how to add Spatial Analyst as a dependency. Modify the code to work with the extensions of your choice.
Code:
myODB = ODB.Make("c:\temp\myFirst.odb".AsFileName)
myODB.Add(av.getproject.finddoc("View1").Findtheme("Distance to block.shp"))
myODB.Add("String 2")
myODB.Add("String 3")
theList = myODB.GetDependencies
theList.add("$avext/spatial.avx".AsFileName)
myODB.Commit
msgbox.listasstring(myODB.getDependencies,"","ODB Dependencies")
Note:
See the ArcView help topic ODB for addition information.
Article ID:000002459
Get help from ArcGIS experts
Download the Esri Support App