I am in a similar situation but I will need more information than the answer provided because I'm afraid I still don't understand.
I have a server shape and an instance shape. When I drop an instance shape onto a server shape it will be assigned a minimum/maximum heap size. I want to add all the minimum and maximum heap sizes together to show minimum/maximum memory in use on the server.
Almost identical problem, really.
However; as I imagine is the case with the original post. I might have more than one Server shape on a page. How do I reference the one I dropped a shape onto? Especially as there will be a number of other shapes inbetween.
Thanks,
Ben