You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

This is the main object from which all other objects are accessed. The Programmatic ID (PROGID) for this object is ERStudio.Application. Macros, which run inside ER/Studio's Macro Editor, use the pre-initialized DiagramManager 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 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 ER/Studio object types. Example applications in VB6 and .Net VB and C# are in your installation directory under ...\ERStudioX.X\Readme\TableList.zip.

See Also

  • No labels