Skip to main content
8-Gravel
August 7, 2025
Solved

Create WTPartDescribeLink and set attribute value

  • August 7, 2025
  • 3 replies
  • 450 views

Version: Windchill 13.0

 

Use Case: To set attribute value for a WTPartDescribeLink after creating it


Description:

Hi all, I'm trying to set an attribute value for WTPartDescribeLink after creating it but If I try to set after creating it I get ModificationNotAllowed exception even when done within a transaction. The requirement is to create the link and set the attribute value without iterating. Is it mandatory to checkout the persistable before modifying the attribute value?

Best answer by HelesicPetr

Hi @VM_13704617 

If you can, set the attribute to a link before you store it in the database.

 

If you can not do it, then you have to iterate the parent. 

If you need to update the link without iteration, then it is possible, but it is not easy as you think and in some case it is a know-how of some developers.

 

check following thread that could apply for the link attribute

How to update IBA String values on a Part without iterating

.  

PetrH

3 replies

Fadel
23-Emerald I
August 8, 2025

When modifying a link attribute the parent is iterated ,the current state is kept and the new link info is persisted on the new iteration .

The correct way is checkout parent modify link and check-in parent .

Buiꓘa
HelesicPetr
22-Sapphire II
22-Sapphire II
August 12, 2025

Hi @VM_13704617 

If you can, set the attribute to a link before you store it in the database.

 

If you can not do it, then you have to iterate the parent. 

If you need to update the link without iteration, then it is possible, but it is not easy as you think and in some case it is a know-how of some developers.

 

check following thread that could apply for the link attribute

How to update IBA String values on a Part without iterating

.  

PetrH

PetrH
Community Manager
September 30, 2025

Hi @VM_13704617,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag