Extension
With the EXTENSION command you can execute a plug-in extension with a command line.
EXTENSION"name""param"
name
Filename of the extension plug-in as string. Most likely you will use the file name extension ISP here.
param
Command line parameters for the plugin as string.
Please find below a sample with double-quote syntax. The target format is SVG in this case. Note that the source and the destination folders must exist and check the name of the batch tool in the extensions folder.
In this sample the backslash character is used for the line continuation (see
Line Continuation).
EXTENSION "batch6_e.isp" "-f22 " + \
"-s""C:\tmp\batch_in"" "+ \
"-d""C:\tmp\batch_out"""
Next, we have a sample with mixed quote characters. The target format is CGM . We call a macro ‘rotate90’ on each illustration.
EXTENSION "batch6.isp" '-s"D:\TEMP\batch\in"' \
+ ' -d"D:\TEMP\batch\out" -f10 -m"rotata90"'
In the next sample we have defined the parameters for the batch tool as string variables. This helps to avoid confusion with the quotes.
DEFINE sPlugin AS String
DEFINE sSourceDir AS String
DEFINE sDestDir AS String
DEFINE sParam AS String
DEFINE sFormat AS String
# set the name of the BatchTool
sPlugin = 'batch6_e.isp'
# set the parameter for the source folder
sSource = ' -s"d:\temp\batchin"'
# set the parameter for the destination folder
sDest = ' -d"d:\temp\batchout"'
# set the parameter for the export format
# (10 : CGM)
sFormat = '-f10'
# build the parameter string for the BatchTool
sParam = sFormat + sSource + sDest
# call the BatchTool with the paramter string
EXTENSION sPlugIn sParam
If no file format code is specified Arbortext IsoDraw will use its standard format.
EXTENSION sPlugIn "-s" + sSourceDir + " -d" \
+ sTargetDir + " - m" + sMacroName
For your convenience you will find a list of the format identifiers
# Allowed format identifiers are:
#
# 0 Standard IsoDraw format, currently IsoDraw 6
# 1 IsoDraw 4 format
# 2 IsoDraw 3 format
# 3 IsoDraw 2.6 format(not supported On Windows)
# 4 Encapsulated PostScript File format
# 5 Adobe Illustrator 1.1 format
# 6 Adobe Illustrator 88 format
# 7 Initial Graphics Exchange Standard format
# 8 Drawing Interchange Format
# 9 Hewlett Packard Graphics Language
# 10 Computer Graphics Metafile
# 11 PICTure format
# 12 Tagged Image File Format
# 13 Bitmap format
# 14 PCX format# 15 CALS Raster
# 16 Text Excerpt
# 17 Interleaf format
# 18 Maker Interchange Format
# 19 IsoDraw 5 format
# 20 IsoDraw 5 format, packed
# 21 DWG (AutoCAD format)
# 22 Scalable Vector Graphics
# 23 JPEG format
# 24 Portable Network Graphic format
# 25 Windows Metafile format
# 26 IsoDraw 6 format
# 27 IsoDraw 6 format, packed