The first rectangular geometric extrusion wasn't attached to the main object . And by the way try to use the right mouse button click and drag to top for Define dimension tool.
Sir i am not able to automatically locate the centre point of circle, midpoint of line in my software, this thing was happening automatically in my software earlier, Can u suggest something