Set and Get System Files Example (JavaScript)

This example shows how to set and get the paths and file names of DraftSight system files.
  1. Start DraftSight.
  2. Using the following form, type the path to the search location for:
    1. Font file in Font path.
    2. Add-in applications, area Hatch patterns, customization files, drawing files, fonts, or LineStyles in Support path.
  3. Click Set.
  4. Examine the Output field in the form to see the paths and files name of DraftSight system files.

NOTES:

  • Errors are also printed to Output.
  • To recreate this example:
  1. Right-click the topic and select to view the source.
  2. Save the file as an HTML file.
  3. Open the HTML file in your web browser.
  4. If using Windows Internet Explorer and running scripts is blocked, click the Information bar near the top of the webpage and select Allow Blocked Content.

Font path:
Support path:

Output