Every calculations program has its own input format and GiD is not prepared to know all these formats. The solution is one of:

The second solution is the recommended one. To do so, check the customization part in the help and check the 'problemtypes' given as a example.
To export only the mesh (not conditions, etc), it exist a standard directory /templates with some simple templates *.bas (see customization)to write the mesh in several formats: STL, VRML, NASTRAN, DXF. A user can add more user-defined templates to this directory.