HTML JPG PDF XML 3MF
Aspose.3D  for .NET
3MF

3MF File Viewer for .NET

Render 3MF files without any 3D modeling and rendering software.

How to View 3MF File Using C#

In order to view 3MF file, we’ll use

Aspose.3D for .NET

API which is a feature-rich, powerful and easy to use API for C# platform to be used with any Viewer. Open

NuGet

package manager, search for Aspose.3D and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command


PM> Install-Package Aspose.3D

Steps to View 3MF via C#

Aspose.3D makes it easy for the developers to view the 3MF file with just few lines of code.

  1. Load 3MF file via the constructor of Scene class
  2. Create an instance of Html5SaveOptions
  3. Set properties for advanced formatting
  4. Call the Scene.Save method with object of Html5SaveOptions
  5. Check resultant HTML file in default browser

System Requirements

Aspose.3D for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Mono
  • Development environment like Microsoft Visual Studio
  • Aspose.3D for .NET referenced in your project
 

C# code to view 3MF


string output = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".html";

// load 3MF scene via an instance of Scene
var scene = new ThreeD.Scene("template.3mf");
// create an object of Html5SaveOptions and set properties for formatting
var options = new ThreeD.Formats.Html5SaveOptions()
{
    // turn off the grid
    ShowGrid = false,
    // turn off the user interface
    ShowUI = false
};

// save 3D scene as HTML5
scene.Save(output, options);
// load resultant HTML in default browser
System.Diagnostics.Process.Start(output);
 
  • About Aspose.3D for .NET API

    Aspose.3D is a CAD and Gameware API to load, modify and convert 3D files. API is a standalone and does not require any any 3D modeling or rendering software. One can easily use API for Discreet3DS, WavefrontOBJ, STL (ASCII, Binary), Universal3D, FBX (ASCII, Binary), Collada, glTF, PLY, GLB, DirectX and more formats.

    Free App to View 3MF

    Other Supported Viewer Formats

    Using C#, One can also view many other file formats including.

    3DS (3D Studio DOS Mesh)
    AMF (Additive Manufacturing Format)
    ASE (2D Animation File)
    DAE (Digital Asset Exchange)
    DXF (Drawing Interchange Format)
    FBX (3D Format)
    GLB (3D File Binary Representation)
    GLTF (GL Transmission Format)
    JT (Jupiter Tessellation File)
    OBJ (3D File Format)
    PLY (Polygon File Format)
    RVM (AVEVA Plant Design Model)
    STL (Interchangeable 3D Surface Geometry)
    U3D (Universal 3D)
    VRML (Virtual Reality Modeling Language)
    X (DirectX Model Image)
    ZIP (ZIP Archiving Format)