GiD_Info bounding_box ?point|line|surface|volume <entity_id>?

This command returns a list {x_min x_max y_min y_max z_min z_max} of the bounding box that contains the visualized model with the current settings (on layers).

It also could return the bounding box of a geometric entity, specified by its category and <entity_id>.