.. include:: ../../toolkit-substitutions

.. oe:namespace:: OESaiph

.. meta::
   :keywords: OERecordToDesignUnit

.. oe:function:: OERecordToDesignUnit

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

         void OERecordToDesignUnit(OEDataFlow::OERecord& rec,
                                   OEBio::OEDesignUnit& du)

   .. oe:language:: python

      .. oe:api:: python

         OERecordToDesignUnit(rec: OERecord, du: OEDesignUnit) -> None

   Takes an existing :ref:`OERecord <OEDataFlow_OERecord>` object (rec) and generates
   a new :ref:`OEDesignUnit <OEBio_OEDesignUnit>` object (DU) if an
   :ref:`OEDesignUnit <OEBio_OEDesignUnit>` :ref:`OEField <OEDataFlow_OEField>`
   is found in the :ref:`OERecord <OEDataFlow_OERecord>`.