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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Translate the entire conversation x

Create WTPartDescribeLink and set attribute value

VM_13704617
6-Contributor

Create WTPartDescribeLink and set attribute value

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?

2 REPLIES 2
Fadel
22-Sapphire III
(To:VM_13704617)

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 .

Fede
HelesicPetr
22-Sapphire II
(To:VM_13704617)

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

Announcements
Top Tags