Create Table Example (JS)

# Create Table Example (JavaScript)

This example shows how to change the transparency of the active Layer, create a TableStyle and Table, and change the background colors of the top row and a cell in the Table. Start DraftSight. Using the following form, type: X coordinate for the upper-left corner of the Table. Y coordinate for the upper-left corner of the Table. number of rows for the Table. number of columns for the Table. Click Create Table. Examine the drawing document and Output. NOTES: Errors are printed to Output. To recreate this example: Right-click the topic and select to view the source. Save the file as an HTML file. Open the HTML file in your web browser. If using Windows Internet Explorer and running scripts is blocked, click Allow Blocked Content on the information bar.
Coordinates for upper-left corner:
X: Y:
Number of rows and columns:
Rows: Columns:
### Output