Alternately placed rebars and alternately reversed rebars

Can anyone be able to write a script that reads the quantity in multirebar tags that annotate rebars placed alternately (eg 15+17), adds the quantities in the tags (to give 32), and also reads the spacing (200) and divides by two (to get 100) to give one tag with the total quantities with half the spacing.

I want to convert 15Y1216-200B1 + 17Y1212-200B1 into a single tag that reads 39Y1212-100B1 since it is just the same bar that has been reversed in direction.

1 Like