コード例 #1
0
        //public List<EAElement> elements = new List<EAElement>();

        public EADiagram()
        {
            EACollection diaObjs = new EACollection("DiagramObject");

            diaObjs.setObjectType(EA.ObjectType.otDiagramObject);
            DiagramObjects = diaObjs;

            DiagramID    = EARepository.NextAvailableId();
            DiagramLinks = new EACollection("DiagramLink");
        }
コード例 #2
0
        public EA.Collection GetElementSet(string IDList, int Unused)
        {
            EACollection col = new EACollection("object");

            string[] elementIds = IDList.Split(',');
            foreach (string el in elementIds)
            {
                int eId = Int32.Parse(el);
                if (!col.collection.ContainsKey(el))
                {
                    col.collection.Add(el, elements[eId]);
                }
            }
            return(col);
        }
コード例 #3
0
ファイル: EAPackage.cs プロジェクト: Nanonid/api-add-in
        public EAPackage(string name)
        {
            Name      = name;
            PackageID = EARepository.NextAvailableId();
            EARepository.Repository.packages.Add(PackageID, this);

            EACollection p = new EACollection("Packages");

            p.setParent(PackageID);
            Packages = p;

            EACollection d = new EACollection("Diagram");

            d.setParent(PackageID);
            Diagrams = d;

            EACollection e = new EACollection("Element");

            e.setParent(PackageID);
            Elements = e;
        }
コード例 #4
0
        //public List<EAElement> elements = new List<EAElement>();

        public EADiagram()
        {
            DiagramObjects = new EACollection("DiagramObject");
            DiagramID      = EARepository.NextAvailableId();
            DiagramLinks   = new EACollection("DiagramLink");
        }