Automate AutoCAD with HTML form and .NETScript
3/28/2013 10:42 PM
.NETScript for AutoCAD has a very interesting feature to load HTML forms inside AutoCAD. This will allow custom applications to host on the remote web server, no need to install to local AutoCAD. So users can access to the library of applications on the web without downloading and installing into AutoCAD.
To get started, after .NETScript is loaded into AutoCAD, type command NETFORM, then type/paste the URL of the HTML form and hit enter. AutoCAD will display this HTML form to start the application.
There is an example of HTML form on this website at the link: http://www.netscriptcad.com/CodeStore/CodeEditor/samples/netscriptcad/forms/draw_entities.html
You can use the above url for NETFORM command, this will display a simple form with a button Draw, after user clicks on it, .NETScript will draw some lines and a circle on the screen. The following is the final screenshot:
HTML provides a markup interface for .NETScript to run on AutoCAD, so users have an option to automate AutoCAD by web forms. Custom applications will be distributed and deployable from the web. Stay tune with .NETScript Code Store for latest code and application web forms.