Hello, everyone
I was wondering whether I could seek some assistance on some current Capella object rules.
In the context of my studies, I am developing a system that should allow the import of objects/data from Excel to Capella, but I’ve recently encountered some difficulties.
First issue:
So I manage to import objects into Capella so that they appear in my Project Explorer. However, as I try to use these same objects on a Diagram, I cannot instantiate them on the page, there seems to be an issue with the representation of the object. To solve this issue for Logical Components (the first object I made an import tool for) in the model, I tried to use a part type object and it worked. however, when I try to use the same method for elements other than logical components, it makes the program crash…
Second Issue:
Secondly, I’m trying to import allocation links between functions and components: we retrieve the Logical Component (if it exists) by doing a name search on all previously imported Logical Components, then on this Logical Component we seek for “getAllocatedLogicalFunctions()” then “add(…)” the logical function being imported.
The problem I encountered, that I find myself with an unsupported operation exception “unmodifiable random access list”.
-
Please, find attached the screenshot (// Create part ) of using a part object to fix the display problem. Do you have an idea on the use of a part object or another Capella aspect that i’m forgetting to solve this display issue?
-
Please find attached two screenshot corresponding to second problem.
Any help on these issues would be greatly appreciated,
Kind Regards,
Meziane