Extending product function with VBA > Introduction to extending SA with VBA
Introduction to extending SA with VBA
Microsoft Visual Basic for Applications (VBA) and its development environment is installed with System Architect. Microsoft VBA’s help system is also installed, and is accessible after launching Microsoft VBA from the System Architect main toolbar.
This section covers the fundamentals of working with System Architect and Microsoft VBA. It also contains information about using the Object Browser, macros, and the Microsoft VBA Editor.
Automating System Architect
System Architect is VBA-enabled allowing the user to control the System Architect environment programmatically, and to control other applications using OLE automation.
The Object Browser is a very useful feature of the VBA Editor, allowing the interrogation of available Object Libraries, Type Libraries and Dynamic Link Libraries.
Microsoft VBA enables users to control System Architect programmatically. The programming environment, debugging environment, and language is the same Microsoft VBA found throughout the industry, including in Microsoft Office products.
Because System Architect has built-in support for Microsoft VBA, you can write native macros that run inside System Architect to do all sorts of things, such as adding useful utilities, or even affecting the behavior of the tool.
The Objects available to Microsoft VBA from System Architect can be viewed through the Object Browser in the Microsoft VBA editor. Each type of object is defined as a class, which contains a list of the supported properties and methods.