Generally, AutoCAD scripts (and hence DraftSight scripts, by association) have a bad reputation as a slow and clumsy alternative to LISP. Okay, fine. That's generally the case with any script language vs. a compiled or bytecode alternative. The price is right; I'll live with it.
If you want to learn how to write DS scripts, the best place to learn is learn from the materials available for ACAD. Search the Web for "Autocad script" or "Autocad script tutorial". Almost all of what is written for ACAD applies to DS.
Remember that a lot of the commands that invoke a dialog box (like "LAYER") have a command-line-only, alternative version that begins with a hyphen or dash (like "-LAYER"), for use in scripts. (Also for use by command-line geeks who don't like dialog boxes. And Linux heads! And Cygwin junkies!)
Since I haven't had a lot of practice with ACAD scripts myself, I expect to be doing a lot of fumbling around for the next little while. One of my first tasks will be to find out how to pass arguments to a script, and how to have a script open a custom pop-up window, to prompt the user for a needed value.
Apparently, there's also a tiny macro language, called Diesel, with which ACAD users can modify the Status line and do other little tweaks. It's been reported that Diesel macros work inside DS also. One thing at a time, my friends. I'm working on scripting this week. But if you know something about Diesel, give it a shot and let me know what you find out.
By the way, the official AutoCAD user forums contain a few discussions about DraftSight.
Some users were wondering about the legality of DS, considering that it's so close to ACAD in functionality and features. A little research into the Open Design Alliance and the IntelliCAD Technology Consortium would answer their questions - besides, I don't think that Dassault Systèmes would have put all that horsepower behind DraftSight if they didn't have all their ducks in a row, legally speaking.
Other users were dismissing DS as the latest in a long train of ACAD clones, none of which have been as good as real ACAD. Well, they're absolutely right, without dispute. It is the latest, and it isn't quite as good as the real thing. There's no question that AutoCAD deserves its place at the top of the heap. If we could afford it, we would all use it, without a doubt. But we can't, and so we look for compatible, lower priced alternatives, which will do most of what ACAD can do and all of what we need to get done.
I don't think that Autodesk or their customers have anything to fear from DS. The ACAD installed base will continue to grow, contributing nicely to ACAD's bottom line, and although we all look forward to the DS installed base growing even faster, it will never overtake or replace ACAD. I don't think that Dassault Systèmes intends it to do so, either.
Essays on current topics and marginally relevant events. Written by a twenty-first century Renaissance man, a father of five with hundreds of children, a papa who isn't a father, and an uncle who isn't an uncle. Written by a computer professional who doesn't like computers, by an outdoorsman who doesn't get enough time outdoors, by a meat-eater who enjoys garden burgers and veggie pizzas, and by a poor man who is rich in things money can't buy.
Showing posts with label Diesel. Show all posts
Showing posts with label Diesel. Show all posts
Wednesday, November 9, 2011
Subscribe to:
Posts (Atom)