Skip to main content
10-Marble
June 21, 2024
Solved

Alias attribute IBA from component to top-level Part

  • June 21, 2024
  • 1 reply
  • 1196 views

Hello,

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.17

I want to add an alias attribute on the WTPartUsageLink to retrieve the value of a component attribute on a structure.
So I created an attribute on the WTPartUsageLink type with the mapping "uses@wt.part.WTPartMaster~masterReference^<Internal name of part type>~<Internal name of attribute>"
It works fine and I can see it in the structure, see the attachment.
But there's a problem because when there are several iterations of a component, there are several PartUsageLinks and the alias retrieves the same values several times, see the attachment.
Do you have a solution for this and what alias should be used?
Otherwise, the primary objective is to bring up the value of a component attribute to fill an attribute on the top-level part.
For example, if the value of an attribute is set to yes, the top-level part must have an attribute that is also set to yes.(even if there are several yes if several components are with a yes)

Thanks in advance,

Best answer by HelesicPetr

Hi @EMonet 

There is not simple solution. The alias attributes work this way. The link between child and parent is not exactly version to version and some logic is necessary to use.. For example Latest, Released, etc. 

You could use additional trick with calculated attribute and substring the alias attribute. 

https://support.ptc.com/help/windchill/r13.0.1.0/en/#page/Windchill_Help_Center/customization/WCCG_BusLogicCust_TypeManager_CalculatedAttribute_Procedure.html#

 

Or use own custom datautility to show the value in the attribute where you write a code that shows the latest information. 

 

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
June 21, 2024

Hi @EMonet 

There is not simple solution. The alias attributes work this way. The link between child and parent is not exactly version to version and some logic is necessary to use.. For example Latest, Released, etc. 

You could use additional trick with calculated attribute and substring the alias attribute. 

https://support.ptc.com/help/windchill/r13.0.1.0/en/#page/Windchill_Help_Center/customization/WCCG_BusLogicCust_TypeManager_CalculatedAttribute_Procedure.html#

 

Or use own custom datautility to show the value in the attribute where you write a code that shows the latest information. 

 

PetrH

PetrH
EMonet10-MarbleAuthor
10-Marble
June 25, 2024

Hi @HelesicPetr,

Thank you for your reply, it works.
I used a calculated attribute and a business algorithm that retrieves the attribute values of all the components, and works on the results (concatenate, delete duplicate, etc.). Derivated from AbstractCarambolaAttributeSumBusinessAlgorithm.java

Regards,

12-Amethyst
December 16, 2025

Hi Emonet

 

I facing a very similar issue, would you mind sharing you buisness algorithm implementation - I have a hard time figuring out to retrieve the data I need. 

 

Thanks

Jakob