Attic Fan Furnace Interlock
I'm not sure why you would want to do that, but paralleling the 24V relay coil to the C and W wire and connecting the attic fan to the normally closed contacts on the relay would achieve what you want to do. I would use a RIB (relay in a box) and make sure all wiring above 50V is protected per NEC. Also make sure your control voltage transformer has enough VA to handle the addition.

Good Luck