.. _append-example:

###################
Append Case to VTFx
###################

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

This example opens an existing VTFx file in append mode and adds an additional case to it. 

The appended case uses the same database, and sets the following properties:

-   Part 1: draw style set to line
-   Part 2: set color and opacity

The VTFx file can now be opened in a viewer supporting multiple cases (for instance HOOPS 
Envision VTFx Viewer). It will contain two cases. The first (unchanged) case and in addition the newly 
appended case with modified draw style and opacity. 

.. literalinclude:: ../../../../../../EnvisionDesktop/Examples/VTFx/VTFxAppend/VTFxAppend.cpp
    :language: cpp
    :lines: 39-126


