Insert Block, Notes, and Sketch Entities Example (JavaScript)

This example creates and inserts a Block, Notes with parameters, and sketch entities that display a compass with an arrow pointing in the selected direction in a DraftSight drawing. 
  1. Start DraftSight.
  2. Using the following form, select the direction of the arrow and create the compass:
  1. Select the direction in which to point the arrow (e.g., N, NE, E, etc.) in Direction of arrow.
  2. Specify where to create the compass:
  1. Select Coordinates.
  2. Type x, y, and z coordinates.
  3. Click Insert.
    • - or -
  1. Select Point in drawing.
  2. Click Insert.
  3. Click anywhere in the drawing to insert the compass at that point.
  1. Examine the 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.

Direction of arrow:
 
Coordinates
    X:     Y:       Z:
 
Point in drawing
 

Output