Optionally, export the diagram