Hello! Mr. kbhow, Thanks to your concern towards my problem.
I know how to merge shapes with their shape Ids.
It is my intention to merge shapes using their bBox's.
Actually, I am writing a code which will calculate the area of a desired layer in a layout with out flattening.
For this purpose I found some of the codes in sourcelink which will give me a set of bBoxes for instances/mosaics.
I have succeeded in getting the desired layer bBoxes. Now I have to merge these bBox coordinates in order to complete my intention.
I hope you are understanding my problem.
Thanks & Regards