Tutorials

 
 
 

The AutoCAD JavaScript tutorials explain how you can leverage JavaScript and HTML5 to perform basic tasks in AutoCAD.

The tutorial assumes that you have the following software installed on your system before you begin:

  • To Capture an Image Preview

    The AutoCAD JavaScript tutorial demonstrates how you can implement a simple palette in AutoCAD using JavaScript and HTML5 for capturing an image preview.

  • To Set a System Variable Value

    The AutoCAD JavaScript tutorial demonstrates how you can set a value for any system variable in AutoCAD using JavaScript.

  • To Implement an AutoCAD Palette

    The AutoCAD JavaScript tutorial demonstrates how you can implement a simple palette-based user interface using JavaScript and HTML5 to perform tasks like drawing a transient rectangle or circle in AutoCAD.

  • To Zoom in to an AutoCAD Entity

    The AutoCAD JavaScript API tutorial demonstrates how you can implement a command in AutoCAD to zoom to the extents of a selected entity.

  • To Create a Rectangle

    The AutoCAD JavaScript tutorial demonstrates how you can use the JavaScript function and execute the AutoCAD RECTANG command to create a rectangular polyline.

  • To Create a Custom Command

    The AutoCAD JavaScript tutorial demonstrates how you can create a custom command using the addCommand JavaScript API.