DriveWorks Live can run directly as an application or as a service through Internet Information Services (IIS) v10 or later (requires Windows 10 or Windows Server 2016 operating systems or later).
See IIS Connection Limit on Windows 10 for more information.
The advantages of using IIS include:
Dynamic Compression means faster load times for DriveWorks User Forms that display dynamic content (Pictures, DriveWorks 3D Files etc.) on the Client browser.
This means that care must be taken when setting up credentials in IIS but has the benefit that the machine does not require to be logged on to run the application.
This article explains how to set up IIS so DriveWorks Live can be accessed without having to run the application.
Ensure Internet Information Services (IIS) is installed on the machine that will be the web server.
Please see How To: Install Internet Information Services (IIS) for more information.
Run DriveWorks Live (the application) on the Server machine before attempting to run through IIS
This includes the following steps:
This can be done either by:
Launching DriveWorks Live and connecting to the license server, once the Licensing wizard appears.
Please see Licensing DriveWorks Live for more information.
Or
Please see How To: License DriveWorks Live Using Environment Variables for more information.
To run DriveWorks Live through IIS, your Project should not use any mapped network drives. Mapped network drives are user specific, therefore it is much harder to ensure that the user you set up in IIS can access them.
All network locations should therefore be specified using a UNC (Uniform Naming Convention) path, for example:
\\< ServerName>\< ShareName>\ProjectFile.
Paths that should be specified using UNC include:
Windows Services do not have access to many applications, especially COM programs such as Microsoft Word and Excel.
Ensure any Specification Tasks that require Microsoft Word and Excel are placed in the:
This will allow these Tasks to be run by DriveWorks Autopilot and not DriveWorks Live (which it will not be able to do when running as a service through IIS).
The Specification Tasks this applies to include:
The image below explains which modules of DriveWorks will process data when the ReleaseDocuments task is placed on the two event types.
To maximize performance and for the best user experience, we recommend that as much processing as possible happens when in an Automatic state (Since the processing will be performed by DriveWorks Autopilot).
All DriveWorks plugins used must be installed locally on the machine hosting IIS.
Network located plugins will not run through IIS.
Launch Internet Information Services (IIS) Manager.
This can be found by launching the Control Panel (from the Windows Start Button), selecting System and Security, then select Administrative Tools and then double clicking Internet Information Services (IIS) Manager.
If the module is not shown, follow the steps below:
The Integration Theme consumes the Integration Theme RESTful API, it is best practice to set this up on its own endpoint and secure with HTTPS.
Follow the steps below to add the site to the IIS Manager.
Launch Internet Information Services (IIS) Manager.
This can be found by launching the Control Panel (from the Windows Start Button), selecting System and Security, then select Administrative Tools and then double clicking Internet Information Services (IIS) Manager.
From the connections pane, expand the computer name link and select the Sites node.
Right click on the Sites link and select Add Website.
This name identifies the site in the IIS Manager only, it does not appear externally, although it is good practice to use the same name as your site (for instance api.driveworkslive.com).
This will usually be the following location:
Integration Theme - %ProgramData%\DriveWorks\[version number]\Live\Themes\Integration
For testing purposes, the built in self-signed certificate can be used.
For production, we strongly recommend a SSL certificate from a trusted certificate authority.
From the IIS Manager, select Application Pools from the Connections panel.
A new application pool has been added for the new website previously created.
From the Application Pools list, right click the site that was added above and choose Advanced Settings.
From the Advanced Settings dialog:
From the .NET CLR Version drop down select No Managed Code
Identity Setting
From the Identity setting, check the Identity the service is to run under is correct.
This should be a valid Windows User account that does not have administrative privilege's.
This avoids potential security risks for certain DriveWorks Live features that require IIS to access the WebView runtime application.
If the Identity is correct, click OK and proceed to Step 6.
If the Identity requires to be changed:
Ensure Anonymous Authentication is enabled and other forms of Authentication are Disabled.
There are many ways to secure the API endpoint, Anonymous allows DriveWorks to manage the security of the endpoint.
Other types of Authentication can be enabled to add an extra layers of protection.
For example, Basic Authentication would require the client to send a basic authorization header with any API requests to the endpoint.
The group not found message should be returned.
Please ensure no SSL certificate warnings are received at this point.
When using DriveWorks 3D in the 3D Preview control we recommend enabling JSON compression in IIS.
By default IIS does not include JSON in the standard compression methods, which DriveWorks 3D files use.
The IIS settings can be modified to compress JSON with the following method:
Please follow the information in the topic Integration Theme Settings to configure further settings.
This is only required if your Projects use the Upload Control.
Visit Public Integration Theme Demo sites for more information on sites hosted in the Integration Theme.
This collection of example sites is another great way to get started.
Each example is freely customizable and ready to use with your existing DriveWorks Projects.
These are enabled by selecting "Copy Client SDK Examples to this folder" during the Theme Configuration setup process.
The following is a instruction set in getting started with the Integration theme quickly.
Please ensure that an appropriate code editor is installed, as this will be needed to make changes to the site.
Visual Studio code is a free application that can be downloaded from Microsoft.
These sites are designed to be copied out and hosted on another server acting as the Integration Theme client (not hosted by DriveWorks Live).
The Integration Theme landing page should not be used to host a production website - only to preview the funcionality demonstrated.
See Also: