Power on/off switch while still passing electrical rules check

Suppose one were to want to have a schematic with an on/off switch to turn off power to the board. This causes problems when undergoing the electrical rules check (ERC) since power is coming from the other pin of the switch. Thus to the electrical rules checker it appears that the power inputs to, for example, ICs are not connected. Is there a way to handle this situation to be able to pass the ERC.

The power-lib includes a “power-flag”. Add it to any nets than need to be “powered”.

2 Likes

I tried the power flags before and was getting errors because of a user defined battery holder. When I fixed the battery holder (made it a “U?”), the power flags worked as desired.

Thanks for the input