.. _minimal-example:

##################
Minimal VTFx File
##################

.. image:: ../../../images/vtfx/minimal_example.png
    :height: 250px
    :align: center

This is the most basic example of a VTFx.

The minimum requirements for a VTFx file are:

-   one database with

    -   one node block
    -   one element block, referencing the node block
    -   one geometry block, referencing the element block
    -   one state info block

-   one case with a reference to the database

This example shows how to create such a minimal VTFx file with a simple part consisting
of just one hexahedron element. The VTFx file has only one state, no results of any
kind nor any properties.

.. literalinclude:: ../../../../../../EnvisionDesktop/Examples/VTFx/VTFxMinimal/VTFxMinimal.cpp
    :language: cpp
    :lines: 50-193

