I was wondering if there is a mechanism for loading the enumerations literals from a text file. There are cases where the literals of a class are quite lengthy and such a mechanism would help. Or we might want to model an attribute, of a class, to get values from a list contained in a text file.
To give an example, consider an attribute referring to a country name. We either want to preload the countries’ names from a text file or alternatively link this attribute to an external entity called country_names.txt.
I’m sorry that we do not support loading enumeration literals from text file. But you can make use of our Excel data import feature to achieve. You can try create a simple Enum in our application and export it to Excel. After that follow the structure in exported Excel to feed in your data, and import it back to the project. Hope this can help.
I have a class diagram where I have added an Enumeration “MyEnum”. Then I added two literals “Value1” and “Value2”.
In another class I added an attribute “MyAttribute : MyEnum” and all seems ok.
But when I export a class diagram to excel, there is no trace of the enumeration classes. I see the attribute “MyAttribute1” of type “MyEnum”, but I cannot see the enumeration literals of MyEnum. How can these be exported? I currently use VP 16.3