Dye is used in a cardiac catheterization which is a procedure to determine if there is disease in the heart. A cardiologist determines if a cardiac catheterization needs to be done before open heart surgery. There are different types of dye available. If you have had an allergic reaction in the past to dye, just let your physicians know. This will help them determine the best way to take care of you.