DRC File Viewer for .NET
Render DRC files without any 3D modeling and rendering software.
How to View DRC File Using C#
In order to view DRC 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 DRC via C#
Aspose.3D makes it easy for the developers to view the DRC file with just few lines of code.
- Load DRC file via the constructor of Scene class
- Create an instance of Html5SaveOptions
- Set properties for advanced formatting
- Call the Scene.Save method with object of Html5SaveOptions
- 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, Windows Azure, Mono or Xamarin Platforms
- Development environment like Microsoft Visual Studio
- Aspose.3D for .NET referenced in your project
C# code to view DRC
string output = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".html";
// load DRC scene via an instance of Scene
var scene = new ThreeD.Scene("template.drc");
// 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);
Free App to View DRC
Other Supported Viewer Formats
Using C#, One can also view many other file formats including.