HOW TO
Sample code for removing a document from a project using Avenue
Code:
'-- Assumes you have a document called View1 in the project
theView = av.GetProject.FindDoc("View1")
av.GetProject.RemoveDoc(theView)
'-- Assumes you have a document called Table1.dbf in the project
theTable = av.GetProject.FindDoc("Table1.dbf")
av.GetProject.RemoveDoc(theTable)
'-- Assumes you have a document called Layout1 in the project
theLayout = av.GetProject.FindDoc("Layout1")
av.GetProject.RemoveDoc(theLayout)
Get help from ArcGIS experts
Download the Esri Support App