Insert Embedded Object Example (JavaScript)

Embeds a file object in a DraftSight drawing.
  1. Start DraftSight.
  2. Using the following form:
    1. Type the full path and name of the file to embed in the drawing.
    2. Click Run Macro.
  3. Inspect the drawing and the Output.

NOTES:

  • Errors are 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 web page and select Allow Blocked Content.

 File to embed:

Output