1 Reply Latest reply on Dec 21, 2009 2:13 AM by Andre

    Get new component object after replacement

    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