3.6.5.4 EndOpen

The EndOpen macro is triggered when Origin is directed to start by opening a specific project (files of type *.OPJ or *.ORG). To automatically open a specific project when starting Origin you specify the project name

  • in the Windows Start: Run dialog box.
  • in the Target text box of an Origin shortcut's Properties window.


For example, typing

C:\...\Origin70.exe MyProject.opj

in the Windows Start: Run dialog box and clicking OK, starts Origin and automatically opens the project MYPROJECT.OPJ.


When Origin is directed to start by opening a specific project, the EndOpen macro is executed immediately after Origin is started and the specified project is fully opened. The EndOpen macro is unique in that a define statement for the EndOpen macro must be contained in a configuration file (files of type *.CNF) and be executed during the Origin start up procedure to ensure that the macro is define in time for its triggering event. The file MACROS.CNF (found in the Origin software folder) contains a commented out define statement for the EndOpen macro which can be uncommented and modified to insure timely definition.