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?
ColA00 2700043VXS2 Posts
Re: Java API: Display Compartments2011-04-27T07:08:52ZThis is the accepted answer. This is the accepted answer.Good 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 Posts
Re: Java API: Display Compartments2012-10-19T10:05:18ZThis is the accepted answer. This is the accepted answer.
- ColA00 2700043VXS
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