Version: Windchill 12.1
Use Case: Comparing values between an WTpart attribute and a WTpartUsageLink attribute, in a BuisnessAlgorithm - to use on a calculated value on WTpartUsageLink.
Description:
Following this procedure: Procedure – Using a BusinessAlgorithm in a Calculated Attribute togehter with this knowledge base: New java algorithm for calculated attributes (BusinessAlgorithm) starting Windchill 11.0
We have a calculated value on a WTpartUsageLink. This should compare an attribute from the WTpartUsageLink and the WTpart that it is linked to. The attribute from the WTpartUsageLink can be passed as a variable in the execute statement, but I have a hard time referencing the attribute from the WTpart.
Sample code or a pointer for referencing an attribute in this use case would be very helpfull.
How about using alias attributes mapping to get the info between parts and usagelinks
https://www.ptc.com/en/support/article/CS245103
Hello @JM_12529808,
It looks like you have a response from a community expert. If it helped you solve your question please mark the reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Vivek N.
Community Moderation Team.
