##########
License
##########

You need a valid license to run the **UgServer** (server for RemoteModel), the **PtServer** (server for ParticleModel), the **CugComposer** (creator of ConstantRemoteModel databases) and the **Visualization Streamer Service (GRPC)**. A license can be generated in the Tech Soft 3D Developer Zone: https://developer.techsoft3d.com/
Please contact support@techsoft3d.com if you have any issues getting the license to work.

There are (at least) three ways to specify the license for the RemoteModel server:

1.  Copy the **hoops_license.h** file to the folder where the server JavaScript files are (side by side of Main.js) (server/UgServer folder).

2.  Use the CEW_TECH_SOFT_LICENSE_FILE environment variable to specify the file name and location of the **hoops_license.h** file 

3.  The license code (long string) need to be specified by calling ugServer.setLicenseCode(myCode) in server/UgServer/Main.js, as 
    described in the :doc:`Getting Started <server-remote-model>` section.


For the **PtServer**, the same license mechanisms apply:

1.  Copy the **hoops_license.h** file to the folder where the server JavaScript files are (side by side of Main.js) (server/PtServer folder).

2.  Use the CEW_TECH_SOFT_LICENSE_FILE environment variable to specify the file name and location of the **hoops_license.h** file 

3.  The license code (long string) need to be specified by calling ptServer.setLicenseCode(myCode) in server/PtServer/Main.js, as
    described in the :doc:`Server for Particle Models <server-particle-model>` section.

The PtServer does not require any additional license feature flag: the same Tech Soft 3D license used for UgServer is sufficient.


For the **CugComposer** and the **Visualization Streamer Service (GRPC)**, the license can be specified as follows:

1.  With the -license command line option specifying the full license on the command line

2.  With the -licenseFile command line option specifying the file name and location of the **hoops_license.h** file 

3.  Use the CEW_TECH_SOFT_LICENSE_FILE environment variable to specify the file name and location of the **hoops_license.h** file 


Licenses can be purchased with or without the ImportCAE option. This option provides support for additional file formats 
(see the :doc:`Supported File Formats <file-formats>` section).

The server can be run used without a license, but then only the provided demo models will work.