Create Model and Sheet Views Example (JavaScript)

This example shows how to create a model view or a sheet view.
  1. Start DraftSight.
  2. Using the following form:
    1. Select Create a model view.
      1. Type double values for the coordinates of a corner of a model view.
      2. Type double values for the coordinates of the opposite corner of the model view.
      3. Type the model view name.
      4. Type the category of the new model view.
      5. Type a save name for the current model view.
      6. Type a save category for the current model view.
    2. Activate the model space in DraftSight.
    3. Click Create View.
        - or -
    1. Select Create a sheet view.
      1. Type double values for the coordinates of a corner of a sheet view.
      2. Type double values for the coordinates of the opposite corner of the sheet view.
      3. Type the sheet view name.
      4. Type the category of the new sheet view.
      5. Type a save name of the current sheet view.
      6. Type a save category for the current sheet view.
    2. Activate the sheet space in DraftSight.
    3. Click Create View.
  3. Click View > Named Views in the model or sheet space and inspect View names.

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.

 
Create a model view
    Coordinates of view corner:  X: Y: Z:
    Coordinates of opposite view corner: X: Y: Z:
    Name:
    Category:
    Save as name:  

    Save as category:

Create a sheet view
    Coordinates of view corner: X: Y: Z:
    Coordinates of opposite view corner: X: Y: Z:
    Name:
    Category:
    Save as name:

     Save as category:

Output