It's all about the answers!

Ask a question

Add connector between proxyports with Rhapsody Java-Api


Dieter Wagner (111) | asked Apr 22, 11:52 a.m.
Hello,

I'm having problems creating a connector between 2 proxy ports.
The code works for non-nested proxy port (between J1 and J2):

IRPInstance fromPart = theformPart;
IRPPort fromPort = thefromPort;
IRPInstance toPart = thetoPart;
IRPPort toPort = thetoPort;
theDevice.addLink(fromPart, toPart, null, fromPort, toPort);

but when I apply the code for nested ports (between J1.power and J2.power) I get an error.

Any ideas how it works for nested Ports?
ThanksĀ 
Dieter

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.