Teamcenter Relation objects are created to relate two objects. It connects the primary business object and secondary business object through relation property. Relations are widely used in Teamcenter.
Out of the Box Teamcenter provides various relation objects to relate objects. Always we can create new relations through BMIDE under ImanRelation business object.
ImanRelation B.O |
Steps to create new relation
- Open BMIDE and load the custom template.
- Search for ImanRelation in Business object tab.
- Right click ImanRelation -> New Business Object.
- Type in the Name (real name) and Display Name (This name will be shown to end user for pseudo folder name).
Relation creation window |
- Click Finish to create the relation object
- Next step is to add the relation object to the Primary business object for which you want to relate secondary object with this new relation.
- Open the primary business object in BMIDE.
- Go to Properties tab and click Add button to create property.
- In New Property window, select Relation property and click Next.
- In Relation property tab, browse and select the new relation object created in above steps. Click Finish
Relation property on Primary B.O |
- Now the relation property will be added to the selected primary business object.
- Deploy the template and test the changes in Teamcenter.
- To test, create the primary object in Teamcenter and add any object using the custom relation created.
- Copy the secondary object.
- Select the primary object where relation property is created.
- Select Edit->Paste Special and in Add as window, select the custom relation property.
- Secondary object will now be related to primary object with the custom relation.
- Refer below section to configure to view secondary object under primary.
Teamcenter Preferences to see related objects and pseudo folder
By default, Teamcenter does not display the secondary objects related to primary object. This is because we have added with new relation which Teamcenter is not configured for. Teamcenter preference has to be created for this.
Option 1:
- Open My Teamcenter -> Edit -> Options
- In Options, under General -> Item Revision.
- In Right panel, select the primary business object in "Items revision type selected" field.
- Add the custom relation from Available relations to Shown Relations.
- Click Apply. This should display the related objects with our relation
- Go to Related Object panel.
- Select the primary business object in "Items revision type selected" field.
- Add the custom relation from Available relations to Shown Relations.
- Click Apply. This should show the related objects under relation pseudo folder.
Option 2:
- Open My Teamcenter -> Edit -> Options
- In Options, under Filter -> Create a new preference (top left).
- Preference 1: Default child properties for showing related secondary objects
- Name : <PrimaryBusinessObject>_DefaultChildProperties
- Category: Can be any existing category
- Protection: User
- Location: Site
- Type: String
- Multiple: Multiple
- Value: Add the custom relation name (Real name as in BMIDE)
Preference for Child Properties |
- Preference 2: To show relation as pseudo folder under primary business object.
- Name : <PrimaryBusinessObject>_PsuedoFolder
- Category: Can be any existing category
- Protection: User
- Location: Site
- Type: String
- Multiple: Multiple
- Value: Add the custom relation name (Real name as in BMIDE)
Note: Will write a separate blog on how to use preferences, what are the options available, etc
Option 1 will internally create the preferences (as in Option 2). Preferences once created, can be exported and imported into other environments.
Note: Business rules, GRM Rules and Deep copy rules can be created for relation object with custom rules based on business process. Will write a separate blog explaining the business rules.
Related topics:
Teamcenter Item Business Object (Item Data Model)
Types of Properties in Teamcenter
Comments
Post a Comment
Share your feedback