Rename the virtual component in Assembly design tree

Hey Guys,

Using the attached macro to rename the component, why it doesn't work on the virtual one?

using the swComp.Name2= NewName method to do , pls help to check attached macro, video and parts to know about my issue.

regards

Vincent

SolidworksApi macros