Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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?
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 .
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