# A3DAsmModelFileLoadFromFile

A3DStatus `A3DAsmModelFileLoadFromFile`(const A3DUTF8Char *pcFileName, const A3DRWParamsLoadData *pLoadParametersData, A3DAsmModelFile **ppModelFile)
  `A3DStatus` A3DAsmModelFileLoadFromFile(const `A3DUTF8Char`* pcFileName, const `A3DRWParamsLoadData`* pLoadParametersData, `A3DAsmModelFile`** ppModelFile)

  Load an `A3DAsmModelFile`from a physical file, returning a handle to the new model file.

  Successfully calling this function will always create a new model file, even if the call is made several times with the same input path. Once loaded, a handle to the new model file is stored in `ppModelFile`and you can query its content with `A3DAsmModelFileGet`.

      A3DRWParamsLoadDataparameters=A3D_MAKE_DATA(A3DRWParamsLoadData);
      A3DAsmModelFile*model_file=A3D_NULL_HANDLE;

      A3DStatusresult=A3DAsmModelFileLoadFromFile(
      "/path/to/file.stl",&parameters,&model_file
      );

      assert(result==A3D_SUCCESS);
      assert(model_file!=0);

  Parameters

  > pcFileName: The system path to the input file. Must be a valid UTF-8 string.

  > pLoadParametersData: A set of options used to customize the behaviour of the loading.

  > ppModelFile: A pointer to the handle of the new model file, in case of success.

  Returns

  > `A3D_SUCCESS`or an error code in case of failure.

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