This functionality is only available for certain module packages.

You are here: EEC > ECAD > Modularization of ECAD pages > Creating parameters in ECAD macros

Creating parameters in ECAD macros

Parameters can be defined only on symbol properties that are captured by a placeholder object. For example, it is not possible to define as a parameter the variant of the symbol or the property Main function. The following figure shows what a parameter may look like for the technical characteristic of a device:

The parameter name can generally be chosen freely. When choosing a name, it should be kept in mind that the same parameter name should always be used for the same task, where possible, including in various macros, in order to avoid an excessive number of parameters.

If a parameter name is preceded by "hidden_" (e.g. hidden_Order), the parameter value is not visible in a created schematic. The invisible parameter value is located in P8 but is for example still available for calculations.

When it comes to the placing of the placeholder object, a suitable position near the affected graphic should be selected. The following figure shows what the parameters for a technical characteristic of the same device may look like in a placeholder object:

.

When creating the window macro, keep in mind that the placeholder object must be part of the macro content; otherwise, no variables will be defined in the macro. If text objects for Plug and / or Socket are also defined in the same macro, note that these texts must not be assigned to the placeholder object. But they do have to be included in the macro graphic.

Through the generation of the schematic with EEC, the parameter is replaced by the value defined or calculated in EEC.

More: