In this paper we present a model transformation from a visual representation (VisualOCL) of the Object Constraint Language (OCL) to the textual one using graph transformation. Starting from VisualOCL diagrams, we show how their underlying syntax can be modeled by typed attributed graphs and converted into an OCL string representation using graph transformation rules. Key words: ocl, visual ocl, graph grammar, graph transformation, model transformation