Exemple #1
0
        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);
        }
Exemple #2
0
        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!");
        }
Exemple #3
0
 public DotArrow(DotClass source, DotClass target)
 {
     Source = source;
     Target = target;
 }