Overview of VBA for the HMI
This book is the VBA Language Reference to script mimics and graphical elements of the HMI.
HMI object tree
To manipulate HMI objects, you must know the relationships among them. The highest level object is Application. All other objects are subordinate to it, so you can use the Application object's properties and methods to access the subordinate objects.
The object tree is shown below. You can click on an object's name to open its Help topic.
MapControl objects tree
The MapControl is sub-ordinate to the Graphics collection but because it has a complex structure it is shown as a separate tree for the purpose of this topic.
Graphic Objects is a generic term referring to all drawing object classes (Shape,Text etc.).
Animation Objects is a generic term referring to all animation object classes.
There is also a collection known as TemplateGraphics that is identical to Graphics except that it refers to the graphics in a mimic template.