FW: connection between reference-ports
Endre Magyari
endre at isis.vanderbilt.edu
Wed Dec 10 20:11:04 CST 2003
----------
From: Endre Magyari
Sent: Wednesday, December 10, 2003 12:11:04 PM
To: GME Group
Subject: Re: FW: connection between reference-ports
Auto forwarded by a Rule
I had this problem with UDM,I think the connection itself is between
atoms/models and when setting up the connection you have to provide the
list of reference ports, through the connection is established.
I have the following code snipplet in UDM:
IMgaSimpleConnectionPtr conn; //the connection
IMgaFCOsPtr src_references; //the list of references through the
connecting source
IMgaFCOsPtr dst_references; //the list of references through the
connecting destination
COMTHROW(conn->SetSrc(src_references, self));
COMTHROW(conn->SetDst(dst_references, self));
This is not BON code, but that should be similar.
Hope this helps,
Endre
On Wed, 10 Dec 2003 07:22:36 -0600, GME Group
<gmegroup at isis.vanderbilt.edu> wrote:
>
>
> ----------
>
> From: Sandeep Neema
> Sent: Wednesday, December 10, 2003 7:22:36 AM
> To: GME Group
> Subject: connection between reference-ports
> Auto forwarded by a Rule
>
> Gentlemen,
>
> I am trying to use BON to create a new connection between ports of two
> model
> references. I retreive the CBuilderReferencePort object from my two
> BuilderModelReference-s, and pass that to the CreateNewConnection
> function.
> However, it seems to not want to do it. The error code is the following:
>
> [helpstring("%o is not in a connectible position")]
> E_MGA_NOT_CONNECTIBLE = 0x87650146,
>
> I know for sure that the connection that I am trying to make is legal as
> per the
> meta. Any thoughts on this, any one encountered this situation before?
>
> Pl. do le me know.
>
> Thanks,
>
> Sandeep
>
More information about the gme-users
mailing list