Get DimensionStyle Names and Options Example (JS)

# Get DimensionStyle Names and Options Example (JavaScript)

This example shows how to get the names and options of the DimensionStyles in the document and how to export the current view of the drawing to a PNG file. Start DraftSight. Click Get DimensionStyles. Examine the Output window. Navigate to C:\ProgramFiles\Dassault Systemes\DraftSight\Examples to verify that the drawing document was exported to B-44563.PNG. 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 the Information bar near the top of the webpage and select Allow Blocked Content.
### Output