Topic
  • 1 reply
  • Latest Post - ‏2013-11-29T06:35:32Z by JeanZ
J2FH_Nicolas_Albarello
2 Posts

Pinned topic [Rhp Java API] Get ports of a SysML part

‏2013-11-28T14:52:06Z |

Hi,

Also, I do not manage to get the flowports of a part. I tried with getNestedElementsByMetaClass("SysMLPort", 0).toList() but the list is empty...

Thanks for your help

Nicolas

  • JeanZ
    JeanZ
    312 Posts

    Re: [Rhp Java API] Get ports of a SysML part

    ‏2013-11-29T06:35:32Z  

    Hi.

    please try instance.getOtherClass().getPorts() //instance is the part you want to deal with.

    getPorts() should return a collections of all the ports defined with this classifier.

    Hope it helps.

    Regards