Dynamo script Mark numbers

Good Morning Guys
I am reaching out to see if anyone can help me create a script and i will make a list on how i want it done
1-I have a precast wall panel with an assembly name 01
2-that specific wall panel or assembly will have at least from 5 to 10 pieces 4’ by 8’ Styrofoam in it and most pieces will have cutouts in it example (doors, windows , holes) which makes them unique
3-now i want to name each Styrofoam individually and the name has to be related the wall panel Assembly name
4- I wall panel Assembly name is AR-01 then i want Styrofoam 1 to be named AR–01-1 and next one AR-01-2 and so on

Use Get parameter value by name and also SetParameterValueByName

This should be possible, but we will need to know how are the Styrofoam elements modelled?
In order to determine how many pieces of foam are in relation to each assembly, would we need to cross reference bounding box intersections?
A screenshot might be helpful

EDIT: this might be a starting point but will need editing for your specific situation:

7. This is not a β€˜do my work for me’ group

1 Like