Evaluation Version Limitations
A free evaluation version of Aspose.3D for .NET can be downloaded from the downloads section of Aspose’s website at: Download Aspose.3D API.
The evaluation version provides all the features except the following:
- Users can only open/import maximum of 50 3D documents to a Scene.
- Each node can have no more than 5 child nodes.
- Each node can have no more than 2 attached entities.
- Each geometry can have no more than 2 attached vertex elements.
- Each node can have no more than 1 material.
- Users can only save a maximum of 50 3D documents to a Scene.
- Users will also see an evaluation watermark in the rendered images and all other output files.
Apply License using File or Stream Object
- Explicit path.
- The folder that contains Aspose.3D.dll.
- The folder that contains the assembly that called Aspose.3D.dll.
- The folder that contains the entry assembly (your .exe).
- An embedded resource in the assembly that called Aspose.3D.dll.
The easiest way to set a license is to put the license file in the same folder as the Aspose.3D.dll file and specify the file name, without a path, as shown in the example below.
Loading a License from File
The easiest way to apply a license is to put the license file in the same folder as the Aspose.3D.dll file and specify just the file name without a path.
Loading a License from a Stream Object
The following example shows how to load a license from a stream.
Apply License using Embedded Resource
One way of applying a license is to set it using a file or stream object. Another neat way of packaging the license with your application and making sure it will not be lost is to include it as an embedded resource into one of the assemblies that calls the component’s DLL (included in Aspose.3D).
To include the license file as an embedded resource:
- In Visual Studio .NET, include the license (.lic) file into the project by selecting File, then Add Existing Item and finally Add.
- Select the file in the Solution Explorer.
- Set the Build Action to Embedded Resource in the Properties window.
- To access the license embedded in the assembly (as an embedded resource), just add the license file as an embedded resource to the project and pass the name of the license file to the SetLicense method. The License class automatically finds the license file in the embedded resources. There’s no need to call the GetExecutingAssembly and GetManifestResourceStream methods of the System.Reflection.Assembly class in the Microsoft .NET Framework.
The following code snippet is used to set the license.
Apply Metered License
Aspose.3D for .NET API allows developers to apply metered license. It is a new licensing mechanism. The new licensing mechanism will be used along with existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing. For more details, please refer to Metered Licensing FAQ section.
A new class Metered has been added to apply metered key. This code example demonstrates how to set metered public and private keys: