Delete repeated views in beam section

good afternoon friends,
I want to work on a project where I can section a beam into three parts (section views) and in those cuts check both upper and lower if the placed Rebar is repeated. if the steel repeats, want to remove some view cuts so I have less section views on my plans. I await your opinions.

Typically folks will post thier Graphs and indicate where they are having issues, not just ask for a solution.

Thanks for your kind reply friend.
I attached an image for better understanding.

I want to work on a project where I can section a beam into three parts (section views) and in those cuts check both upper and lower if the placed Rebar is repeated. if the steel repeats, want to remove some view cuts so I have less section views on my plans. I await your opinions.

any idea how you would do it?
I need an opinion in a global way to start developing this script