As mentioned in my last post, I will be covering the built in Script Editor that comes with the Autodesk Fabrication CAMduct software, but I would like to quickly thank CJ for his comment on my last post, it's nice to know that someone is reading this, and yes I am planning on posting some more useful scripts that may help you out, or at least give you an insight to what is possible with scripts.
The Script Editor is available from the "Window" menu at the top of the CAMduct screen, click on "Scripting"
This will open the Editor in a new window.
The advantages of using the built in script editor, compared to another text editor, is that there are a few built in tools that make it easier to use than something like Notepad.
The first thing I would advise doing is to modify the environment to make it easier to read and write the scripts. This is done under the View menu in the editor Menu bar.
Selecting Line Numbers, Color Coded, and Auto Indent will make the code you write much easier to read and debug.
Clicking in Options also allows you to change the default Font and the colors that you want to use when the script is Color Coded.
This can be extremely useful when used in conjuction with the Auto Indent as the script will become much easier to read, and don't ever forget those all-important comments (use rem before the line to be commented out), there is nothing worse than coming back to an old script only to spend an hour trying to figure out how exactly it works.
A short and sweet one this time. Until next time!