cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Translate the entire conversation x

Getting attribute on WTpart from WTpartUsageLink in a BuisnessAlgorithm

JM_12529808
12-Amethyst

Getting attribute on WTpart from WTpartUsageLink in a BuisnessAlgorithm

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. 

2 REPLIES 2
Fadel
23-Emerald I
(To:JM_12529808)

How about using alias attributes mapping to get the info between parts and usagelinks 

https://www.ptc.com/en/support/article/CS245103 

Fede

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.

Announcements
Top Tags