(Macro / API) Cut List Name

Hi,
how can I change this Property by using a macro?

copy "partNo" and insert it to the "Zuschnitselementname" and followed (Cut List Item Name).

by when it is only one element its only the name, when there are 2 or more than use a suffix "PartNo_A" "PartNo_B"...