I want to display the description compartment in a SysML block with a plugin or standalone application. I know how to create diagrams and blocks, but I does not find any method to access compartments in rhapsody by using java.
Is there any way to do that with Rhapsody Java API?
This topic has been locked.
2 replies Latest Post - 2012-10-19T10:05:18Z by SystemAdmin
Pinned topic Java API: Display Compartments
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-10-19T10:05:18Z at 2012-10-19T10:05:18Z by SystemAdmin
ColA00 2700043VXS2 PostsACCEPTED ANSWER
Re: Java API: Display Compartments2011-04-27T07:08:52Z in response to ColA00Good morning,
I found a solution on my own. There is only one property to set:
The key of the property is ObjectModelGe.block.Compartments and the value has to be a string with a comma separated list of the compartments.
ObjectModelGe.block.Compartments : "Description, Attributes, Tags"
The property has to be set in the IRPGraphElement of the diagram with setPropertyValue(...).
SystemAdmin 110000D4XK1305 PostsACCEPTED ANSWER
Re: Java API: Display Compartments2012-10-19T10:05:18Z in response to ColA00Hello Colin,
I'm Azizi from Japan. Can you share with me the java code to create description compartment in the SysML block?. I want to create a plugin for Rhapsody that can manipulate any descriptions described in the compartment plus I'm new to Java. Am really appreciated if you can share with me.
Thanks in advance