public override docScript compose(docScript script = null) { script.open("diagram", diagram.name, diagram.description); if (diagram != null) { script.AppendDiagram(diagram, engine); } script.close(); return(script); }