![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: No documentation for addLink() in COM API Topic Summary: Created On: 16-Mar-2006 12:24 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to get some models into Rhapsody using the COM API. I can't seem to find any documentation on the addLink() interface. The best I have is it has 5 parameters:
addLink( IRPInstance fromInstance, IRPInstance toInstance, IRPRelation assoc, IRPPort fromPort, IRPPort toPort) I really need to create a link between 2 ports. Any help would be appreciated. Thanks, Jim |
|
![]() |
|
![]() |
|
Here is a small example that will hopefully get you going.
... Sub test() Dim pkg As RPPackage Set pkg = getProject.addPackage("MyPkg") Dim clsA As RPClass Set clsA = pkg.addClass("clsA") clsA.addNewAggr "Port", "A_Port" Dim clsB As RPClass Set clsB = pkg.addClass("clsB") clsB.addNewAggr "Port", "B_Port" Dim aInst As RPInstance Set aInst = pkg.addGlobalObject("A_inst", clsA.name, pkg.name) Dim bInst As RPInstance Set bInst = pkg.addGlobalObject("B_inst", clsB.name, pkg.name) Dim tempRel As RPRelation pkg.addLink aInst, bInst, tempRel, clsA.ports(1), clsB.ports(1) End Sub ... |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
No documentation for addLink() in COM API
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.