# Use the Import CAE Component

The ImportCae component adds easy loading of simulation results from commercial CAE formats. It provides a data source for the UnstructGrid Component that can read files from commercial FEA and CFD simulation software systems. With a few lines of code you can import your model from most commercial FEA and CFD file formats.

Note

License: The ImportCae Component requires a license with this feature enabled. Please see License System for more info.

Import a CAE Model

HOOPS Envision contains readers for numerous commercial FEA and CFD file formats. These are imported using the `DataSourceCae` data source.

Add the following code to import and show a supported file:

    cee::imp::cae::DataSourceCae* source = new cee::imp::cae::DataSourceCae(datasourceId);
    cee::ug::Error error;
    if (source->open(filename, &error))
    {
        m_unstructModel = new cee::ug::UnstructGridModel();
        m_unstructModel->setDataSource(source);

        m_viewerWidget->view()->addModel(m_unstructModel.get());

        m_unstructModel->updateVisualization();
    }

The `DataSourceCae` behaves in the same way as the other data source interfaces. In addition to the `open()` function it also has an `openSecondary()` for interfaces where the data is divided into multiple files.

To get a list of all supported readers and their associated file endings programmatically, get `DataSourceCae::supportedFormats()`.

Supported formats are listed under the `CAE Import Component`.

Special Requirements for Abaqus ODB Files

The Abaqus ODB reader depends on an external set of libraries provided by a third party vendor. These libraries are found under ThirdParty/Abaqus> in the distribution.

Note

The Abaqus ODB reader can only read files from the latest version of Abaqus. If you try to open an old file, the file will be converted into a file with the name filename_upg.odb and this file will be opened. See `cee::imp::cae::DataSourceCae::open()` for more information.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

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

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
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...