//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"); }
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); }
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; }
//public List<EAElement> elements = new List<EAElement>(); public EADiagram() { DiagramObjects = new EACollection("DiagramObject"); DiagramID = EARepository.NextAvailableId(); DiagramLinks = new EACollection("DiagramLink"); }