Create Rectangular Viewport Example (JavaScript)

This example shows how to create a rectangular Viewport.
  1. Start DraftSight and open a drawing.
  2. Click Create Viewport.

    A Viewport is created in the lower-left corner of Sheet2.
     
  3. Locate the Viewport on Sheet2 in the DraftSight drawing.

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 webpage and select Allow Blocked Content.

Output