private DotClass MapSpecialTypeAsClass(Item type) { string typeName = type.getProperty("name"); var typeClass = Graph.GetDotClassByName(typeName); int index = Graph.GraphElements.IndexOf(typeClass); typeClass = new DotClass { Name = typeName, Label = GenerateLabelFromProperties(type) }; Graph.GraphElements[index] = typeClass; return(typeClass); }
private void MapItemTypes() { Console.WriteLine("Mapping ItemTypes to graph..."); int itemTypeCount = ArasExport.ItemTypes.getItemCount(); for (int i = 0; i < itemTypeCount; i++) { var currentItemType = ArasExport.ItemTypes.getItemByIndex(i); var itemTypeClass = new DotClass { Name = currentItemType.getProperty("name", $"\"{currentItemType.getID()}\""), Label = GenerateLabelFromProperties(currentItemType) }; Graph.GraphElements.Add(itemTypeClass); MapPropertyRelations(currentItemType); } Console.WriteLine("ItemTypes successfully mapped!"); }
public DotArrow(DotClass source, DotClass target) { Source = source; Target = target; }