Mirror Entities Example (JavaScript)

This example creates a sketch that resembles a tee shirt by inserting and mirroring sketch entities.
  1. Start DraftSight.
  2. Using the following form:
    1. Select the size of the tee shirt in Size.
    2. Specify where to place the tee shirt:
      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 tee shirt at that point.

        The tee shirt is shown and zoomed to fit.
         
  3. Examine the drawing.

NOTES:

  • The width, height, and the point where the tee shirt was placed are printed to Output. Errors are also 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.

Size:
 
Coordinates      
    X: Y: Z:
 
Point in drawing
 

Output