ORM Designer External Tools
This article is about new ORM Designer feature 'External Tools'. This ability allows you to run external programs directly from ORM Designer application with specific arguments.
![]()
External tools allow you to configure list of executables which can be run directly from ORM Designer enviroment. This can help you to automate common tasks that are otherwise performed manually from various places in the system. This feature is available in ORM Designer version 1.2.2 and above.
As external tool can be used any executable, batch file, http/ftp web site or other service which is by default registered in your system. Each external tool is defined by its description, executable file or URI, the arguments which will be passed to stared file and working directory in which will be set to file or service.
Supported Variables
Currently ORM Designer supports variables which can be used in Command, Initial Dir or Arguments. These variables are translated to their values before external tool is launched.
Following variables are now supported :
| Variable Name | Description |
|---|---|
| PROJECT_NAME | Return current project name |
| PROJECT_DIRECTORY | Return directory where main project.ormdesigner file is located |
| PROJECT_MAIN_FILE | Return file name with full path to project.ormdesigner file |
| ORM_NAME | Return name of current project ORM framework |
| FRAMEWORK_NAME | Return name of current project application framework |
Usage Examples
Open command line in project directory
Title : Command Line
Command: cmd.exe
Arguments:
Initial Dir: %PROJECT_DIRECTORY%
Open concrete web site
Title : Learn more about ORM Designer
Command: http://www.orm-designer.com/web/how-to-examples
Arguments:
Initial Dir:
Open web site depending on project
Title : Open Trac of current project
Command: http://trac:8888/%PROJECT_NAME%
Arguments:
Initial Dir:
Run Symfony Doctrine tasks to generate model for current project
Title : Build Symfony Doctrine model
Command: php symfony doctrine:build --all
Arguments:
Initial Dir: %PROJECT_DIRECTORY%
Author: Ludek Vodicka


