A Carlsbad condo-owner lost his legal battle to turn his garage into an apartment over the objections of his homeowners association.