Unified Rules for CAD Drawings