Engineering

Engineering

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Rhapsody API: set Link display options

    Posted Mon August 14, 2023 08:50 AM
      |   view attached

    I try to unset Show Relation Title for a link.

    I do not manage to find how.

    Any advice ?



    ------------------------------
    Christophe
    ------------------------------


  • 2.  RE: Rhapsody API: set Link display options
    Best Answer

    Posted Fri August 25, 2023 10:58 AM

    This is currently not available, will add this to Rhapsody Backlog.



    ------------------------------
    Suneel Santharam
    Sr. Product Consultant
    IBM India Pvt LTD
    Bangalore
    9.18E+11
    ------------------------------



  • 3.  RE: Rhapsody API: set Link display options

    Posted Thu February 06, 2025 11:01 AM

    Hello, 

    as the original post is about 1,5 years ago: any update regarding this feature? 

    I stumbled across this post when searching for a solution of exactly this topic. I would also need to access showing/hiding of link titles via the API.

    Is this feature planned or even implemented in the mean time? 

    Best regards

    Robert



    ------------------------------
    Robert Fromm
    ------------------------------



  • 4.  RE: Rhapsody API: set Link display options

    Posted Mon March 24, 2025 09:15 AM

    Hi  Christophe,

    There is a way to unset Show Relation Title for a link by setting it's GraphicalProperty ShowName to None.  

    for( Object obj : app.getSelectedGraphElements().toList())

    {
    if(obj instanceof IRPGraphElement)
    {
    IRPGraphElement gEle = (IRPGraphElement) obj;
    gEle.setGraphicalProperty("ShowName","None");
    }
    }


    ------------------------------
    Ruchit Solanki
    ------------------------------