Extending product function with VBA : System Architect errors : Handling errors
  
Handling errors
The properties and methods in the System Architect Object Model execute their code in a consistent way, but unfortunately the base data may not always be as expected and errors may occur during the natural operation of a Microsoft VBA macro. A number of issues may arise during normal operation and these need to be trapped and handled or else the macro will terminate abruptly without finishing the code execution.
When an error occurs during code execution the following dialog is shown. The method Diagram.Show has been executed to open the current diagram graphic. However, the diagram has already been opened at some other point in the code and so an error occurs.
You can click End to end the program, or Debug to open the Microsoft VBA editor interface and highlights where the error occurred.
See also
System Architect errors