Object-oriented tool for substation design