Integration with Other Applications > Windchill Workgroup Manager Documentation > ECAD > ECAD Adapter Specific Actions > Generic > Creating and Editing Hook Definitions
  
Creating and Editing Hook Definitions
In order to use a hook, you must first create a hook definition. The hook definition specifies the type of hook to be used, the external executable file to call, and whether the external executable augments or replaces the built-in action. The procedure consists of two major parts: creating the Hook Definition Document, and then editing it to reflect the functionality that you want.
To create a hook definition, do the following:
1. Create a Hook Definition Document.
a. From the workspace, select New > CAD Document.
b. Under Category, select ECAD - Hook Definition.
c. Under Type, be sure that ECAD Definition is showing.
d. Under Template Name, select the specific hook that you want to use.
e. Click OK. The document for the hook definition is created.
2. Open the Hook Definition Document’s info page.
3. Select Actions > Edit Hook Definition to open the Edit Hook Definition window.
* 
The Skip Built-In Function must be selected for the hook types: Create Viewable, Create BOM and Create Variant BOM for the ECAD neutral adapter. The hook retrieve attributes have the skip built-in option enabled by default. All other hook types can have either the skip built-in option selected or not.
4. In the Command Line field, type the full path name of your executable.
* 
The path that you type in this step must point to a valid executable file, with the permissions set appropriately.
5. Click OK.
6. Check in the Hook Definition Document. It is now ready for use.