# Share Everywhere with VTFx Files and Envision Viewers

The Export component adds easy sharing of simulation results using the Envision VTFx format. With a few lines of code, you can export exactly what you have on the screen to a compact file that can be shown on almost any platform. You can upload the VTFx file to Ceetron Cloud and share and view it directly in the web browser on any device. You can analyze it further using HOOPS Envision Analyzer Desktop or HOOPS Envision Analyzer Cloud.

Note

Currently the Export component only works with the UnstructGrid component.

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

Export to VTFx

Add the following code to export exactly what you have on the screen to a compact VTFx.

    cee::exp::ExportVTFx exporter(cee::exp::ExportVTFx::DISPLAY_MODEL_ONLY, model);

    // Add properties from the view and the model
    {
        cee::PtrRef<cee::PropertySetCollection> propColl = new cee::PropertySetCollection;
        cee::PtrRef<cee::ImageResources> resources = new cee::ImageResources;
        cee::exp::PropertyBuilderVTFx propBuilder(propColl.get(), resources.get());
        propBuilder.addFromModel(*model);
        propBuilder.addFromView(*view);
        exporter.addProperties(*propColl);
        exporter.addResources(*resources);
    }

    // Optionally, add a thumbnail image
    {
        PtrRef<cee::vis::Image> thumbNailImg = new cee::Image;
        view->renderToImage(640, 480, thumbNailImg.get());
        exporter.setSnapshotImage(thumbNailImg.get());
    }

    exporter.setVendorNameAndApplication("MyCompany", "MyApp");

    exporter.saveCase(myFilename);

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop 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...