Categories

Skip Navigation Links.

Recent Comments

Re: Introducing a new AutoCAD programming language and library: .NETScript and AutoCAD.X
Hi Nike,

Thank you for your comment. I hope this website will bring a new future of CAD platform on the web cloud.

-Khoa
Nike Yeezy
from you in the future as well. In fact your creative writing abilities has inspired me.
# Nike Yeezy
Author: Created: 3/26/2013 4:32 PM
Introduction about .NETScript for CAD
By khoa.ho on 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 

The code is pretty simple as seen below, not much knowledge about HTML, CSS and JavaScript. We focus on the function draw() that contains .NETScript code which looks very similar to JavaScript:

...
By khoa.ho on 3/26/2013 4:32 PM
What is .NETScript?

.NETScript is a new programming language for CAD software, which is C# with JavaScript syntax. The used library is AutoCAD.X that is an extension of AutoCAD .NET API, but simpler to use, one line of code to do any single task. Bring effortless application development for AutoCAD and RealDWG.

Why do we need .NETScript?

CAD developers will still use C# to write code, but the same code will work on both AutoCAD desktop and the web (http://www.netscriptcad.com/code-store). Since AutoCAD supports varieties of programming platforms, .NETScript is an alternative to DesignScript but still have the strength of .NET API and the cross-platform of JavaScript.

What is the difference between .NETScript and C#?

.NETScript is C# but make use of JavaScript syntax, so the same code will work on both AutoCAD and the web browser....

Search Blog

Blog Archive

Blog Tags