Thanks to the Assign function templates function, you can generate in parts management the missing function templates automatically from the stored macros.
When this function is executed, the program first checks whether for the respective part a macro has been entered in the Technical data tab in the Macro field. Then, the macro is browsed for functions. A successful assignment requires that the macro must contain a main function.
The functions found – starting with the main function – are carried over to the Function templates tab. In the process, all properties on a template are filled with the data of the function where possible.
When assigning function templates, a distinction is made between:
- the assignment for subsets of the database
- the assignment for all records.
Assign function templates to all records
Precondition:
You have opened a parts database using [Extras] > Settings in the Parts management dialog.
- Select [Extras] > Assign function templates.
- Answer the prompt.
Assign function templates to selected records
Preconditions:
- You have opened a parts database using [Extras] > Settings in the Parts management dialog.
- You have highlighted the required records in the tree, list, or combined display.
- Select the Assign function templates popup menu item.
- Answer the prompt.
Notes:
- Parts stored on the main function in the macro are not considered for the assignment of the function templates.
- It is not required that the respective macros be placed in the schematic (e.g., as a device) before the Assign function templates function is run. If the macros have already been inserted in the schematic without stored function templates, the function templates will not be overlaid at the device. After you have assigned the function templates for the respective part in parts management, you will then have to do a synchronization of parts with the project. Subsequently, the function templates at the device will be overlaid with those of the part.
- If an error occurs in the assignment of function templates (e.g., a missing macro on the Technical data tab or a macro that contains no or several main functions), a corresponding system message is generated.