Insert Shapes Example (JavaScript)

This example loads a shape file and inserts shapes in the drawing. 
  1. Start DraftSight.
  2. Click Load and Insert to load a shape file and insert shapes in the drawing.
  3. LTypeShp.shx is loaded, and the shapes within this file are inserted at the origin of the drawing at a 30 obliquing angle.
  4. 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, allow blocked content.

Output