BackToCAD Technologies LLC, Clearwater, USA | Artificial Intelligence and Software Developing | Atlanta, USA; Stuttgart, Germany | Kazmierczak® Company
Creating and replaying scripts
CAD.direct 2019 can record anything you type on the keyboard and any points you select in a drawing. You can save all of these actions to a script file (with the *.scr extension) and then repeat them by replaying the script. You can use scripts for successively repeating commands, showing snapshots in a slide show, or batch printing. You can also load and run script files created for use with AutoCAD.
CAD.direct 2019 supports most AutoCAD customization files, including menus, script files, and LISP routines. CAD.direct 2019 uses compatible linetypes, hatch patterns, units translation, and command aliases, but you can also substitute your own files for these. This feature allows you to continue to work with your favorite customized drafting environment.
A script is a form of text file. A script file contains one line of text or other data for each action. For example, when you type a command and press Enter, it is recorded on a line in the script file. When you select a point in a drawing, the coordinate of that point is recorded on a line in the script file. You can also create script files outside CAD.direct 2019 using a text editor (such as Microsoft® Notepad or Microsoft® WordPad) or a word-processing program (such as Microsoft® Word) that saves the file in ASCII format. The file type and extension must be .scr.
Script files can contain comments. Any line that begins with a semicolon is considered a comment. The program ignores these lines when replaying the script. The Undo feature reverses the last command performed by the script.
CAD.direct 2019 improves on scripts, AutoLISP, and ADS by providing additional functions. For scripts, CAD.direct 2019 includes a Script Recorder that records both command line entries and screen picks you make with your mouse.
After you activate the Script Recorder, every keyboard entry you make and any points you select in a drawing are recorded until you stop the Script Recorder. You can play back your script at any time.
The Script Recorder does not record your use of toolbars, menus, or dialog boxes. Using these elements while recording a script causes unpredictable results.
To record a script
Do one of the following to choose Record Script:
Specify the name of the script file you want to create.
Type commands on the keyboard.
The Script Recorder records all keyboard entries and all points you select in the drawing, saving everything to the script file.
To stop recording
Do one of the following to choose Stop Recording:
To replay a script
Do one of the following to choose:
In the Run Script dialog box, specify the name of the script file you want to run.
The program immediately runs the script, performing all the actions originally recorded.
Double-click a script file.
To invoke a script automatically when you load CAD.direct 2019, in Windows Explorer, double-click a script file.
To append to a script
Do one of the following to choose Record Script:ications).
In the Record Script dialog box, select the Append To Script check box.
Select the existing script file to append.
Click Yes to the prompt asking whether you want to replace the existing script.
Repeat the procedure to enter additional commands and steps.
© Copyright 2017 Expert Robotics Inc. USA . All rights reserved. Kazmierczak® is a registered trademark of Kazmierczak Software GmbH. CAD.direct 2019 is a trademark of Expert Robotics Inc. Print2CAD and CAD2Print are Trademarks of BackToCAD Technologies LLC. DWG is the name of Autodesk’s proprietary file format and technology used in AutoCAD® software and related products. Autodesk, the Autodesk logo, AutoCAD, DWG are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. This website is independent of Autodesk, Inc., and is not authorized by, endorsed by, sponsored by, affiliated with, or otherwise approved by Autodesk, Inc. The material and software have been placed on this Internet site under the authority of the copyright owner for the sole purpose of viewing of the materials by users of this site. Users, press, or journalists are not authorized to reproduce any of the materials in any form or by any means, electronic or mechanical, including data storage and retrieval systems, recording, printing or photocopying.