Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This is the main object through 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 Model

...

Image Added Image Added

Remarks

Within the Macro Editor, DiagramManager is the parent object that provides access to all other ER/Studio objects. The DiagramManager object is declared/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 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  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 declare ERStudio object types. Example applications in VB6, and .Net VB and C# are in your installation directory under "..\ERStudioX.X\Readme\TableList.zip."

...

See Also