After introducing the new JavaScript API as one of the new features in AutoCAD 2014, in the last post we looked at a simple command defined using JavaScript. In this post, we’re going to implement a simple, palette-based UI inside AutoCAD using HTML5 and JavaScript. Let’s start by looking at the HTML code (with the JavaScript embedded, for simplicity):