# A3DAsmModelFileExportToXMLFile

A3DStatus `A3DAsmModelFileExportToXMLFile`(const A3DAsmModelFile *pA3DAsmModelFile, const A3DRWParamsExportXMLData *pParamsExportData, const A3DUTF8Char *pcXMLFileName, unsigned int *uMapSize, unsigned int **puMapXmlIds, A3DEntity ***ppMapProductOccurrences)
  `A3DStatus` A3DAsmModelFileExportToXMLFile(const `A3DAsmModelFile`* pA3DAsmModelFile, const `A3DRWParamsExportXMLData`* pParamsExportData, const `A3DUTF8Char`* pcXMLFileName, unsigned int uMapSize, unsigned int puMapXmlIds, `A3DEntity`*** ppMapProductOccurrences)

  Write a model file to a physical file in XML format.

  This function writes the `A3DAsmModelFile`entity to a physical file, and fills two arrays of size uMapSize (puMapXmlId and ppMapProductOccurrences) that will act as a map of the product occurrences and their respective IDs in the XML file.

  Parameters

  > pA3DAsmModelFile: References the `A3DAsmModelFile`to be written out.

  > pParamsExportData: References the parameters for export.

  > pcXMLFileName: References the path of the file into which the function stores the model file.

  > uMapSize: Size of the two following arrays. If set to null, the map construction is bypassed.

  > puMapXmlIds: Array of the product occurrence IDs in the XML file. If set to null, the map construction is bypassed. It has to be freed with the custom free memory callback.

  > ppMapProductOccurrences: Array of the product occurrences in the XML file. If set to null, the map construction is bypassed. It has to be freed with the custom free memory callback.

  Returns

  > A3D_SUCCESS in case of success or an error code

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...