Rename a particular part in pack and go api?

Is it Possible to rename a particular part (Contains string) while doing pack and go through API?

Thanks

SolidworksApi macros