Exemplo n.º 1
0
        static public void exportDiagram(EA.Repository Repository, EA.Diagram diagram)
        {
            string confluencedata = null;

            //if (diagram.Version != "1.0")
            //{
            //    confluencedata = diagram.Version;
            //}
            //else
            {
                confluencedata = diagram.Notes;
            }
            if (confluencedata == null || confluencedata.Length == 0)
            {
                //logger.log("Diagram ["+diagram.Name+"] notes field does not specify a <confluence page name>. Default to CanonicalDataModel");
                //confluencedata = "CanonicalDataModel";
                return;
            }

            {
                char[]   delimiter = { ',' };
                string[] pages     = confluencedata.Split(delimiter);
                foreach (string page in pages)
                {
                    string fullpath = fileManager.diagramPath(page, diagram.Name);
                    logger.log(fullpath);
                    SVGExport.EAPlugin.SaveDiagramAsSvg(Repository, diagram, fullpath);
                }
            }
        }