The smoking lamp is going out at co-ops and condos across New York City.

Dozens of buildings caught up in the zeitgeist of green buildings and healthy living have voted to ban smoking even behind the doors of individual privately owned apartments in the last few months, co-op and condo lawyers say.

At the Century Condominium, a 1931 art deco...