# Creating a Model File Entity and Exporting It to a Physical File

This section describes how to initiate the process of creating a model file and how to export that data to a physical file.

## Create a File That Contains the PRC Data

    A3DAsmModelFile* pModelFile = createModelFile();

Create the model file entity. (See Creating PRC Entities.)

Save the contents of the model file to a physical file by invoking the `A3DAsmModelFileWriteToFile()` function.

    if (p != NULL) {
      if (_access(pcPRCName, 00) != -1)
        _unlink(pcPRCName);
      A3DInt32 iRet = A3DAsmModelFileWriteToFile(p, NULL, pcPRCName);

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...