---
title: "How to use the output from other macros in Graphviz"
canonical: "https://support.appfire.com/space/SUPPORT/89136767/How%20to%20use%20the%20output%20from%20other%20macros%20in%20Graphviz"
format: markdown
---
Description This article illustrates how you can use the  dot  code generated by another macro and use it as source code in Graphviz to create a diagram. Steps Create a new page. Enter  {flowchart   and select the flowchart macro. Alternatively, from the toolbar at the top, click  Insert more content >  Other macros  >  Flowchart macro.   Copy the code block mentioned in the example below and paste it in the macro body.  Enable  Render wiki markup macros in body.                   5. Click  Save  to publish the page. You will have to enter  diagraph  commands to generate Diagraphs and Space graphs. Source {groovy}
 println 'A -> B' 
 println 'B -> C' 
 println 'C -> A'
 println 'D -> B' 
 println 'D -> C'
{groovy}  Diagram