The key to the design of steam & water pipe in cement kiln waste heat power generation system lies in reasonable pipe layout and stress analysis. This paper analyzes the key points in six typical calculation conditions of Glif algorithm in AutoPSA software which used in steam & water pipe design, explains the code meaning and adjustment techneques of the five parts: pipe design parameters, nozzle force, cold/hot displacement calculation & spring selection, support and hanger load calculation, maximum stress calculation. Combined with the engineering examples, the criterion of acceptability for the steam & water pipe design is put forward: the stress should not exceed 70%~80% of the allowable stress; support and hanger cannot be empty, pipe displacement should not exceed 150mm; no spring in series and no constant force spring; the nozzle force does not exceed the allowable value of the equipment.