This Architectural Drawing is AutoCAD 2d drawing of Generator Window Details. A generator is a special type of function which does not return a single value, instead, it returns an iterator object with a sequence of values. In a generator function, a yield statement is used rather than a return statement. The following is a simple generator function. For more details and information download the drawing file.