Topic
2 replies Latest Post - ‏2012-10-19T10:05:18Z by SystemAdmin
ColA00
ColA00
2 Posts
ACCEPTED ANSWER

Pinned topic Java API: Display Compartments

‏2011-04-20T12:53:10Z |
Hello,

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?
Colin
Updated on 2012-10-19T10:05:18Z at 2012-10-19T10:05:18Z by SystemAdmin
  • ColA00
    ColA00
    2 Posts
    ACCEPTED ANSWER

    Re: Java API: Display Compartments

    ‏2011-04-27T07:08:52Z  in response to ColA00
    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(...).
    Colin
    • SystemAdmin
      SystemAdmin
      1305 Posts
      ACCEPTED ANSWER

      Re: Java API: Display Compartments

      ‏2012-10-19T10:05:18Z  in response to ColA00
      Hello 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

      Cheers
      Azizi