Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
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,
Solved! Go to Solution.
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.
Or use own custom datautility to show the value in the attribute where you write a code that shows the latest information.
PetrH
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.
Or use own custom datautility to show the value in the attribute where you write a code that shows the latest information.
PetrH
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,