Subject: Using common commands and system variables

The following table describes commands and system variables that are commonly used in scripts.

Common commands and system variables used in scripts

Character

Description

’DELAY

Pauses the script for a specified number of milliseconds.

FILEDIA

Turns off dialog boxes, which forces the input to the command line where the script can provide filenames and other information.

’GRAPHSCR

Switches from the drawing area to the text window.

MENUECHO

Turns off command prompts.

OSMODE

Turns snap settings on or off to make sure selected points are at the correct location.

PICKBOX

Adjusts the size of the entity selection pickbox to help accurately select entities in the drawing.

RESUME

Continues a script after a break or interruption.

RSCRIPT

Repeats a script.

’TEXTSCR

Switches from the text window to the drawing area.

The following is a sample script that opens a drawing file without displaying a dialog box:

; Open a file

_.FILEDIA 0

_.OPEN C:\\Temp\\My File.dwg

; Reset FILEDIA

_.FILEDIA 1

Using_common_commands_and_system_variables
© Copyright 2023. BackToCAD Technologies LLC. All rights reserved. Kazmierczak® is a registered trademark of Kazmierczak Software GmbH. Print2CAD, CADdirect, CAD.direct, CAD Direct, CAD.bot, CAD Bot, 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. 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.