Access ER/Studio DA from Windows

1.  Choose Start > Run.

2.  Type cmd and press Enter.

3.  Enter ERStudio.exe -m MyMacros.bas.

Notes

   You can use the Erstudio command-line to access macros written in ERStudio's Sax Basic Macro editor. Run the command from the directory where ERStudio.exe is located. The default location is:

...\Program Files\Embarcadero\ERStudio Data Architect X.X

You cannot run the Erstudio command-line when running the ER/Studio DAAppWave ION. You must have ER/Studio DA installed locally on your machine to access this command.

   You must specify the macros directory in Options Editor - Application Tab. The default location is:
Windows XP: C:\Documents and Settings\All Users\Application Data\Embarcadero\ERStudioDA_X.X\Macros
Windows Vista: C:\ProgramData\Embarcadero\ERStudioDA_X.X\Macros
AppWave ION: My Documents\ERStudio Data Architect XE\Macros

   Macros may not be located in a subdirectory. Macros with long names or spaces need to be enclosed in quotes.

   You must include the .bas extension in the command line syntax.

   Any errors that occur during the execution of the macro are written to an error file (.err) in the macros directory in Options Editor - Directories tab. The file name includes the date of the error. ER/Studio DA lists each error with a timestamp in the file.

   You can use dialogs in macros executed from the command line, but you must write the macro code to handle the opening of diagrams. Macros that work on the active diagram may not work.