This functionality is only available for certain module packages.

You are here: EEC > ECAD > Example: Creating a page for light > A single lamp and its terminals

A single lamp and its terminals

Since the lamps are displayed in two variants you require two macros with the same name for the ECAD object but different specifications of the variant. The multiple use is realized through multiple instantiation in EEC. The lamp needs a plug in order to connect the macro graphic with a socket in the basic wiring diagram. In addition, a placeholder object (anchor symbol) is needed for the definition of the parameters – here: Terminal1, Terminal2 and DT required. The window macros for the lamp in the variant A (right) and B (left) look as follows:

Via the EP plug, the lamp is connected with a socket from the basic wiring diagram. The parameters DT, Terminal1 and Terminal2, as well as PageNumber and Index, are filled with project-specific values in EEC.

The rule for the use of variant A or B is specified as a formula in the Variant parameter so that the lamps from 1 to 4 are placed as variant A and the lamp 5 as variant B.

More: