
#################################
A3DAsmModelFileTranslateToPkParts
#################################

.. c:function:: A3DStatus A3DAsmModelFileTranslateToPkParts(const A3DAsmModelFile *pA3DAsmModelFile, const A3DRWParamsExportParasolidData *pParamsExportData, const A3DRWParamsTranslateToPkPartsData *pParamsTranslateToPkPartsData, int *pNbPkParts, int **pPkParts)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DAsmModelFileTranslateToPkParts(*const* :c:type:`~A3DAsmModelFile`\ \* **pA3DAsmModelFile**\ , *const* :c:struct:`~A3DRWParamsExportParasolidData`\ \* **pParamsExportData**\ , *const* :c:struct:`~A3DRWParamsTranslateToPkPartsData`\ \* **pParamsTranslateToPkPartsData**\ , *int* **pNbPkParts**\ , *int* **pPkParts**\ )
   
   Writes a model file to parts in the current Parasolid session.
   
   This function writes the :c:type:`~A3DAsmModelFile` entity to parts in the current Parasolid session.
   
   
      8.1
   
   
   **Return Values**
   
   
      **\`A3D_SUCCESS\`**\ : In case of success.
   
      **\`A3D_INITIALIZE_NOT_CALLED\`**\ : if the library is not initialized.
   
      **\`A3D_INVALID_DATA_STRUCT_NULL\`**\ : if either ``pParamsExportData`` or ``pParamsTranslateToPkPartsData`` is null
   
      **\`A3D_INVALID_DATA_STRUCT_SIZE\`**\ : if either ``pParamsExportData`` or ``pParamsTranslateToPkPartsData`` is incorrectly initialized
   
      **\`A3D_INVALID_ENTITY_NULL\`**\ : if ``pA3DAsmModelFile``\ is null
   
      **\`A3D_INVALID_ENTITY_TYPE\`**\ : if ``pA3DAsmModelFile`` references an invalid entity type
   
      **A3D_PARASOLID_MEMORY_ERROR**\ : if Parasolid is out of memory
   
   
   
      8.0
   
   
   **Parameters**
   
   
      **pA3DAsmModelFile**\ : References the :c:type:`~A3DAsmModelFile` to be written out.
   
      **pParamsExportData**\ : References the parameters for export.
   
      **pParamsTranslateToPkPartsData**\ : References the parameters to export in the Parasolid session.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS`` on success, or an error code on failure
   
   




