Added a method which creates an object from a solid object in a file