Skip to main content
Feb 1, 2024 4:52 PM UTC
Solved

Copy attributes from WTPart to WTDocument?

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

Feb 2, 2024 7:23 AM UTC

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. 

8 replies

Feb 1, 2024 4:57 PM UTC

This is certainly possible through customization. 

 

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

 

Regards

Ajit

Feb 1, 2024 5:01 PM UTC

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

Feb 1, 2024 5:13 PM UTC

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 

Feb 1, 2024 6:15 PM UTC

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_10750679AuthorAnswer
Feb 2, 2024 7:23 AM UTC

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. 

Feb 2, 2024 12:25 PM UTC

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.