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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

Create WTPartDescribeLink and set attribute value

VM_13704617
7-Bedrock

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?

3 REPLIES 3
Fadel
23-Emerald I
(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

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

Announcements
Top Tags