Skip to main content
12-Amethyst
February 1, 2024
Solved

Copy attributes from WTPart to WTDocument?

  • February 1, 2024
  • 2 replies
  • 2654 views

Hello,

 

I am populating some attributes from CAD to WTPart using Parameters. I want those attributes to be populated to associated WTDocuments as well. Looking for the best solution to achieve the same, please pour your ideas.

 

Thanks,

HS

Best answer by HR_10750679

Alias attribute did come to the rescue, achieved my requirement by using the below mapping.

 

describedBy@wt.part.WTPartDescribeLink~describes^wt.xx.PartSubtype~dummy.attributeInternameName

 

I am still investigating the proper use and impacts of using Alias attribute, but the copying of attribute does work with the above mapping. 

2 replies

16-Pearl
February 1, 2024

This is certainly possible through customization. 

 

Create a check-in listener and upon check-in push those attributes from WTPart to WTDocument.

 

Regards

Ajit

12-Amethyst
February 1, 2024

Thank you for the response, @Ajit_Kulkarni . I am hesitant to go into customization, I am trying to implement this via configurations itself.

16-Pearl
February 1, 2024

I am also would like to know if any such configuration is available. 

 

In case you need customization this will help. https://community.ptc.com/t5/Windchill/getting-iba-value-from-wtpart-and-setting-wtdocument-iba-via/td-p/585885 

joe_morton
18-Opal
18-Opal
February 1, 2024

Can you describe your use case a little more?

We have some workflows where we copy attributes from one object to another. It's not a full customization, but code written into a robot in the workflow.

 

Just did some searching through the Support page.. We've never used Alias Attributes, but it might be just what you're looking for:

Alias Attribute Mapping

 

HR_1075067912-AmethystAuthorAnswer
12-Amethyst
February 2, 2024

Alias attribute did come to the rescue, achieved my requirement by using the below mapping.

 

describedBy@wt.part.WTPartDescribeLink~describes^wt.xx.PartSubtype~dummy.attributeInternameName

 

I am still investigating the proper use and impacts of using Alias attribute, but the copying of attribute does work with the above mapping. 

avillanueva
23-Emerald I
23-Emerald I
February 2, 2024

Completely forgot about alias attributes. Yes, that would work assuming 1:1. If doc is linked to many Parts, it might not be what you want.