Bulk import connections and ports?
I'm wanting to use Papyrus for creating a SysML model of a network. I've got a large number of hosts and connections and I'd like to be able to import them from a CSV or other external resource instead of creating every single one by hand.
- I can use a generic table to paste in elements as long as it's just one element per row and they all have a common parent, but it looks like I can't do that for connections because they have sub-elements (connection ends) and the table can only initialize one element per line. I also can't use it for adding ports to blocks because the ports will have different owners. I could create a table for each block but most have just one port and it would defeat the purpose.
- I can import elements from an external xmi file, but those have to be wholly self-contained. I can't import elements from an external xmi that reference elements in my existing Papyrus project, so I still can't import connections or ports that are tied to existing elements.
- Closest thing I've found that might work is using EASE scripts, which will require me to learn some Python or JS and I'm still unclear whether it'd work.
Is there a way to do this that I'm overlooking? How do other people create large numbers of elements? Is it just always done by hand? Thanks.
Edited by Grant Willey