Page History
Description
This is the main object through from which all other objects are accessed from. The Programmatic ID (PROGID) for this object is 'ERStudio.Application'. Macros, which run inside ER/Studio's Macro Editor, will use the pre-initialized 'DiagramManager' object object.
Object Model
Remarks
Within the Macro Editor, DiagramManager is the parent object that provides access to all other ER/Studio objects. The DiagramManager object is declared /or created when you start the Macro Editor. You can immediately start using this object. You do not need to create it.
Good Programming Practice: Use the DiagramManager.GetLastErrorCode() or DiagramManager.GetLastErrorString() to check for errors after method calls.
If you run macros outside of the ER/Studio Macro Editor (for example, in Visual Studio), you must create the Application object through a method call. In Visual Basic, you can call CreateObject. The Programmatic ID (PROGID) for the Application object is ERStudio.Application.
In this external case, you'll need to create a link to the ER/Studio Type Library, and then declare ERStudio ER/Studio object types. Example applications in VB6 , and .Net VB and C# are in your installation directory under " ...\ERStudioX.X\Readme\TableList.zip."