Cancel
Showing results for 
Search instead for 
Did you mean: 

Create Bi directional relation in Teamcenter 11.2.3

Valued Contributor
Valued Contributor

Hi,

 

I have below scenario where user connects 

DrawingRevision (Primary) ------> DesignRevision (Secondary) with Relation1.

 

When Relation1 is  created I want to automate the creation of Relation2 from DesignRevision (primary)-----> DrawingRevision (Secondary).

 

This is reauired in order to find the related DrawingRevision from DesignRevision.

 

 

I know it is possible to Add on extension on relation1 to Automate creation of Realtion2.

 

Is there any OOTB way to auto mate creation of Relation2?

 

 

 

9 REPLIES

Re: Create Bi directional relation in Teamcenter 11.2.3

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hello,

 

I don't think it is possible OOTB way. Customization will be required.

 

A suggestion:

I think you could get away defining only 1 relation and use runtime properties (on other object) to show its relation with the primary object.

 

Harish

Re: Create Bi directional relation in Teamcenter 11.2.3

Valued Contributor
Valued Contributor

Hi Harish,

 

Thanks for reply. 

 

Runtime property causes performance issues and thats why we are moving towards bi directional relation.

 

Re: Create Bi directional relation in Teamcenter 11.2.3

Creator
Creator

Hi joisbalu,

 

I actually need to implement the same kind of relation.

Let me know if you found something interresting for the bi-directional relation implementation using extension?

 

Regards

 

 

Re: Create Bi directional relation in Teamcenter 11.2.3

Valued Contributor
Valued Contributor

Hi,

 

I have added an extension on GRM_create of primary relation to create secondary relation automatically. If you are not using these revisions in BOM then you can explore the possibility of having a run time attribute on secondary to hold primary revision.

Re: Create Bi directional relation in Teamcenter 11.2.3

Creator
Creator

Hi,

 

Thanks for your fast reply!

I had created the GRM_create extension and attached it as a post-action on the relation BO.

Now, I have to implement the property operation with business logic. And that is where it gets tough.

The signature of my operation looks like this:

int XYZ4_EquivalenceExt( METHOD_message_t * msg, va_list args){...}

 

Do you have any recommendation of documentation, where I can find examples besides TC C++ API reference?

Re: Create Bi directional relation in Teamcenter 11.2.3

Valued Contributor
Valued Contributor
Hi,

Sorry for late reply ,

I hope you might have implemented it already.

If not you need to define one untypedreference property on secondary and when the relation is created you need to set primary as typed reference property on secondary.

The extension on relation reaturns primary, secondary objects so you get the required tags.

Re: Create Bi directional relation in Teamcenter 11.2.3

Valued Contributor
Valued Contributor

Did you try exploring the Tracelinks functionality of Teamcenter? I believe it might work for your requirement

Re: Create Bi directional relation in Teamcenter 11.2.3

Creator
Creator

Hi joisbalu,

 

Yes, I was able to implement it, and it work well :)

I did it by

1. Creating a runtime property on the business object

2. Create a custom IMAN relation

3. Add this relation to my BO

4. Create Library + Extension in BMIDE

5. Attach the extension on the IMAN_save operation of my BO

6. Implement the library in an IDE from the files generated in BMIDE (extension =-> generate code...)

7. Create preferences for the relation

8. Copy the dll in the bin folder

 

Et voila!

 

Thanks for your help.

 

 

Re: Create Bi directional relation in Teamcenter 11.2.3

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hello Harish

 

Can you explain please, how you would solve the problem using one relation and a runtime property? I didn't found the way to do it.

 

Thanks a lot.

 

Nelson