This paper describes research carried out to develop a
parametric urban shape grammar for the Zaouiat Lakhdar quarter of
the Medina of Marrakech, in Morocco. The goal is to create the basis for a system that could capture some features of the existing urban fabric and apply them in contemporary urban planning