This functionality is only available for certain module packages. Info / Copyright

Assigning Function Templates

Thanks to the Assign function templates function, you can generate in parts management the missing function templates automatically from the stored macros.

When this functionality is run, the program first checks whether a macro has been entered in the Data hierarchy level in the Properties tab for the Schematic macro property for the respective part. 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.

Precondition:

In the Parts management dialog you have opened a parts database using [Extras] > Settings.

Assign function templates to all records

  1. Select the following commands: Tab Master data > Command group Parts > Management.
  2. Select the Assign function templates menu item in the dialog Parts management below the [Extras] button.
  3. Click [Yes] to confirm the safety prompt.

    New function templates are assigned to all parts.

Assign function templates to selected records

  1. Select the following commands: Tab Master data > Command group Parts > Management.
  2. Mark the records to which you want to assign function templates in the tree view or the list view of the Parts management dialog.
  3. Select the Assign function templates popup menu item.
  4. Click [Yes] to confirm the safety prompt.

    New function templates are assigned to all selected parts.

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 during the assignment of the function templates (e.g., a missing macro for the Schematic macro property or a macro that contains no or several main functions), a corresponding system message is generated.