­

Back to JTB SmartBatch

Quick Introduction

Install JTB SmartBatch using the download.

Run the installer file. Default installation path is C:\Program Files\JTB World\JTB SmartBatch.

Start with Settings and configure JTB SmartBatch to work the way you want it.

Select drawings to process using either Add Folders Only, Add Folders or Add Drawings.

Click on Run.

For deployment on multiple machines silent/automated installation can be done. 

License Activation

See activation instructions here: JTB World Apps Licensing

After activating successfully. 

Adding drawings

There are four methods to add drawings to JTB SmartBatch.

1. Drag and drop files and/or folders from Windows Explorer into JTB SmartBatch. If folders are selected you’ll get a question if you want to include folders and subfolders. This is the only way to select multiple folders at the same time. 

2. Add Folders Only - This adds only a folder. The files are added to the drawing list when you start the script. This one should primarily be used when you want to script really many files. This one give you also the option to delete several files in all folders found, the file types that are deleted are specified in the settings menu.

3. Add Folders - This is to add all the drawing files within a folder or driver. It works recursively.

4. Add Drawings - This is to add drawing files to the list.

Run

Click on Run to start the processing and click on Stop to halt it.

Use the timer to start the script at a specified time.

Drawing list

Filename - DWG or DXF file name. DWT is not supported but they can be renamed to DWG, processed and renamed back. Windows batch command to use: ren *.dwt *.dwg and other way around. 

Path - Path for the drawing.

Version - File version: 2018, 2013, 2010, 2007, 2004, 2000, 14, 13, 11/12, 10, 9, 2.6, 2.5 or ??? if the version is not recognized. If it's a folder it shows FOLDER.

Status - OK, Skipped, Access Denied, ReadOnly, Timeouted, "Error: Could not open file" or Skip for files not to be scripted. Educational drawings can be in some AutoCAD versions be detected if AutoCAD is run in normal mode (not core console) and close popups automatically is being used (Best tool to identify educational drawings is EduFinder). The status "Error: Could not open file" might indicate that the drawing has to be recovered. Timeout can happen if digital signatures are attached to the drawing or if the purge process takes longer than the timeout limit.

Size before - size in kb.

Size after - size in kb.

Date before - modified time stamp for the file before the drawing is scripted.

Date after - modified time stamp for the file after the drawing is scripted.

Right click menu in the drawing list view

Remove - Remove selected drawing from the list view

Reset Status - Reset the status for selected drawing

Set Status to Skip - Set the status for selected drawings to "Skip"

Select All - Select all drawings

Deselect All - Deselect all drawings

File Properties - Open Windows File Properties for the selected drawing

Explore - Open Windows Explorer at the folder location of the selected drawing

Start AutoCAD - Start the selected drawing with AutoCAD

Settings

The settings are saved in the registry, so you don’t have to change them again the next time you run JTB SmartBatch.

Restore button – Restores the settings to the default settings. This also includes the windows settings for the main JTB SmartBatch window and the column widths and positions of the listview.

General tab

CAD application:
This combo box lists all installed AutoCAD applications. The default value is the application that is associated for the moment to the DWG-files. If you change the application it will also re-associate the DWG-files and use this application with JTB SmartBatch.

Profile:
This combo box lists the active profile for the active AutoCAD application. And if you want to change it select another one to be used by JTB SmartBatch.

"Manually select CAD location":
Alternatively specify the path to the executable. "Manually select CAD location" needs to be used for BricsCAD, GstarCAD, ZWCAD and other CAD applications.

From AutoCAD 2013 and newer the AutoCAD Core Console can be used and will make scripting much faster. Browse for accoreconsole.exe that is found in the main installation folder where acad.exe also is located.

AutoLISP supported:
If AutoLISP is supported by the CAD application or not.

Include DXF files:
This filter makes it possible to also run DXF files. Some non standard formatted DXF's are not version identified but might be run anyway. The version is set to "DXF?". Until anyone wants it (just contact us) the DXF are saved to the closest matched DWG version.

Close Popups Automatically:
Dialog boxes are closed automatically making it possible to proceed with the scripting process uninterrupted. Click on the button to open the log file.

Include subfolders:
Works with the icon for adding folders and makes it possible to include subfolders in the file search.

Include files with Archive file attribute:
By having this one not selected the number of files can be drastically reduced if done before a backup. This way if you regularly use JTB SmartBatch it might be a good choice. But remember to have it selected the first time you run to include all files.

Add drawing version to the list:
If you chose to have this checked it will take a longer time as each file needs more time to process. But if you select a drawing in the list the version is always showed.

Script timeout per drawing (seconds):
Timeout for processing each drawing can be set. This makes it possible to let the scripting continue if something goes wrong with any of the drawings in the list. If you have large drawings or it takes long time to purge them you might want to increase this value. If the drawing is not finished processed within the timeout limit, the CAD application will be shut down and the next drawing will be processed.

Run Audit on all drawings:
Run Audit on all drawings to ensure the quality of them. It is the standard AutoCAD command Audit that is run.

Zoom extents Force:
Many likes to zoom the drawings to extents before saving. And it's possible by selecting this checkbox.

PSPACE to avoid zoom extents in a viewport:
If you zoom extents in paperspace and have a viewport in modelspace you might loose your zoom settings if the viewport is not locked. This can be avoided by this option.

Run with JTB SmartBatch on top of other applications:
This explains itself I hope.

Thumbnail Color button can be used to change the background color for the drawing thumbnail that shows when a drawing is selected in the drawing list.

Script/lisp file:
A script file can be loaded and executed as the last thing JTB SmartBatch does before saving and quitting. Since an AutoCAD is started with a script by JTB SmartBatch the main script will be stopped by the custom script that you have added. Therefore you have to add for example QSAVE and QUIT at the end of your script file. The functionality in JTB SmartBatch to save the file to a specific version is lost if script files are used. AutoCAD LT only supports script files. Script files has the SCR extension.

Full/vanilla AutoCAD and some other CAD applications supports LISP files (extension LSP, FAS or VLX). The lisp file will be loaded just before the drawing is saved.

Note that because of AutoCAD security settings your custom files might not load. You may see this error on the command line in AutoCAD:
; error: File load canceled:
To work around this look at the security settings in OPTIONS>System>Security Options. Make sure the file is in a trusted location. 

Purge tab

Always know what you do when you purge drawings. If you are not sure make sure to take backups of drawings before.

The Purge options in the left column are standard AutoCAD commands that are run using the -PURGE command.

Number of times to purge:
Enter a number between 0 and 5 for the number of times you want to purge each drawing. This is to allow for purging nested objects.

  • Purge All
  • Purge all Blocks
  • Purge all Detail view styles (Works only for AutoCAD 2013 with verticals or later)
  • Purge all Dimension styles
  • Purge all Layers
  • Purge all Linetypes
  • Purge all Materials (Works only for AutoCAD 2007 with verticals or later)
  • Purge all Mline styles
  • Purge all Multileader styles (Works only for AutoCAD 2008 with verticals or later)
  • Purge all Plot styles
  • Purge all Regapps (Works only for AutoCAD 2005 with verticals or later)
  • Purge all Section view styles (Works only for AutoCAD 2013 with verticals or later)
  • Purge all Shapes
  • Purge all Table styles (Works only for AutoCAD 2005 with verticals or later)
  • Purge all Text styles
  • Purge all Visual styles (Works only for AutoCAD 2007 with verticals or later)
  • Purge all Orphaned Data (Works only for AutoCAD 2015 with verticals or later). Orphaned Data is linetype remains from Bentley MicroStation DGN files.

The following options will only be used if AutoCAD 2000+ is used or any of its verticals.

  • Delete all Page Setups
  • Delete all Filter states
  • Delete all Layer states
  • Delete all Layer manager states (Express Tools)
  • Delete all Line objects without length (Works with AutoCAD LT 2010 or newer too)
  • Delete all Text objects without text (Works with AutoCAD LT 2010 or newer too)
  • Delete all embedded VBA code (WARNING)
    Be very careful when using this settings because some applications using the drawing might malfunction.
    DWG files can have embedded VBA (Visual Basic for Applications) code and is deleted using this option.
  • Purge all registered applications collection (WARNING)
    Be extremely careful when using this settings because some applications using the drawing might malfunction.
    Applications made by Autodesk or 3:rd party developers might create registered application collections. Much of the intelligence of many objects will be lost.
    Extended data is grouped by registered application name. Registered application names correspond to APPID symbol table entries. An application can use as many APPID names as needed. APPID names are permanent, although they can be purged if they aren't currently used in the drawing.
    Make sure to take backups of drawings before using this option.
  • Purge all Anonymous Groups
  • Purge all Groups (This includes anonymous groups.)
  • Purge all named object dictionaries (WARNING)
    Be extremely careful when using this settings because some applications using the drawing might malfunction.
    Applications made by Autodesk or 3:rd party developers might create named object dictionaries. For example this will mess with drawings made in ADT. ADT styles, display configurations and a lot more will be deleted even if they are used! Much of the intelligence of many objects will be lost.
    Embedded VBA code will also be deleted using this option. NOD: ACAD_VBA
    This will remove references that holds materials attached by AutoCAD Color Index used by RMAT even if it's used. NOD: AVE_ACITABLE
    AutoCAD features like table styles will be purged.
    A drawing's relation to a Sheet Set will be removed.
    Even images in the drawings will be destroyed!!!
    Make sure to take backups of drawings before using this option.
  • Purge Regapps using ASDKCleanRegAppARX.arx (2004-2008)
    Be extremely careful when using this settings because some applications using the drawing might malfunction.
    Applications made by Autodesk or 3:rd party developers might create registered application collections. Much of the intelligence of many objects can be lost.
    Make sure to take backups of drawings before using this option.
    Extended data is grouped by registered application name. Registered application names correspond to APPID symbol table entries. An application can use as many APPID names as needed. APPID names are permanent, although they can be purged if they aren't currently used in the drawing.
    Does not work with AutoCAD 2010 and newer.

SaveAs tab

Delete tab

Variables tab

Shortcut tab

Application menu

Settings (described above

Tips & Tricks

Known Issues

­