This topic shows how to create a Project Template and install it to be used for other Projects and users.
A Project Template has the file extension of .driveprot
Ensure the Source Root Folder is high enough in the folder structure that it encompasses all relevant files and folders.
This will ensure that all necessary files with their correct references will be included in the template.
For example the image below shows Project A as the Project to be used as a template.
This is located as a sub folder of a Projects folder, which is a sub folder of the Source Root Folder.
This Source Root Folder is high enough in the folder structure to encompass all required folders.
Copy the XML below into this file.
Change the text Project Template to be the name required to be displayed in the template chooser.
Save and close.
<?xml version="1.0" encoding="UTF-8"?> <template DisplayName="Project Template" />
Copy the html below into this file.
Change the text Project Template and Project Template Description to be the text required to be displayed when the template is selected in the template chooser.
Save and close.
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>Project Template Title</title> <style type="text/css"> html { font-family: 'Segoe UI', Verdana, Arial; font-size: 12px; } h1 { color: #3f5f7f; font-size: 12px; } </style> </head> <body> <h1>Project Template</h1> <p>Project Template Description</p> </body> </html>
Images can be included in the index.html file by encoding them to base64.
Use a Web Service such as Base64 Image to convert an image to base64.
Once you have the base64 code of the image:
<body> <h1>Project Template</h1> <p>Project Template Description</p> <img src="INSERT BASE64 HERE" /> </body>
Ensure the quotes around the base64 code are included.
If a template is not displaying in DriveWorks after being installed check that the installer or version of DriveWorks is the one you are currently using as templates are version specific.
If there is an error in the templates data it will not display.
To uninstall a Project Template please follow the steps below:
The deleted Project Template will be removed.