AnsweredAssumed Answered

Get new component object after replacement

Question asked by Andre on Dec 18, 2009
Latest reply on Dec 21, 2009 by Andre

Hi,

 

after changing a component with

 

comp.selected = true

comp.Parent.ChangeComponentPreserveRefdes "< Selected Components >", NewName

 

the comp object is no longer valid, i.e. accessing it will generate an iCDB exception.

 

However it is crucial to keep attributes from block level, i.e. we need to save and restore them after component change.

 

Is there a reasonable way to get hold of that new object ?

 

 

Regards,

Andre

Outcomes