HOW TO
Create VBA code with the ODE references 'ESRI Arc automation server' and 'ESRIutil automation server' and run an AML using the Command method.
Code:
Dim Arc1 As ESRI.Arc
Dim Results As ESRIutil.Strings
Set Results = New ESRIutil.Strings
Set Arc1 = New ESRI.Arc
Code:
Dim ArcStatus As Long
Dim command1 As String
command1 = "&run c:\testdir\demo.aml"
ArcStatus = Arc1.Command(command1, Results)
MsgBox "AML complete."
Note:
AML's that switch to other modules such as Tables or Arcedit, require a different VBA coding strategy.
Article ID:000002300
Get help from ArcGIS experts
Download the Esri Support App