IBM Sustainability Join forces with like-minded peers and empower a sustainable future together! Join / Log in
I try to create a link in Rhapsody using addLink() or addLinkToElement() API function but without success.Always I get DISP_E_TYPEMISMATCH error.I checked my parameters and they seem to be all valid : Part, Part, null, Port, Port.Have you already encountered this error ?Thank you for your help
Hi Christophe,See https://www.ibm.com/support/pages/system/files/inline-files/$FILE/rhapsody_api_javadoc_84_1.pdf : 'addLinkToElement' p 383You need to create the relationship IRPRelation first, and also retrieve the recipient.Hope this help.Corinne
See API Rhapsody documentation page 383 "addLinkToElement"First create the relationship (IRPRelation) and retrive the recipient.Thanks @Fabrice Mendes for your help !
I've found my mistake : For assoc parameter, it was not null but nothing.