.. # split from OEBioFunctions.rst:363

.. include:: ../substitutions

.. oe:namespace:: OEBio

.. meta::
   :keywords: OEGetSpaceGroup

.. oe:function:: OEGetSpaceGroup

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEGetSpaceGroup(std::string& ccp4Name, unsigned int sgnumber,
                              bool shortname = false)

   .. oe:language:: python

      .. oe:api:: python

         OEGetSpaceGroup(sgnumber: int, shortname: bool = False) -> str

   Assigns the standard CCP4 spacegroup name referenced by
   sgnumber to spacegroup. If 'shortname' is ``true`` then the standard
   shortened name for the spacegroup is assigned. This function
   returns ``false`` if 'sgnumber' does not reference a valid space group.

