var scriptName = "AutoMark";
var Ver = "X4.0";
var set_folder = Folder.myDocuments + "/【印前角线X4.0】数据文件/" + scriptName + "/";
gArgG = gArgG0 = gArgG2 = gArgG3 = gArgG4 = gArgG5 = gArgG6 = gArgG7 = gArgG8 = gArgG9 = gArgG10 = set_folder + scriptName + "_" + Ver + ".xml";
ys0 = set_folder + "AutoMark_0.xml";
ys1 = set_folder + "AutoMark_1.xml";
ys2 = set_folder + "AutoMark_2.xml";
ys3 = set_folder + "AutoMark_3.xml";
ys4 = set_folder + "AutoMark_4.xml";
ys5 = set_folder + "AutoMark_5.xml";
ys6 = set_folder + "AutoMark_6.xml";
ys7 = set_folder + "AutoMark_7.xml";
ys8 = set_folder + "AutoMark_8.xml";
ys9 = set_folder + "AutoMark_9.xml";
ys10 = set_folder + "AutoMark_10.xml";
Preset = set_folder + "Preset.xml";
checkSetFolder();
function function1() {
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
function2();
}
Presetinfo = function3("read", Preset);
PresetXml = new XML(Presetinfo);
AutoMarkinfo = function3("read", gArgG);
AutoMarkXml = new XML(AutoMarkinfo);
regWin = new Window("dialog", "印前角线" + Ver + "", [0, 0, 420, 265], {
resizeable: true,
resizeable: false
});
cwd = regWin.add("tabbedpanel", [10, 10, 410, 215]);
CTPzu = cwd.add("tab", [0, 0, 410, 215], "CTP/预设");
caiqiexianzu = cwd.add("tab", [0, 0, 410, 215], "裁切线/颜色");
xinxizu = cwd.add("tab", [0, 0, 410, 215], "信息/链接");
xxwzzu = cwd.add("tab", [0, 0, 410, 215], "位置图");
qitazu = cwd.add("tab", [0, 0, 410, 215], "其他/记事本");
bangzhu = cwd.add("tab", [0, 0, 410, 215], "帮助");
xtiao1 = CTPzu.add("panel", [10, 88, 385, 90]);
xtiao2 = caiqiexianzu.add("panel", [10, 88, 385, 90]);
xtiao3 = xinxizu.add("panel", [10, 88, 385, 90]);
lineLengh = caiqiexianzu.add("statictext", [10, 13, 50, 28], "长度:");
lLValue = caiqiexianzu.add("edittext", [45, 10, 85, 30], AutoMarkXml.lLValue);
linewide = caiqiexianzu.add("statictext", [102, 13, 142, 28], "粗细:");
lwValue = caiqiexianzu.add("edittext", [137, 10, 177, 30], AutoMarkXml.lwValue);
outSpace = caiqiexianzu.add("statictext", [10, 38, 50, 53], "出血:");
oSValue = caiqiexianzu.add("edittext", [45, 35, 85, 55], AutoMarkXml.oSValue);
lineSpace = caiqiexianzu.add("statictext", [102, 38, 142, 53], "偏移:");
lSValue = caiqiexianzu.add("edittext", [137, 35, 177, 55], AutoMarkXml.lSValue);
szkd = caiqiexianzu.add("statictext", [193, 13, 268, 28], "十字宽度:", {
multiline: true
});
kdValue = caiqiexianzu.add("edittext", [256, 10, 293, 30], AutoMarkXml.kdValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
szgd = caiqiexianzu.add("statictext", [193, 38, 268, 53], "十字高度:", {
multiline: true
});
gdValue = caiqiexianzu.add("edittext", [256, 35, 293, 55], AutoMarkXml.gdValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
roundD = caiqiexianzu.add("statictext", [310, 13, 360, 28], "圆形:", {
multiline: true
});
rdValue = caiqiexianzu.add("edittext", [348, 10, 385, 30], AutoMarkXml.rdValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
rdValue.helpTip = "设置十字线圆形直径";
ztpy = caiqiexianzu.add("statictext", [310, 38, 360, 53], "偏移:", {
multiline: true
});
pyValue = caiqiexianzu.add("edittext", [348, 35, 385, 55], AutoMarkXml.pyValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
pyValue.helpTip = "调节十字高度向外偏移";
havebleed = caiqiexianzu.add("statictext", [10, 65, 120, 80], "模式:");
buhanchuxue = caiqiexianzu.add("radiobutton", [45, 65, 95, 80], "不含");
buhanchuxue.value = AutoMarkXml.buhanchuxue - 0;
buhanchuxue.helpTip = "不含出血模式";
quanbuchuxue = caiqiexianzu.add("radiobutton", [94, 65, 144, 80], "全部");
quanbuchuxue.value = AutoMarkXml.quanbuchuxue - 0;
quanbuchuxue.helpTip = "全部出血模式";
dabanchuxue = caiqiexianzu.add("radiobutton", [143, 65, 193, 80], "大版");
dabanchuxue.value = AutoMarkXml.dabanchuxue - 0;
dabanchuxue.helpTip = "大版出血模式";
doubleLine = caiqiexianzu.add("checkbox", [193, 65, 253, 80], "双角线");
doubleLine.value = AutoMarkXml.doubleLine - 0;
njLine = caiqiexianzu.add("checkbox", [254, 65, 314, 80], "内角线");
njLine.value = AutoMarkXml.njLine - 0;
JPLine = caiqiexianzu.add("checkbox", [315, 65, 395, 80], "日式角线");
JPLine.value = AutoMarkXml.JPLine - 0;
njLine.onClick = function () {
if (njLine.value == true) {
doubleLine.value = false;
JPLine.value = false;
oSValue.enabled = false;
lSValue.enabled = false;
AutoMarkXml.rdValue = 0;
AutoMarkXml.kdValue = 0;
AutoMarkXml.gdValue = 0;
AutoMarkXml.wu = 1;
AutoMarkXml.oSValue = 0;
AutoMarkXml.lSValue = 0;
AutoMarkXml.lLValue = 9;
}
};
doubleLine.onClick = JPLine.onClick = function () {
if (doubleLine.value == true || JPLine.value == true) {
njLine.value = false;
oSValue.enabled = true;
lSValue.enabled = true;
AutoMarkXml.oSValue = 3;
AutoMarkXml.lSValue = 3;
AutoMarkXml.lLValue = 3;
AutoMarkXml.rdValue = 3;
AutoMarkXml.kdValue = 20;
AutoMarkXml.gdValue = 9;
}
};
CMYK = caiqiexianzu.add("radiobutton", [10, 100, 100, 120], "英文");
CMYK.value = AutoMarkXml.CMYK - 0;
mingcheng = caiqiexianzu.add("radiobutton", [62, 100, 142, 120], "中英文");
mingcheng.value = AutoMarkXml.mingcheng - 0;
wu = caiqiexianzu.add("radiobutton", [125, 100, 165, 120], "无");
wu.value = AutoMarkXml.wu - 0;
boolCx = caiqiexianzu.add("checkbox", [10, 128, 40, 143], "C");
boolCx.value = AutoMarkXml.boolCx - 0;
boolMx = caiqiexianzu.add("checkbox", [48, 128, 88, 143], "M");
boolMx.value = AutoMarkXml.boolMx - 0;
boolYx = caiqiexianzu.add("checkbox", [87, 128, 117, 143], "Y");
boolYx.value = AutoMarkXml.boolYx - 0;
boolKx = caiqiexianzu.add("checkbox", [125, 128, 155, 143], "K");
boolKx.value = AutoMarkXml.boolKx - 0;
ptReplace = caiqiexianzu.add("statictext", [10, 153, 110, 168], "PANTONE代替:", {
multiline: true
});
prValue = caiqiexianzu.add("edittext", [96, 150, 165, 170], AutoMarkXml.prValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
prValue.helpTip = "如果需要显示全称潘通专色,输入英文〖PANTONE+空格〗或者输入中文〖潘通〗";
colorLable = caiqiexianzu.add("checkbox", [175, 100, 225, 120], "色条");
colorLable.value = AutoMarkXml.colorLable - 0;
colorWide = caiqiexianzu.add("statictext", [231, 103, 271, 118], "宽:", {
multiline: true
});
cwValue = caiqiexianzu.add("edittext", [256, 100, 293, 120], AutoMarkXml.cwValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
colorHigh = caiqiexianzu.add("statictext", [231, 128, 271, 143], "高:", {
multiline: true
});
chValue = caiqiexianzu.add("edittext", [256, 125, 293, 145], AutoMarkXml.chValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
colorSpace = caiqiexianzu.add("statictext", [310, 103, 360, 118], "间距:", {
multiline: true
});
csValue = caiqiexianzu.add("edittext", [348, 100, 385, 120], AutoMarkXml.csValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
stpy = caiqiexianzu.add("statictext", [310, 128, 360, 143], "偏移:", {
multiline: true
});
py4Value = caiqiexianzu.add("edittext", [348, 125, 385, 145], AutoMarkXml.py4Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py4Value.helpTip = "调节色条上下偏移";
colorlevel = caiqiexianzu.add("statictext", [189, 153, 269, 168], "色阶:", {
multiline: true
});
clValue = caiqiexianzu.add("edittext", [227, 150, 385, 170], AutoMarkXml.clValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
CMYK.onClick = mingcheng.onClick = function () {
if (CMYK.value == true || mingcheng.value == true) {
boolCx.value = true;
boolMx.value = true;
boolYx.value = true;
boolKx.value = true;
}
};
wu.onClick = function () {
if (wu.value == true) {
CMYK.value = false;
mingcheng.value = false;
boolCx.value = false;
boolMx.value = false;
boolYx.value = false;
boolKx.value = false;
colorLable.value = false;
}
};
boolCx.onClick = boolMx.onClick = boolYx.onClick = boolKx.onClick = function () {
if (boolCx.value == false && boolMx.value == false && boolYx.value == false && boolKx.value == false) {
wu.value = true;
}
if (boolCx.value == true && boolMx.value == true && boolYx.value == true && boolKx.value == true) {
CMYK.value = true;
}
};
wenjianminzu = xinxizu.add("panel", [10, 11, 95, 80]);
haveFN = wenjianminzu.add("checkbox", [10, 5, 80, 20], "文件名");
haveFN.value = AutoMarkXml.haveFN - 0;
haveTM = wenjianminzu.add("checkbox", [10, 25, 80, 40], "日期");
haveTM.value = AutoMarkXml.haveTM - 0;
havePT = wenjianminzu.add("checkbox", [10, 45, 80, 60], "路径");
havePT.value = AutoMarkXml.havePT - 0;
chichunzu = xinxizu.add("panel", [95, 6, 225, 80], "尺寸");
bigSize = chichunzu.add("checkbox", [10, 25, 55, 40], "拼版");
bigSize.value = AutoMarkXml.bigSize - 0;
littleSize = chichunzu.add("checkbox", [10, 45, 55, 60], "成品");
littleSize.value = AutoMarkXml.littleSize - 0;
paperSize1 = chichunzu.add("checkbox", [68, 25, 118, 40], "纸张");
paperSize1.value = AutoMarkXml.paperSize1 - 0;
paperSize = chichunzu.add("checkbox", [68, 45, 118, 60], "角线");
paperSize.value = AutoMarkXml.paperSize - 0;
yaokouzu = xinxizu.add("panel", [225, 6, 300, 80], "咬口");
bite3 = yaokouzu.add("checkbox", [13, 30, 27, 44]);
bite3.value = AutoMarkXml.bite3 - 0;
bite3.helpTip = "咬口位于左侧";
bite2 = yaokouzu.add("checkbox", [28, 15, 42, 29]);
bite2.value = AutoMarkXml.bite2 - 0;
bite2.helpTip = "咬口位于上方";
bite5 = yaokouzu.add("checkbox", [28, 30, 42, 44]);
bite5.value = AutoMarkXml.bite5 - 0;
bite5.helpTip = "默认智能咬口,具有自动旋转功能";
bite = yaokouzu.add("checkbox", [28, 45, 42, 59]);
bite.value = AutoMarkXml.bite - 0;
bite.helpTip = "咬口位于下方";
bite4 = yaokouzu.add("checkbox", [43, 30, 56, 45]);
bite4.value = AutoMarkXml.bite4 - 0;
bite4.helpTip = "咬口位于右侧";
weizhizu = xinxizu.add("panel", [300, 11, 385, 80]);
xxwz = weizhizu.add("statictext", [26, 24, 53, 38], "总控");
xxwz.helpTip = "〖总控〗开关,控制〖信息〗版块选项和〖位置图〗版块文字信息方位。";
wzzcs = weizhizu.add("checkbox", [11, 16, 25, 30]);
wzzcs.value = AutoMarkXml.wzzcs - 0;
wzzcs.helpTip = "文字信息组合位于左侧上角";
wzzcx = weizhizu.add("checkbox", [11, 32, 25, 46]);
wzzcx.value = AutoMarkXml.wzzcx - 0;
wzzcx.helpTip = "文字信息组合位于左侧下角";
wzzs = weizhizu.add("checkbox", [25, 3, 39, 17]);
wzzs.value = AutoMarkXml.wzzs - 0;
wzzs.helpTip = "文字信息组合位于左上角";
wzzx = weizhizu.add("checkbox", [25, 45, 39, 61]);
wzzx.value = AutoMarkXml.wzzx - 0;
wzzx.helpTip = "文字信息组合位于左下角";
wzys = weizhizu.add("checkbox", [41, 3, 55, 17]);
wzys.value = AutoMarkXml.wzys - 0;
wzys.helpTip = "文字信息组合位于右上角";
wzyx = weizhizu.add("checkbox", [41, 45, 55, 61]);
wzyx.value = AutoMarkXml.wzyx - 0;
wzyx.helpTip = "文字信息组合位于右下角";
wzycs = weizhizu.add("checkbox", [55, 16, 69, 30]);
wzycs.value = AutoMarkXml.wzycs - 0;
wzycs.helpTip = "文字信息组合位于右侧上角";
wzycx = weizhizu.add("checkbox", [55, 32, 69, 46]);
wzycx.value = AutoMarkXml.wzycx - 0;
wzycx.helpTip = "文字信息组合位于右侧下角";
bite5.onClick = function () {
bite.value = bite2.value = bite3.value = bite4.value = false;
};
bite.onClick = function () {
bite5.value = false;
};
bite2.onClick = function () {
bite5.value = false;
};
bite3.onClick = function () {
bite5.value = false;
};
bite4.onClick = function () {
bite5.value = false;
};
flagui = xinxizu.add("checkbox", [10, 103, 25, 118]);
flagui.value = AutoMarkXml.flagui - 0;
flagui.helpTip = "〖拉规〗链接〖反拉规〗〖拉规线.PDF〗位于左侧";
zlagui = xinxizu.add("checkbox", [25, 103, 40, 118]);
zlagui.value = AutoMarkXml.zlagui - 0;
zlagui.helpTip = "〖拉规〗链接〖正拉规〗〖拉规线.PDF〗位于右侧";
selectFile = xinxizu.add("button", [45, 100, 90, 120], "拉规");
selectFile.helpTip = "选择〖拉规线.PDF〗文件";
sfValue = xinxizu.add("edittext", [95, 100, 205, 120], AutoMarkXml.sfValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
selectFile.onClick = function () {
var jxaa = File.openDialog("选择文件", "PDF:*.pdf,EPS:*.eps,AI:*.ai", false);
if (jxaa != null) {
sfValue.text = jxaa.fsName;
}
};
linkMove = xinxizu.add("statictext", [215, 103, 265, 118], "上下:", {
multiline: true
});
lmValue = xinxizu.add("edittext", [255, 100, 295, 120], AutoMarkXml.lmValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
lmValue.helpTip = "调节〖拉规〗链接文件上下偏移";
link2Move = xinxizu.add("statictext", [305, 103, 355, 118], "左右:", {
multiline: true
});
lm2Value = xinxizu.add("edittext", [345, 100, 385, 120], AutoMarkXml.lm2Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
lm2Value.helpTip = "调节〖拉规〗链接文件左右偏移";
embed = xinxizu.add("statictext", [0, 0, 0, 0]);
embed.value = AutoMarkXml.embed - 0;
sblink = xinxizu.add("button", [45, 125, 90, 145], "顶部");
sblink.helpTip = "选择〖色条.PDF〗文件";
sbValue = xinxizu.add("edittext", [95, 125, 205, 145], AutoMarkXml.sbValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
sblink.onClick = function () {
var jxaa = File.openDialog("选择文件", "PDF:*.pdf,EPS:*.eps,AI:*.ai", false);
if (jxaa != null) {
sbValue.text = jxaa.fsName;
}
};
sxpy2 = xinxizu.add("statictext", [215, 128, 265, 143], "上下:", {
multiline: true
});
py5Value = xinxizu.add("edittext", [255, 125, 295, 145], AutoMarkXml.py5Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py5Value.helpTip = "调节〖色条〗链接文件上下偏移";
dinbuzy = xinxizu.add("statictext", [305, 128, 355, 143], "左右:", {
multiline: true
});
py41Value = xinxizu.add("edittext", [345, 125, 385, 145], AutoMarkXml.py41Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py41Value.helpTip = "调节〖色条〗链接文件左右偏移";
pxu31 = xinxizu.add("checkbox", [10, 142, 25, 157]);
pxu31.value = AutoMarkXml.pxu31 - 0;
pxu31.helpTip = "〖底部〗链接〖反拉规〗〖拉规线.PDF〗位于左侧";
pxu32 = xinxizu.add("checkbox", [25, 142, 40, 157]);
pxu32.value = AutoMarkXml.pxu32 - 0;
pxu32.helpTip = "〖底部〗链接〖正拉规〗〖拉规线.PDF〗位于右侧";
pxu33 = xinxizu.add("checkbox", [18, 157, 33, 172]);
pxu33.value = AutoMarkXml.pxu33 - 0;
pxu33.helpTip = "〖底部〗链接〖测控条.PDF〗位于下方";
sclink = xinxizu.add("button", [45, 150, 90, 170], "底部");
sclink.helpTip = "选择〖测控条.PDF〗或〖拉规线.PDF〗文件";
scValue = xinxizu.add("edittext", [95, 150, 205, 170], AutoMarkXml.scValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
sclink.onClick = function () {
var jxaa = File.openDialog("选择文件", "PDF:*.pdf,EPS:*.eps,AI:*.ai", false);
if (jxaa != null) {
scValue.text = jxaa.fsName;
}
};
sxpy3 = xinxizu.add("statictext", [215, 153, 255, 168], "上下:", {
multiline: true
});
py6Value = xinxizu.add("edittext", [255, 150, 295, 170], AutoMarkXml.py6Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py6Value.helpTip = "调节〖底部〗链接文件上下偏移";
dibuzy = xinxizu.add("statictext", [305, 153, 355, 168], "左右:", {
multiline: true
});
py42Value = xinxizu.add("edittext", [345, 150, 385, 170], AutoMarkXml.py42Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py42Value.helpTip = "调节〖底部〗链接文件左右偏移";
embed = xinxizu.add("statictext", [0, 0, 0, 0]);
embed.value = AutoMarkXml.embed - 0;
zlagui.onClick = function () {
flagui.value = false;
};
flagui.onClick = function () {
zlagui.value = false;
};
pxu31.onClick = function () {
pxu32.value = pxu33.value = false;
};
pxu32.onClick = function () {
pxu31.value = pxu33.value = false;
};
pxu33.onClick = function () {
pxu31.value = pxu32.value = false;
};
wjmkuang = xxwzzu.add("panel", [14, 10, 88, 80]);
wjmxx = wjmkuang.add("statictext", [21, 24, 48, 38], "文件");
wjmxx.helpTip = "文件名信息位置选项";
wjmzcs = wjmkuang.add("checkbox", [6, 16, 20, 30]);
wjmzcs.value = AutoMarkXml.wjmzcs - 0;
wjmzcs.helpTip = "文件名信息位于左侧上角";
wjmzcx = wjmkuang.add("checkbox", [6, 32, 20, 46]);
wjmzcx.value = AutoMarkXml.wjmzcx - 0;
wjmzcx.helpTip = "文件名信息位于左侧下角";
wjmzs = wjmkuang.add("checkbox", [20, 3, 34, 17]);
wjmzs.value = AutoMarkXml.wjmzs - 0;
wjmzs.helpTip = "文件名信息位于左上角";
wjmzx = wjmkuang.add("checkbox", [20, 45, 34, 61]);
wjmzx.value = AutoMarkXml.wjmzx - 0;
wjmzx.helpTip = "文件名信息位于左下角";
wjmys = wjmkuang.add("checkbox", [36, 3, 50, 17]);
wjmys.value = AutoMarkXml.wjmys - 0;
wjmys.helpTip = "文件名信息位于右上角";
wjmyx = wjmkuang.add("checkbox", [36, 45, 50, 61]);
wjmyx.value = AutoMarkXml.wjmyx - 0;
wjmyx.helpTip = "文件名信息位于右下角";
wjmycs = wjmkuang.add("checkbox", [50, 16, 64, 30]);
wjmycs.value = AutoMarkXml.wjmycs - 0;
wjmycs.helpTip = "文件名信息位于右侧上角";
wjmycx = wjmkuang.add("checkbox", [50, 32, 64, 46]);
wjmycx.value = AutoMarkXml.wjmycx - 0;
wjmycx.helpTip = "文件名信息位于右侧下角";
riqikuang = xxwzzu.add("panel", [88, 10, 162, 80]);
rqxx = riqikuang.add("statictext", [21, 24, 48, 38], "日期");
rqxx.helpTip = "日期信息位置选项";
rqzcs = riqikuang.add("checkbox", [6, 16, 20, 30]);
rqzcs.value = AutoMarkXml.rqzcs - 0;
rqzcs.helpTip = "日期信息位于左侧上角";
rqzcx = riqikuang.add("checkbox", [6, 32, 20, 46]);
rqzcx.value = AutoMarkXml.rqzcx - 0;
rqzcx.helpTip = "日期信息位于左侧下角";
rqzs = riqikuang.add("checkbox", [20, 3, 34, 17]);
rqzs.value = AutoMarkXml.rqzs - 0;
rqzs.helpTip = "日期信息位于左上角";
rqzx = riqikuang.add("checkbox", [20, 45, 34, 61]);
rqzx.value = AutoMarkXml.rqzx - 0;
rqzx.helpTip = "日期信息位于左下角";
rqys = riqikuang.add("checkbox", [36, 3, 50, 17]);
rqys.value = AutoMarkXml.rqys - 0;
rqys.helpTip = "日期信息位于右上角";
rqyx = riqikuang.add("checkbox", [36, 45, 50, 61]);
rqyx.value = AutoMarkXml.rqyx - 0;
rqyx.helpTip = "日期信息位于右下角";
rqycs = riqikuang.add("checkbox", [50, 16, 64, 30]);
rqycs.value = AutoMarkXml.rqycs - 0;
rqycs.helpTip = "日期信息位于右侧上角";
rqycx = riqikuang.add("checkbox", [50, 32, 64, 46]);
rqycx.value = AutoMarkXml.rqycx - 0;
rqycx.helpTip = "日期信息位于右侧下角";
zzkuang = xxwzzu.add("panel", [162, 10, 236, 80]);
zzxx = zzkuang.add("statictext", [21, 24, 48, 38], "制作");
zzxx.helpTip = "制作信息位置选项";
zzzcs = zzkuang.add("checkbox", [6, 16, 20, 30]);
zzzcs.value = AutoMarkXml.zzzcs - 0;
zzzcs.helpTip = "制作信息位于左侧上角";
zzzcx = zzkuang.add("checkbox", [6, 32, 20, 46]);
zzzcx.value = AutoMarkXml.zzzcx - 0;
zzzcx.helpTip = "制作信息位于左侧下角";
zzzs = zzkuang.add("checkbox", [20, 3, 34, 17]);
zzzs.value = AutoMarkXml.zzzs - 0;
zzzs.helpTip = "制作信息位于左上角";
zzzx = zzkuang.add("checkbox", [20, 45, 34, 61]);
zzzx.value = AutoMarkXml.zzzx - 0;
zzzx.helpTip = "制作信息位于左下角";
zzys = zzkuang.add("checkbox", [36, 3, 50, 17]);
zzys.value = AutoMarkXml.zzys - 0;
zzys.helpTip = "制作信息位于右上角";
zzyx = zzkuang.add("checkbox", [36, 45, 50, 61]);
zzyx.value = AutoMarkXml.zzyx - 0;
zzyx.helpTip = "制作信息位于右下角";
zzycs = zzkuang.add("checkbox", [50, 16, 64, 30]);
zzycs.value = AutoMarkXml.zzycs - 0;
zzycs.helpTip = "制作信息位于右侧上角";
zzycx = zzkuang.add("checkbox", [50, 32, 64, 46]);
zzycx.value = AutoMarkXml.zzycx - 0;
zzycx.helpTip = "制作信息位于右侧下角";
ljkuang = xxwzzu.add("panel", [236, 10, 310, 80]);
ljxx = ljkuang.add("statictext", [21, 24, 48, 38], "路径");
ljxx.helpTip = "路径信息位置选项";
ljzcs = ljkuang.add("checkbox", [6, 16, 20, 30]);
ljzcs.value = AutoMarkXml.ljzcs - 0;
ljzcs.helpTip = "路径信息位于左侧上角";
ljzcx = ljkuang.add("checkbox", [6, 32, 20, 46]);
ljzcx.value = AutoMarkXml.ljzcx - 0;
ljzcx.helpTip = "路径信息位于左侧下角";
ljzs = ljkuang.add("checkbox", [20, 3, 34, 17]);
ljzs.value = AutoMarkXml.ljzs - 0;
ljzs.helpTip = "路径信息位于左上角";
ljzx = ljkuang.add("checkbox", [20, 45, 34, 61]);
ljzx.value = AutoMarkXml.ljzx - 0;
ljzx.helpTip = "路径信息位于左下角";
ljys = ljkuang.add("checkbox", [36, 3, 50, 17]);
ljys.value = AutoMarkXml.ljys - 0;
ljys.helpTip = "路径信息位于右上角";
ljyx = ljkuang.add("checkbox", [36, 45, 50, 61]);
ljyx.value = AutoMarkXml.ljyx - 0;
ljyx.helpTip = "路径信息位于右下角";
ljycs = ljkuang.add("checkbox", [50, 16, 64, 30]);
ljycs.value = AutoMarkXml.ljycs - 0;
ljycs.helpTip = "路径信息位于右侧上角";
ljycx = ljkuang.add("checkbox", [50, 32, 64, 46]);
ljycx.value = AutoMarkXml.ljycx - 0;
ljycx.helpTip = "路径信息位于右侧下角";
bzkuang = xxwzzu.add("panel", [310, 10, 384, 80]);
bzxx = bzkuang.add("statictext", [21, 24, 48, 38], "备注");
bzxx.helpTip = "备注信息位置选项";
bzzcs = bzkuang.add("checkbox", [6, 16, 20, 30]);
bzzcs.value = AutoMarkXml.bzzcs - 0;
bzzcs.helpTip = "备注信息位于左侧上角";
bzzcx = bzkuang.add("checkbox", [6, 32, 20, 46]);
bzzcx.value = AutoMarkXml.bzzcx - 0;
bzzcx.helpTip = "备注信息位于左侧下角";
bzzs = bzkuang.add("checkbox", [20, 3, 34, 17]);
bzzs.value = AutoMarkXml.bzzs - 0;
bzzs.helpTip = "备注信息位于左上角";
bzzx = bzkuang.add("checkbox", [20, 45, 34, 61]);
bzzx.value = AutoMarkXml.bzzx - 0;
bzzx.helpTip = "备注信息位于左下角";
bzys = bzkuang.add("checkbox", [36, 3, 50, 17]);
bzys.value = AutoMarkXml.bzys - 0;
bzys.helpTip = "备注信息位于右上角";
bzyx = bzkuang.add("checkbox", [36, 45, 50, 61]);
bzyx.value = AutoMarkXml.bzyx - 0;
bzyx.helpTip = "备注信息位于右下角";
bzycs = bzkuang.add("checkbox", [50, 16, 64, 30]);
bzycs.value = AutoMarkXml.bzycs - 0;
bzycs.helpTip = "备注信息位于右侧上角";
bzycx = bzkuang.add("checkbox", [50, 32, 64, 46]);
bzycx.value = AutoMarkXml.bzycx - 0;
bzycx.helpTip = "备注信息位于右侧下角";
cpkuang = xxwzzu.add("panel", [14, 80, 88, 150]);
cpxx = cpkuang.add("statictext", [21, 24, 48, 38], "成品");
cpxx.helpTip = "成品尺寸信息位置选项";
cpzcs = cpkuang.add("checkbox", [6, 16, 20, 30]);
cpzcs.value = AutoMarkXml.cpzcs - 0;
cpzcs.helpTip = "成品尺寸信息位于左侧上角";
cpzcx = cpkuang.add("checkbox", [6, 32, 20, 46]);
cpzcx.value = AutoMarkXml.cpzcx - 0;
cpzcx.helpTip = "成品尺寸信息位于左侧下角";
cpzs = cpkuang.add("checkbox", [20, 3, 34, 17]);
cpzs.value = AutoMarkXml.cpzs - 0;
cpzs.helpTip = "成品尺寸信息位于左上角";
cpzx = cpkuang.add("checkbox", [20, 45, 34, 61]);
cpzx.value = AutoMarkXml.cpzx - 0;
cpzx.helpTip = "成品尺寸信息位于左下角";
cpys = cpkuang.add("checkbox", [36, 3, 50, 17]);
cpys.value = AutoMarkXml.cpys - 0;
cpys.helpTip = "成品尺寸信息位于右上角";
cpyx = cpkuang.add("checkbox", [36, 45, 50, 61]);
cpyx.value = AutoMarkXml.cpyx - 0;
cpyx.helpTip = "成品尺寸信息位于右下角";
cpycs = cpkuang.add("checkbox", [50, 16, 64, 30]);
cpycs.value = AutoMarkXml.cpycs - 0;
cpycs.helpTip = "成品尺寸信息位于右侧上角";
cpycx = cpkuang.add("checkbox", [50, 32, 64, 46]);
cpycx.value = AutoMarkXml.cpycx - 0;
cpycx.helpTip = "成品尺寸信息位于右侧下角";
pbkuang = xxwzzu.add("panel", [88, 80, 162, 150]);
pbxx = pbkuang.add("statictext", [21, 24, 48, 38], "拼版");
pbxx.helpTip = "拼版尺寸信息位置选项";
pbzcs = pbkuang.add("checkbox", [6, 16, 20, 30]);
pbzcs.value = AutoMarkXml.pbzcs - 0;
pbzcs.helpTip = "拼版尺寸信息位于左侧上角";
pbzcx = pbkuang.add("checkbox", [6, 32, 20, 46]);
pbzcx.value = AutoMarkXml.pbzcx - 0;
pbzcx.helpTip = "拼版尺寸信息位于左侧下角";
pbzs = pbkuang.add("checkbox", [20, 3, 34, 17]);
pbzs.value = AutoMarkXml.pbzs - 0;
pbzs.helpTip = "拼版尺寸信息位于左上角";
pbzx = pbkuang.add("checkbox", [20, 45, 34, 61]);
pbzx.value = AutoMarkXml.pbzx - 0;
pbzx.helpTip = "拼版尺寸信息位于左下角";
pbys = pbkuang.add("checkbox", [36, 3, 50, 17]);
pbys.value = AutoMarkXml.pbys - 0;
pbys.helpTip = "拼版尺寸信息位于右上角";
pbyx = pbkuang.add("checkbox", [36, 45, 50, 61]);
pbyx.value = AutoMarkXml.pbyx - 0;
pbyx.helpTip = "拼版尺寸信息位于右下角";
pbycs = pbkuang.add("checkbox", [50, 16, 64, 30]);
pbycs.value = AutoMarkXml.pbycs - 0;
pbycs.helpTip = "拼版尺寸信息位于右侧上角";
pbycx = pbkuang.add("checkbox", [50, 32, 64, 46]);
pbycx.value = AutoMarkXml.pbycx - 0;
pbycx.helpTip = "拼版尺寸信息位于右侧下角";
jxkuang = xxwzzu.add("panel", [162, 80, 236, 150]);
jxxx = jxkuang.add("statictext", [21, 24, 48, 38], "角线");
jxxx.helpTip = "角线尺寸信息位置选项";
jxzcs = jxkuang.add("checkbox", [6, 16, 20, 30]);
jxzcs.value = AutoMarkXml.jxzcs - 0;
jxzcs.helpTip = "角线尺寸信息位于左侧上角";
jxzcx = jxkuang.add("checkbox", [6, 32, 20, 46]);
jxzcx.value = AutoMarkXml.jxzcx - 0;
jxzcx.helpTip = "角线尺寸信息位于左侧下角";
jxzs = jxkuang.add("checkbox", [20, 3, 34, 17]);
jxzs.value = AutoMarkXml.jxzs - 0;
jxzs.helpTip = "角线尺寸信息位于左上角";
jxzx = jxkuang.add("checkbox", [20, 45, 34, 61]);
jxzx.value = AutoMarkXml.jxzx - 0;
jxzx.helpTip = "角线尺寸信息位于左下角";
jxys = jxkuang.add("checkbox", [36, 3, 50, 17]);
jxys.value = AutoMarkXml.jxys - 0;
jxys.helpTip = "角线尺寸信息位于右上角";
jxyx = jxkuang.add("checkbox", [36, 45, 50, 61]);
jxyx.value = AutoMarkXml.jxyx - 0;
jxyx.helpTip = "角线尺寸信息位于右下角";
jxycs = jxkuang.add("checkbox", [50, 16, 64, 30]);
jxycs.value = AutoMarkXml.jxycs - 0;
jxycs.helpTip = "角线尺寸信息位于右侧上角";
jxycx = jxkuang.add("checkbox", [50, 32, 64, 46]);
jxycx.value = AutoMarkXml.jxycx - 0;
jxycx.helpTip = "角线尺寸信息位于右侧下角";
zizkuang = xxwzzu.add("panel", [236, 80, 310, 150]);
zizxx = zizkuang.add("statictext", [21, 24, 48, 38], "纸张");
zizxx.helpTip = "纸张尺寸信息位置选项";
zizzcs = zizkuang.add("checkbox", [6, 16, 20, 30]);
zizzcs.value = AutoMarkXml.zizzcs - 0;
zizzcs.helpTip = "纸张尺寸信息位于左侧上角";
zizzcx = zizkuang.add("checkbox", [6, 32, 20, 46]);
zizzcx.value = AutoMarkXml.zizzcx - 0;
zizzcx.helpTip = "纸张尺寸信息位于左侧下角";
zizzs = zizkuang.add("checkbox", [20, 3, 34, 17]);
zizzs.value = AutoMarkXml.zizzs - 0;
zizzs.helpTip = "纸张尺寸信息位于左上角";
zizzx = zizkuang.add("checkbox", [20, 45, 34, 61]);
zizzx.value = AutoMarkXml.zizzx - 0;
zizzx.helpTip = "纸张尺寸信息位于左下角";
zizys = zizkuang.add("checkbox", [36, 3, 50, 17]);
zizys.value = AutoMarkXml.zizys - 0;
zizys.helpTip = "纸张尺寸信息位于右上角";
zizyx = zizkuang.add("checkbox", [36, 45, 50, 61]);
zizyx.value = AutoMarkXml.zizyx - 0;
zizyx.helpTip = "纸张尺寸信息位于右下角";
zizycs = zizkuang.add("checkbox", [50, 16, 64, 30]);
zizycs.value = AutoMarkXml.zizycs - 0;
zizycs.helpTip = "纸张尺寸信息位于右侧上角";
zizycx = zizkuang.add("checkbox", [50, 32, 64, 46]);
zizycx.value = AutoMarkXml.zizycx - 0;
zizycx.helpTip = "纸张尺寸信息位于右侧下角";
yskuang = xxwzzu.add("panel", [310, 80, 384, 150]);
yswz = yskuang.add("statictext", [21, 24, 48, 38], "颜色");
yswz.helpTip = "颜色信息位置选项,请不要将〖文字信息〗和〖颜色信息〗选在同一个方位。";
yszcs = yskuang.add("radiobutton", [6, 16, 20, 30]);
yszcs.value = AutoMarkXml.yszcs - 0;
yszcs.helpTip = "颜色信息位于左侧上角";
yszcx = yskuang.add("radiobutton", [6, 34, 20, 48]);
yszcx.value = AutoMarkXml.yszcx - 0;
yszcx.helpTip = "颜色信息位于左侧下角";
yszs = yskuang.add("radiobutton", [19, 4, 33, 18]);
yszs.value = AutoMarkXml.yszs - 0;
yszs.helpTip = "颜色信息位于左上角";
yszx = yskuang.add("radiobutton", [19, 46, 33, 62]);
yszx.value = AutoMarkXml.yszx - 0;
yszx.helpTip = "颜色信息位于左下角";
ysys = yskuang.add("radiobutton", [37, 4, 51, 18]);
ysys.value = AutoMarkXml.ysys - 0;
ysys.helpTip = "颜色信息位于右上角";
ysyx = yskuang.add("radiobutton", [37, 46, 51, 62]);
ysyx.value = AutoMarkXml.ysyx - 0;
ysyx.helpTip = "颜色信息位于右下角";
ysycs = yskuang.add("radiobutton", [50, 16, 64, 30]);
ysycs.value = AutoMarkXml.ysycs - 0;
ysycs.helpTip = "颜色信息位于右侧上角";
ysycx = yskuang.add("radiobutton", [50, 34, 64, 48]);
ysycx.value = AutoMarkXml.ysycx - 0;
ysycx.helpTip = "颜色信息位于右侧下角";
pxu = xxwzzu.add("statictext", [18, 154, 95, 168], "排序首位:");
pxu1 = xxwzzu.add("radiobutton", [85, 154, 135, 168], "文件");
pxu1.value = AutoMarkXml.pxu1 - 0;
pxu1.helpTip = "文件名 + 日期 + 制作 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 路径";
pxu2 = xxwzzu.add("radiobutton", [135, 154, 185, 168], "文件");
pxu2.value = AutoMarkXml.pxu2 - 0;
pxu2.helpTip = "文件名 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 路径 + 制作 + 日期";
pxu3 = xxwzzu.add("radiobutton", [185, 154, 235, 168], "日期");
pxu3.value = AutoMarkXml.pxu3 - 0;
pxu3.helpTip = "日期 + 文件名 + 制作 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 路径";
pxu4 = xxwzzu.add("radiobutton", [235, 154, 285, 168], "路径");
pxu4.value = AutoMarkXml.pxu4 - 0;
pxu4.helpTip = "路径 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 制作 + 文件名 + 日期";
pxu5 = xxwzzu.add("radiobutton", [285, 154, 335, 168], "备注");
pxu5.value = AutoMarkXml.pxu5 - 0;
pxu5.helpTip = "备注 + 文件名 + 成品 + 拼版 + 角线 + 纸张 + 路径 + 制作 + 日期";
pxu6 = xxwzzu.add("radiobutton", [335, 154, 385, 168], "成品");
pxu6.value = AutoMarkXml.pxu6 - 0;
pxu6.helpTip = "成品 + 拼版 + 角线 + 纸张 + 备注 + 路径 + 制作 + 文件名 + 日期";
paperInfo = CTPzu.add("statictext", [10, 13, 85, 28], "纸张:", {
multiline: true
});
paperW = CTPzu.add("edittext", [50, 10, 100, 30], AutoMarkXml.paperW, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
X1 = CTPzu.add("statictext", [110, 13, 180, 28], "X", {
multiline: true
});
paperH = CTPzu.add("edittext", [126, 10, 176, 30], AutoMarkXml.paperH, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
paper3 = CTPzu.add("statictext", [193, 13, 243, 28], "咬口:");
paperB = CTPzu.add("edittext", [231, 10, 281, 30], AutoMarkXml.paperB, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
chuxi = CTPzu.add("statictext", [296, 13, 346, 28], "粗细:", {
multiline: true
});
py21Value = CTPzu.add("edittext", [335, 10, 385, 30], AutoMarkXml.py21Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py21Value.helpTip = "调节纸张框线粗细,默认:0.25 磅。\
调节纸张框线颜色,请在〖其他〗选项里面设置。";
platoInfo = CTPzu.add("statictext", [10, 38, 85, 53], "版材:", {
multiline: true
});
platoW = CTPzu.add("edittext", [50, 35, 100, 55], AutoMarkXml.platoW, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
X2 = CTPzu.add("statictext", [110, 38, 180, 53], "X", {
multiline: true
});
platoH = CTPzu.add("edittext", [126, 35, 176, 55], AutoMarkXml.platoH, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
plate3 = CTPzu.add("statictext", [193, 38, 243, 53], "咬口:");
platoB = CTPzu.add("edittext", [231, 35, 281, 55], AutoMarkXml.platoB, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
cxdb = CTPzu.add("statictext", [296, 38, 346, 53], "去边:", {
multiline: true
});
cxdbkuang = CTPzu.add("edittext", [335, 35, 385, 55], AutoMarkXml.cxdbkuang, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
autopage = CTPzu.add("checkbox", [10, 60, 90, 80], "自动页面");
autopage.value = AutoMarkXml.autopage - 0;
autopage.helpTip = "自动页面尺寸等于角线尺寸页面";
ABtrans = CTPzu.add("checkbox", [103, 60, 183, 80], "版纸设定");
ABtrans.value = AutoMarkXml.ABtrans - 0;
ABtrans.helpTip = "在纸张尺寸和版材尺寸时使用";
gird = CTPzu.add("checkbox", [195, 60, 255, 80], "辅助线");
gird.value = AutoMarkXml.gird - 0;
gird.helpTip = "生成辅助线会被锁定,解锁辅助线:菜单栏—对象—全部解锁";
onlyCTP = CTPzu.add("checkbox", [275, 60, 375, 80], "仅CTP");
onlyCTP.value = AutoMarkXml.onlyCTP - 0;
onlyCTP.helpTip = "勾选〖版纸设定〗加〖仅CTP〗选项,页面内不会生成角线和文字信息";
autopage.onClick = function () {
if (autopage.value == true) {
ABtrans.value = false;
gird.value = false;
onlyCTP.value = false;
}
};
PresetFile = new File(Preset);
if (PresetFile.exists == false) {
function10();
}
ABtrans.onClick = gird.onClick = onlyCTP.onClick = function () {
if (ABtrans.value == true || gird.value == true || onlyCTP.value == true) {
autopage.value = false;
}
};
otherInfo = CTPzu.add("statictext", [12.5, 103, 102.5, 118], "备注:", {
multiline: true
});
weidong3 = CTPzu.add("edittext", [51, 100, 382.5, 120], AutoMarkXml.weidong3, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
yushe0 = CTPzu.add("button", [12.5, 125, 82.5, 145], PresetXml.ys1Value);
yushe0.helpTip = "调取设置面板〖1〗数据";
yushe2 = CTPzu.add("button", [87.5, 125, 157.5, 145], PresetXml.ys2Value);
yushe2.helpTip = "调取设置面板〖2〗数据";
yushe3 = CTPzu.add("button", [162.5, 125, 232.5, 145], PresetXml.ys3Value);
yushe3.helpTip = "调取设置面板〖3〗数据";
yushe4 = CTPzu.add("button", [237.5, 125, 307.5, 145], PresetXml.ys4Value);
yushe4.helpTip = "调取设置面板〖4〗数据";
yushe5 = CTPzu.add("button", [312.5, 125, 382.5, 145], PresetXml.ys5Value);
yushe5.helpTip = "调取设置面板〖5〗数据";
yushe6 = CTPzu.add("button", [12.5, 150, 82.5, 170], PresetXml.ys6Value);
yushe6.helpTip = "调取设置面板〖6〗数据";
yushe7 = CTPzu.add("button", [87.5, 150, 157.5, 170], PresetXml.ys7Value);
yushe7.helpTip = "调取设置面板〖7〗数据";
yushe8 = CTPzu.add("button", [162.5, 150, 232.5, 170], PresetXml.ys8Value);
yushe8.helpTip = "调取设置面板〖8〗数据";
yushe9 = CTPzu.add("button", [237.5, 150, 307.5, 170], PresetXml.ys9Value);
yushe9.helpTip = "调取设置面板〖9〗数据";
yushe10 = CTPzu.add("button", [312.5, 150, 382.5, 170], PresetXml.ys10Value);
yushe10.helpTip = "调取设置面板〖10〗数据";
weidong1 = qitazu.add("statictext", [10, 13, 90, 28], "制作:", {
multiline: true
});
weidong2 = qitazu.add("edittext", [48, 10, 118, 30], AutoMarkXml.weidong2, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
fontname = qitazu.add("statictext", [10, 38, 90, 53], "字体:", {
multiline: true
});
fnValue = qitazu.add("edittext", [48, 35, 118, 55], AutoMarkXml.fnValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
fnValue.helpTip = "AI CS6 只能设置〖微软雅黑〗和〖宋体〗,CC 2015 以上版本可以设置微软字库字体和华文字库字体,例如输入:〖微软雅黑〗,〖华文宋体〗,〖华文楷体〗,〖华文仿宋〗,〖黑体〗等,不支持方正字库以及汉仪字库。";
fontsize = qitazu.add("statictext", [10, 63, 90, 78], "大小 pt:", {
multiline: true
});
fsValue = qitazu.add("edittext", [70, 60, 118, 80], AutoMarkXml.fsValue, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
fsValue.helpTip = "设置字体大小";
ylpy = qitazu.add("statictext", [127, 13, 207, 28], "咬口偏移:", {
multiline: true
});
py31Value = qitazu.add("edittext", [190, 10, 230, 30], AutoMarkXml.py31Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py31Value.helpTip = "调节咬口向外偏移";
sxpy = qitazu.add("statictext", [127, 38, 207, 53], "上下偏移:", {
multiline: true
});
py2Value = qitazu.add("edittext", [190, 35, 230, 55], AutoMarkXml.py2Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py2Value.helpTip = "调节信息文字组合整体向外偏移";
zypy = qitazu.add("statictext", [127, 63, 207, 78], "左右偏移:", {
multiline: true
});
py3Value = qitazu.add("edittext", [190, 60, 230, 80], AutoMarkXml.py3Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
py3Value.helpTip = "调节信息文字组合前方空格与裁切线的距离以及整体向咬口中间偏移";
xtiao4 = qitazu.add("panel", [241, 10, 243, 80]);
pxu11 = qitazu.add("radiobutton", [250, 10, 327, 30], "纸张框线");
pxu11.value = AutoMarkXml.pxu11 - 0;
pxu11.helpTip = "生成CTP纸张框线";
pxu12 = qitazu.add("radiobutton", [327, 10, 387, 30], "参考线");
pxu12.value = AutoMarkXml.pxu12 - 0;
pxu12.helpTip = "生成CTP纸张参考线";
langshe = qitazu.add("statictext", [253, 38, 273, 53], "C", {
multiline: true
});
py11Value = qitazu.add("edittext", [270, 35, 310, 55], AutoMarkXml.py11Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
hongshe = qitazu.add("statictext", [328, 38, 348, 53], "M", {
multiline: true
});
py12Value = qitazu.add("edittext", [345, 35, 385, 55], AutoMarkXml.py12Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
huangshe = qitazu.add("statictext", [253, 63, 273, 78], "Y", {
multiline: true
});
py13Value = qitazu.add("edittext", [270, 60, 310, 80], AutoMarkXml.py13Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
heishe = qitazu.add("statictext", [328, 63, 348, 78], "K", {
multiline: true
});
py14Value = qitazu.add("edittext", [345, 60, 385, 80], AutoMarkXml.py14Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
note2 = qitazu.add("edittext", [0, 88, 395, 180], PresetXml.note2, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 1,
enterKeySignalsOnChange: 0
});
note3 = bangzhu.add("edittext", [0, 0, 395, 180], "【印前角线X4.0】\
\
【使用方法】\
将压缩包中的〖AI印前角线X4.0.jsx〗脚本文件,复制到AI软件《Presets》(中文版是预设)—《zh-CN》—《脚本》文件夹中,重启AI软件,就可以在《文件》—《脚本》目录下找到〖AI印前角线X4.0〗菜单。\
可以将脚本添加到脚本管理器中使用,也可以将脚本添加到合集中使用。\
【字体设置】\
〖其他〗一〖字体〗[微软雅黑]一〖确定〗,这时正在使用中的脚本将会生成〖微软雅黑〗。AI CS6 只能设置〖微软雅黑〗和〖宋体〗,CC 2015 以上版本可以设置微软字库字体和华文字库字体,例如输入:〖微软雅黑〗,〖华文宋体〗,〖华文楷体〗,〖华文仿宋〗,〖黑体〗等,不支持方正字库以及汉仪字库。\
【纸张尺寸】\
输入〖纸张尺寸〗数据,勾选〖版纸设定〗,点击〖确定〗可以生成〖纸张尺寸〗框线,〖CTP〗选项设置框线〖粗细〗,〖其他〗选项设置框线〖颜色〗,默认:粗细0.25磅,K 100,你也可以选择生成〖参考线〗。\
【成品尺寸】\
齿线入场券。先画1个矩形,再画一根齿线〖置于底层〗,〖矩形〗和〖齿线〗不要群组,首先复制20张入场券,然后全选框线打开〖印前角线〗脚本,勾选〖成品尺寸〗点击〖确定〗,这时〖印前角线〗就会在20张入场券外框和有齿线的地方生成裁切线,同时也会生成入场券〖成品尺寸〗数据。\
【版纸设定】\
定位角线在版材中的位置。全选框线打开〖印前角线〗脚本,〖默认〗一〖版纸设定〗勾选一〖确定〗,这时成品框线就在默认数据〖版材650x550mm〗和〖咬口60mm〗处生成角线,可以直接存储为PDF文件出CTP。你也可以输入需要的版材尺寸等数据,勾选〖版纸设定〗,保存到预设〖1〗至〖10〗里面,方便以后调用预设数据。\
【齿线折线】\
齿线服装吊牌。首先画一个宽50mm x高80mm矩形,然后画一个3mm圆孔,将〖矩形+圆〗群组,最后画一根50mm齿线,齿线长度一定要同矩形宽度一样,〖矩形+圆〗和〖齿线〗不要群组,全选框线打开〖印前角线〗脚本点击〖确定〗,〖印前角线〗就会在吊牌外框和有齿线的地方生成裁切线。\
【获取帮助】\
〖控制面板〗和〖设置面板〗部分按钮和选项以及填写数据框内具有按钮提示功能,光标在按钮处或者在选项处,以及在填写数据框内停留3秒即可显示〖帮助〗信息。\
【智能咬口】\
〖智能咬口〗有5个选项,默认中间智能选项,画一个宽300mm x 高200mm电视横式矩形,生成角线咬口会在下方,如果画一个宽200mm x 高300mm手机直式矩形,生成角线咬口会在右侧。需要左右大翻咬口可以同时选择左右咬口,需要上下大翻咬口可以同时选择上下咬口。\
【信息偏移】\
〖其他〗〖上下偏移〗调节信息文字组合整体向外偏移,〖其他〗〖左右偏移〗调节信息文字组合前方空格与裁切线的距离以及整体向咬口中间偏移。\
【文字修改】\
〖设置〗〖保存位置〗将〖1〗改为〖一〗,将〖2〗改为〖二〗,在〖保存位置〗任意选项情况下点击〖保存〗,再点击〖默认〗,控制面板〖预设〗按钮文字由原来〖1〗和〖2〗就会变成〖一〗和〖二〗,以此类推。\
【记忆功能】\
〖常用〗情况下修改数据点击〖确定〗退出脚本,再次进入脚本将是修改过的〖常用〗数据。推荐使用〖常用〗数据,选中框线打开脚本直接按〖回车〗键,一键生成角线。〖确定〗和〖保存〗请按〖回车键〗,〖取消〗请按〖Esc键〗。\
〖默认〗情况下修改数据点击〖确定〗退出脚本,再次进入脚本将是修改过的〖默认〗数据。\
〖1〗至〖10〗情况下修改数据点击〖确定〗退出脚本,再次进入脚本将是修改过的〖常用〗数据,不会显示〖1〗至〖10〗数据,只能点击〖控制面板〗〖预设〗〖1〗至〖10〗才能获取预存的数据。\
【十字高度】\
裁切线默认长度〖9mm〗,十字线默认高度〖9mm〗。示例:裁切线长度〖9mm〗,十字线高度〖16mm〗,十字线自动向外延长。或者裁切线长度〖3mm〗,十字线高度〖9mm〗,十字线自动向外延长。\
【十字偏移】\
十字偏移只针对十字〖高度〗起作用。示例:十字线〖宽度〗+〖圆形〗跟随裁切线长度而变化,如果裁切线长度〖9mm〗,十字线〖宽度〗+〖圆形〗就在〖4.5mm〗的地方居中。如果需要生成像AI自带裁切标记十字中线离开成品线4.5mm,输入〖裁切线长度9mm〗+〖十字线宽25mm〗+〖十字线高9mm〗+〖十字线圆形0mm〗+〖十字线偏移1.5mm〗即可。\
【记事本】\
可以存储大量客户信息以及后道工艺流程,方便用户复制粘贴文本到〖备注〗栏内或者AI软件页面中。\
示例:在控制面板〖记事本〗里填写需要保存的文本,〖设置〗—〖保存位置〗,在〖保存位置〗任意选项情况下点击〖保存〗,这时〖记事本〗文字就保存在脚本里,下次可以直接点击〖记事本〗进行读取。如果将〖记事本〗文本进行了修改,必须进入设置面板在〖保存位置〗任意选项情况下点击〖保存〗。\
CS 6 记事本文本编辑换行:Alt + 回车键。AI 2022 记事本文本编辑换行:回车键。\
【位置图】\
首先进入〖信息〗版块勾选相应选项以及勾选〖总控〗开关相应方位,然后进入〖位置图〗版块勾选所需文字信息方位,点击〖设置〗〖常用〗〖保存〗,这时文字信息位置数据就保存到了〖常用〗里面。\
〖信息〗版块所有选项控制〖位置图〗文字信息方位,〖位置图〗文字信息方位属于三级菜单。\
〖颜色〗版块所有选项控制〖位置图〗颜色信息方位,〖位置图〗颜色信息方位属于二级菜单。\
示例:〖位置图〗勾选方位同〖总控〗开关勾选方位要保持一致,如果将〖信息〗版块左下角〖总控〗开关勾选,〖位置图〗版块左下角文字信息方位没有勾选,生成角线将会在左下角空白方位出现空格游离点。\
请不要将〖文字信息〗和〖颜色信息〗选在同一个方位。\
【总控】\
〖信息〗版块〖总控〗开关可以控制〖信息〗版块选项,以及控制〖位置图〗版块文字信息方位,如果〖总控〗开关没有勾选,其它版块勾选生成角线也不会出现文字信息。一级〖总控〗开关>二级〖信息〗版块选项>三级〖位置图〗文字信息方位。\
【排序】\
可以根据需要选择不同排序方式。\
排序1:文件名 + 日期 + 制作 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 路径。\
排序2:文件名 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 路径 + 制作 + 日期。\
排序3:日期 + 文件名 + 制作 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 路径。\
排序4:路径 + 成品 + 拼版 + 角线 + 纸张 + 备注 + 制作 + 文件名 + 日期。\
排序5:备注 + 文件名 + 成品 + 拼版 + 角线 + 纸张 + 路径 + 制作 + 日期。\
排序6:成品 + 拼版 + 角线 + 纸张 + 备注 + 路径 + 制作 + 文件名 + 日期。\
【路径】\
〖路径〗选项包含文件名,如果需要将〖路径〗和〖文件名〗排在一行,可以选择〖排序4〗路径首位,勾选〖路径〗选项,〖文件名〗选项不需要勾选。\
【拉规】\
首先在AI软件里面一比一画拉规线条,存储『拉规线.PDF』文件到D盘或其它盘内。全选框线打开〖印前角线〗脚本,〖默认〗一〖链接〗一勾选拉规位置选项,〖拉规〗选择『拉规线.PDF』—〖确定〗,拉规线就会在默认数据〖110mm〗处生成。\
〖底部〗〖链接〗三个方向选项,左右选项可以用来链接『拉规线.PDF』。\
【链接】\
可以同时链接〖拉规〗『拉规线.PDF』+〖顶部〗『色条.PDF』+〖底部〗『测控条.PDF』,共三个PDF文件。\
〖底部〗左右选项可以链接『拉规线.PDF』,〖底部〗下方选项可以链接『测控条.PDF』。\
【常见问题】\
[1] 专色隶属于CMYK组,CMYK至少勾选一个颜色,专色才会显示。例如〖PANTONE 185 C〗色标,脚本默认显示〖185 C〗,如果需要显示全称潘通专色,在〖PANTONE代替:〗后面框内输入〖PANTONE+空格〗或者输入〖潘通〗,即可显示〖PANTONE 185 C〗或〖潘通185 C〗。\
[2] 由于脚本从画板左上角X0 Y0开始计算,所以需要将文档放在画板内才能生成角线,否则有时生成角线会出现错误。示例:如果将〖300x200mm〗框线生成角线,设置画板尺寸必须大于〖300x200mm〗。\
【最新版本】\
〖印前角线V22.0〗大版式输出版\
〖精简角线V8.0〗大版式印务版\
〖印前角线X4.0〗小版式输出版\
〖印前角线Z5.0〗折叠式印务版\
【参考文献】\
[1] CPC中文印刷社区 http://www.cnprint.org\
[2] 角线X v7.3, tiandiyiqi\
[3] 增强版角线 WJL-8.3, WJL修改版\
[4] 印前角线清爽版 1.5, CPC静听枫雨\
\
CPC中文印刷社区\
tiantian1998\
2022年7月3日\
", {
readonly: 1,
noecho: 0,
borderless: 0,
multiline: 1,
enterKeySignalsOnChange: 0
});
chushi = regWin.add("button", [25, 229, 75, 252], "默认");
chushi.helpTip = "还原为默认数据";
shezhi = regWin.add("button", [80, 229, 130, 252], "设置");
shezhi.helpTip = "设置保存预设数据";
yushe1 = regWin.add("button", [135, 229, 185, 252], "常用");
yushe1.helpTip = "调取设置面板〖常用〗数据";
okBt = regWin.add("button", [230, 229, 310, 252], "确定", {
name: "ok"
});
okBt.helpTip = "确定请按回车键";
cancleBt = regWin.add("button", [315, 229, 395, 252], "取消");
cancleBt.helpTip = "取消请按Esc键";
okBt.onClick = function () {
function4();
regWin2.close();
if (gArgG === ys1 || gArgG2 === ys2 || gArgG3 === ys3 || gArgG4 === ys4 || gArgG5 === ys5 || gArgG6 === ys6 || gArgG7 === ys7 || gArgG8 === ys8 || gArgG9 === ys9 || gArgG10 === ys10 || gArgG0 === ys0) {
gArgG = gArgG2 = gArgG3 = gArgG4 = gArgG5 = gArgG6 = gArgG7 = gArgG8 = gArgG9 = gArgG10 = gArgG0;
function7();
} else {
function7();
}
v = 2.83464566929134;
linelength = lLValue.text * v;
lw = lwValue.text * v;
linespace = lSValue.text * v;
outspace = oSValue.text * v;
qubian = cxdbkuang.text * v;
if (boolCx.value == true) {
boolC = true;
} else {
boolC = false;
}
if (boolMx.value == true) {
boolM = true;
} else {
boolM = false;
}
if (boolYx.value == true) {
boolY = true;
} else {
boolY = false;
}
if (boolKx.value == true) {
boolK = true;
} else {
boolK = false;
}
cspace = csValue.text * v;
ptRe = prValue.text;
od = rdValue.text * v;
cw = cwValue.text * v;
ch = chValue.text * v;
level = clValue.text;
Plate_width = platoW.text * v;
Plate_heigth = platoH.text * v;
Plate_bite = platoB.text * v;
Paper_width = paperW.text * v;
Paper_heigth = paperH.text * v;
Paper_bite = paperB.text * v;
if (CMYK.value == true) {
colormodul = 0;
}
if (mingcheng.value == true) {
colormodul = 1;
}
if (wu.value == true) {
colormodul = 2;
}
if (buhanchuxue.value == true) {
bleeded = false;
bleeded2 = false;
}
if (quanbuchuxue.value == true) {
bleeded = true;
bleeded2 = true;
}
if (dabanchuxue.value == true) {
bleeded = true;
bleeded2 = false;
}
if (doubleLine.value == true) {
shuangjiaoxian = true;
} else {
shuangjiaoxian = false;
}
if (JPLine.value == true) {
rishicaiqie = true;
} else {
rishicaiqie = false;
}
if (njLine.value == true) {
neijiaoxian = true;
} else {
neijiaoxian = false;
}
for (var i = 0; i < textFonts.length; i += 1) {
if (textFonts[i].family == fnValue.text && textFonts[i].style == "Regular" || textFonts[i].style == "常规体" || textFonts[i].style == "L" || textFonts[i].style == "R") {
Textfontname = textFonts[i];
}
}
textfontsize = fsValue.text;
regWin.close();
function6();
};
cancleBt.onClick = function () {
regWin.close();
};
shezhi.onClick = function () {
function4();
regWin2.center();
regWin2.show();
};
chushi.onClick = function () {
gArgG = gArgG2;
function2();
regWin.close();
function1();
};
yushe0.onClick = function () {
gArgG = ys0;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖1〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe6.onClick = function () {
gArgG = ys6;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖6〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe7.onClick = function () {
gArgG = ys7;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖7〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe8.onClick = function () {
gArgG = ys8;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖8〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe9.onClick = function () {
gArgG = ys9;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖9〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe10.onClick = function () {
gArgG = ys10;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖10〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe1.onClick = function () {
gArgG = ys1;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖常用〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe2.onClick = function () {
gArgG = ys2;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖2〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe3.onClick = function () {
gArgG = ys3;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖3〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe4.onClick = function () {
gArgG = ys4;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖4〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
yushe5.onClick = function () {
gArgG = ys5;
NewFileVal = new File(gArgG);
if (NewFileVal.exists == false) {
alert("输入数据点击〖设置〗,〖保存位置〗〖5〗〖保存〗!");
} else {
regWin.close();
function1();
}
};
regWin.center();
regWin.show();
}
function function4() {
regWin2 = new Window("dialog", "设置", [0, 0, 420, 265], {
resizeable: true,
resizeable: false
});
yushe2 = regWin2.add("panel", [10, 65, 410, 170], "保存位置");
weizhi0 = yushe2.add("radiobutton", [10, 15, 30, 35]);
weizhi0.value = 0;
weizhi0.helpTip = "保存数据至预设〖1〗";
weizhi2 = yushe2.add("radiobutton", [105, 15, 125, 35]);
weizhi2.value = 0;
weizhi2.helpTip = "保存数据至预设〖2〗";
weizhi3 = yushe2.add("radiobutton", [200, 15, 220, 35]);
weizhi3.value = 0;
weizhi3.helpTip = "保存数据至预设〖3〗";
weizhi4 = yushe2.add("radiobutton", [295, 15, 315, 35]);
weizhi4.value = 0;
weizhi4.helpTip = "保存数据至预设〖4〗";
weizhi5 = yushe2.add("radiobutton", [10, 40, 30, 60]);
weizhi5.value = 0;
weizhi5.helpTip = "保存数据至预设〖5〗";
weizhi6 = yushe2.add("radiobutton", [105, 40, 125, 60]);
weizhi6.value = 0;
weizhi6.helpTip = "保存数据至预设〖6〗";
weizhi7 = yushe2.add("radiobutton", [200, 40, 220, 60]);
weizhi7.value = 0;
weizhi7.helpTip = "保存数据至预设〖7〗";
weizhi8 = yushe2.add("radiobutton", [295, 40, 315, 60]);
weizhi8.value = 0;
weizhi8.helpTip = "保存数据至预设〖8〗";
weizhi9 = yushe2.add("radiobutton", [10, 65, 30, 85]);
weizhi9.value = 0;
weizhi9.helpTip = "保存数据至预设〖9〗";
weizhi10 = yushe2.add("radiobutton", [105, 65, 125, 85]);
weizhi10.value = 0;
weizhi10.helpTip = "保存数据至预设〖10〗";
weizhi1 = yushe2.add("radiobutton", [200, 65, 300, 85], "常用");
weizhi1.value = 1;
weizhi1.helpTip = "保存数据至预设〖常用〗";
ys0Value = yushe2.add("statictext", [0, 0, 0, 0], PresetXml.ys0Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys1Value = yushe2.add("edittext", [30, 15, 95, 35], PresetXml.ys1Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys2Value = yushe2.add("edittext", [125, 15, 190, 35], PresetXml.ys2Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys3Value = yushe2.add("edittext", [220, 15, 285, 35], PresetXml.ys3Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys4Value = yushe2.add("edittext", [315, 15, 380, 35], PresetXml.ys4Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys5Value = yushe2.add("edittext", [30, 40, 95, 60], PresetXml.ys5Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys6Value = yushe2.add("edittext", [125, 40, 190, 60], PresetXml.ys6Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys7Value = yushe2.add("edittext", [220, 40, 285, 60], PresetXml.ys7Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys8Value = yushe2.add("edittext", [315, 40, 380, 60], PresetXml.ys8Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys9Value = yushe2.add("edittext", [30, 65, 95, 85], PresetXml.ys9Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
ys10Value = yushe2.add("edittext", [125, 65, 190, 85], PresetXml.ys10Value, {
readonly: 0,
noecho: 0,
borderless: 0,
multiline: 0,
enterKeySignalsOnChange: 0
});
infoText = regWin2.add("statictext", [25, 218, 250, 238], "CPC中文印刷社区");
infoText.margins = 0;
infoText.enabled = false;
shezhiOK = regWin2.add("button", [230, 215, 310, 238], "保存", {
name: "ok"
});
shezhiOK.helpTip = "保存请按回车键";
shezhiquziao = regWin2.add("button", [315, 215, 395, 238], "取消");
shezhiquziao.helpTip = "取消请按Esc键";
shezhiOK.onClick = function () {
if (weizhi1.value) {
gArgG = ys1;
} else if (weizhi2.value) {
gArgG = ys2;
} else if (weizhi3.value) {
gArgG = ys3;
} else if (weizhi4.value) {
gArgG = ys4;
} else if (weizhi5.value) {
gArgG = ys5;
} else if (weizhi6.value) {
gArgG = ys6;
} else if (weizhi7.value) {
gArgG = ys7;
} else if (weizhi8.value) {
gArgG = ys8;
} else if (weizhi9.value) {
gArgG = ys9;
} else if (weizhi10.value) {
gArgG = ys10;
} else if (weizhi0.value) {
gArgG = ys0;
} else {
gArgG = gArgG2 = gArgG3 = gArgG4 = gArgG5 = gArgG6 = gArgG7 = gArgG8 = gArgG9 = gArgG10 = gArgG0;
}
function7();
function9();
regWin2.close();
};
shezhiquziao.onClick = function () {
regWin2.close();
};
}
function function6() {
doc = activeDocument;
var layName = "角线图层";
try {
var cutlayer = doc.layers[layName];
cutlayer.locked = false;
cutlayer.visible = true;
} catch (err) {
var cutlayer = doc.layers.add();
cutlayer.name = layName;
}
g = cutlayer.groupItems.add();
regGroup = g.groupItems.add();
for (var i = 0; i < doc.spots.length; i += 1) {
if (doc.spots[i].typename == "Spot" && doc.spots[i].colorType == ColorModel.REGISTRATION) {
regColor = new SpotColor();
regColor.spot = doc.spots[i];
break;
}
}
theSelect = doc.selection;
if (theSelect.length == 0) {
doc.selectObjectsOnActiveArtboard();
theSelect = doc.selection;
}
lmin = theSelect[0].geometricBounds[0];
tmax = theSelect[0].geometricBounds[1];
lmax = theSelect[0].geometricBounds[2];
tmin = theSelect[0].geometricBounds[3];
if (bleeded2 == true) {
w1 = theSelect[0].width - (outspace * 2);
h1 = theSelect[0].height - (outspace * 2);
} else {
w1 = theSelect[0].width;
h1 = theSelect[0].height;
}
for (var i = 1; i < theSelect.length; i += 1) {
if (lmin > theSelect[i].geometricBounds[0]) {
lmin = theSelect[i].geometricBounds[0];
}
if (tmax < theSelect[i].geometricBounds[1]) {
tmax = theSelect[i].geometricBounds[1];
}
if (lmax < theSelect[i].geometricBounds[2]) {
lmax = theSelect[i].geometricBounds[2];
}
if (tmin > theSelect[i].geometricBounds[3]) {
tmin = theSelect[i].geometricBounds[3];
}
}
if (bleeded == true) {
lmin = lmin + outspace;
tmax = tmax - outspace;
lmax = lmax - outspace;
tmin = tmin + outspace;
}
if (onlyCTP.value == false) {
w = [];
for (var i = 0; i < theSelect.length; i += 1) {
if (bleeded2 == true) {
w.push(theSelect[i].geometricBounds[0] + outspace);
w.push(theSelect[i].geometricBounds[2] - outspace);
} else {
w.push(theSelect[i].geometricBounds[0]);
w.push(theSelect[i].geometricBounds[2]);
}
}
if (shuangjiaoxian == true) {
if (bleeded == true) {
w.push(lmin);
w.push(lmax);
w.push(lmin - outspace);
w.push(lmax + outspace);
} else {
w.push(lmin - outspace);
w.push(lmax + outspace);
}
}
ww = [];
for (var i = 0,
i2 = w.length; i < i2; i++) {
!RegExp(w[i], "g").test(ww.join(",")) && ww.push(w[i]);
}
Array.prototype.indexOf = function (pbc) {
for (var i = 0; i < this.length; i += 1) {
if (this[i] == pbc) {
return i;
}
}
return - 1;
};
Array.prototype.remove = function (ml) {
if (isNaN(ml) || ml > this.length) {
return false;
}
for (var i = 0,
kk = 0; i < this.length; i++) {
if (this[i] != this[ml]) {
this[kk++] = this[i];
}
}
this.length -= 1;
};
a = ww.indexOf(15279);
if (a == 0) {
ww.remove(a);
}
a = ww.indexOf(- 17487);
if (a == 0) {
ww.remove(a);
}
h = [];
for (var i = 0; i < theSelect.length; i += 1) {
if (bleeded2 == true) {
h.push(theSelect[i].geometricBounds[1] - outspace);
h.push(theSelect[i].geometricBounds[3] + outspace);
} else {
h.push(theSelect[i].geometricBounds[1]);
h.push(theSelect[i].geometricBounds[3]);
}
}
if (shuangjiaoxian == true) {
if (bleeded == true) {
h.push(tmax);
h.push(tmin);
h.push(tmax + outspace);
h.push(tmin - outspace);
} else {
h.push(tmax + outspace);
h.push(tmin - outspace);
}
}
hh = [];
for (var i = 0,
i2 = h.length; i < i2; i++) {
!RegExp(h[i], "g").test(hh.join(",")) && hh.push(h[i]);
}
a = hh.indexOf(- 1105);
if (a == 0) {
hh.remove(a);
}
a = hh.indexOf(31660);
if (a == 0) {
hh.remove(a);
}
if (colormodul != 2) {
text = g.textFrames.add();
text.contents = "";
text.textRange.characterAttributes.textFont = Textfontname;
if (colormodul == 0) {
var jxo = 1;
if (boolC) {
text.contents = text.contents + "C";
}
if (boolM) {
text.contents = text.contents + "M";
}
if (boolY) {
text.contents = text.contents + "Y";
}
if (boolK) {
text.contents = text.contents + "K";
}
} else {
if (colormodul == 1) {
var jxo = 5;
if (boolC) {
text.contents = text.contents + "青色(C)";
}
if (boolM) {
text.contents = text.contents + "洋红(M)";
}
if (boolY) {
text.contents = text.contents + "黄色(Y)";
}
if (boolK) {
text.contents = text.contents + "黑色(K)";
}
}
}
for (var i = 0; i < doc.spots.length; i += 1) {
if (doc.spots[i].typename == "Spot" && doc.spots[i].colorType != ColorModel.REGISTRATION && doc.spots[i].colorType != ColorModel.PROCESS) {
spotName = doc.spots[i].name.replace("PANTONE ", ptRe);
spotName = spotName + " ";
text.contents = text.contents + spotName;
}
}
textl = 0;
colorArr = [];
if (boolC) {
c_Color = new CMYKColor();
c_Color.black = 0;
c_Color.cyan = 100;
c_Color.magenta = 0;
c_Color.yellow = 0;
colorArr.push(c_Color);
for (i = textl; i < (textl + jxo); i++) {
text.textRanges[i].characterAttributes.fillColor = c_Color;
text.textRanges[i].characterAttributes.stroked = false;
text.textRanges[i].characterAttributes.size = textfontsize;
}
textl = textl + jxo;
}
if (boolM) {
m_Color = new CMYKColor();
m_Color.black = 0;
m_Color.cyan = 0;
m_Color.magenta = 100;
m_Color.yellow = 0;
colorArr.push(m_Color);
for (i = textl; i < (textl + jxo); i++) {
text.textRanges[i].characterAttributes.fillColor = m_Color;
text.textRanges[i].characterAttributes.stroked = false;
text.textRanges[i].characterAttributes.size = textfontsize;
}
textl = textl + jxo;
}
if (boolY) {
y_Color = new CMYKColor();
y_Color.black = 0;
y_Color.cyan = 0;
y_Color.magenta = 0;
y_Color.yellow = 100;
colorArr.push(y_Color);
for (i = textl; i < (textl + jxo); i++) {
text.textRanges[i].characterAttributes.fillColor = y_Color;
text.textRanges[i].characterAttributes.stroked = false;
text.textRanges[i].characterAttributes.size = textfontsize;
}
textl = textl + jxo;
}
if (boolK) {
k_Color = new CMYKColor();
k_Color.black = 100;
k_Color.cyan = 0;
k_Color.magenta = 0;
k_Color.yellow = 0;
colorArr.push(k_Color);
for (i = textl; i < (textl + jxo); i++) {
text.textRanges[i].characterAttributes.fillColor = k_Color;
text.textRanges[i].characterAttributes.stroked = false;
text.textRanges[i].characterAttributes.size = textfontsize;
}
textl = textl + jxo;
}
for (var i = 0; i < doc.spots.length; i += 1) {
if (doc.spots[i].typename == "Spot" && doc.spots[i].colorType != ColorModel.REGISTRATION && doc.spots[i].colorType != ColorModel.PROCESS) {
Color = new SpotColor();
Color.spot = doc.spots[i];
colorArr.push(Color);
spotName = doc.spots[i].name.replace("PANTONE ", ptRe);
spotName = spotName + " ";
textl = textl + spotName.length;
for (var ow = 0; ow < spotName.length; ow += 1) {
text.textRanges[(textl - spotName.length) + ow].characterAttributes.fillColor = Color;
text.textRanges[(textl - spotName.length) + ow].characterAttributes.stroked = false;
text.textRanges[(textl - spotName.length) + ow].characterAttributes.size = textfontsize;
}
}
}
if (yszcs.value == true) {
text.rotate(-90);
text.left = lmin - text.width - 8.5 - (py2Value.text * v);
text.top = tmax - (py3Value.text * v);
}
if (yszcx.value == true) {
text.rotate(90);
text.left = lmin - text.width - 7.5 - (py2Value.text * v);
text.top = tmin + text.height + (py3Value.text * v);
}
if (yszs.value == true) {
text.left = lmin + (py3Value.text * v);
text.top = tmax + 7 + text.height + (py2Value.text * v);
}
if (yszx.value == true) {
text.left = lmin + (py3Value.text * v);
text.top = tmin - 8.5 - (py2Value.text * v);
}
if (ysys.value == true) {
text.left = lmax - text.width - (py3Value.text * v);
text.top = tmax + 7 + text.height + (py2Value.text * v);
}
if (ysyx.value == true) {
text.left = lmax - text.width - (py3Value.text * v);
text.top = tmin - 8.5 - (py2Value.text * v);
}
if (ysycs.value == true) {
text.rotate(-90);
text.left = lmax + text.width - fsValue.text + (py2Value.text * v) + 6;
text.top = tmax - (py3Value.text * v);
}
if (ysycx.value == true) {
text.rotate(90);
text.left = lmax + text.width - fsValue.text + (py2Value.text * v) + 7;
text.top = tmin + text.height + (py3Value.text * v);
}
OpacityArr = level.split(",");
var jxwo = Math.ceil((lmax - lmin) / ((cw + cspace) * OpacityArr.length * colorArr.length));
var jxe = parseInt((lmax - lmin) / (cw + cspace)) - 1;
var oaVal = 0;
var jxkg = ((lmax - lmin) - ((cw + cspace) * jxe)) / 2;
temp = colorArr;
for (var i = 1; i < jxwo; i += 1) {
colorArr = colorArr.concat(temp);
}
if (colorLable.value == true) {
for (var i = 0; i < colorArr.length; i += 1) {
oaVal = OpacityArr.length * i;
if (i == 0) {
left = lmin + jxkg;
} else {
left = left + cw + cspace;
}
for (var ow = 0; ow < OpacityArr.length && oaVal < jxe; ow++, oaVal++) {
if (ow == 0) {
left = left;
} else {
left = left + cw + cspace;
}
if (linespace > outspace) {
var jxq = linespace + (py4Value.text * v);
} else {
var jxq = outspace + (py4Value.text * v);
}
rect = g.pathItems.rectangle(tmax + ch + jxq, left, cw, ch);
rect.filled = true;
rect.fillColor = colorArr[i];
rect.opacity = OpacityArr[ow];
rect.stroked = false;
}
}
}
}
if (sbValue.text != "") {
link2file = g.placedItems.add();
link2file.file = new File(sbValue.text);
if ((lmax - lmin) < (tmax - tmin)) {
link2file.rotate(90);
link2file.left = lmin - link2file.width - 8.5 - (py41Value.text * v);
link2file.top = ((tmax + tmin) / 2) + (link2file.height / 2) + (py5Value.text * v);
} else {
link2file.left = ((lmax + lmin) / 2) - ((link2file.width) / 2) + (py41Value.text * v);
link2file.top = tmax + 8.5 + link2file.height + (py5Value.text * v);
}
if (embed.value == true) {
link2file.embed();
}
}
if (scValue.text != "") {
link3file = g.placedItems.add();
link3file.file = new File(scValue.text);
if (pxu33.value == true) {
link3file.left = ((lmax + lmin) / 2) - ((link3file.width) / 2) + (py42Value.text * v);
link3file.top = tmin - 8.5 - (py6Value.text * v);
}
if (pxu31.value == true) {
link3file.left = lmin - link3file.width - 8.5 - (py42Value.text * v);
link3file.top = tmin + link3file.height + (py6Value.text * v);
}
if (pxu32.value == true) {
link3file.left = lmax + 8.5 + (py42Value.text * v);
link3file.top = tmin + link3file.height + (py6Value.text * v);
}
if (embed.value == true) {
link3file.embed();
}
}
if (bite2.value == true) {
text = g.textFrames.add();
text.contents = "咬 口";
text.textRange.characterAttributes.textFont = Textfontname;
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(180);
text.left = ((lmax + lmin) / 2) - (text.width / 2);
text.top = tmax + (linelength / 2) + (text.height / 2) + 10.5 + (py31Value.text * v);
}
if (bite3.value == true) {
text = g.textFrames.add();
text.contents = "咬 口";
text.textRange.characterAttributes.textFont = Textfontname;
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(- 90);
text.left = ((lmin - linespace) - (linelength / 2)) - (text.width / 2) - (py31Value.text * v) - 2;
text.top = ((tmax + tmin) / 2) + (text.height / 2);
}
if (bite4.value == true) {
text = g.textFrames.add();
text.contents = "咬 口";
text.textRange.characterAttributes.textFont = Textfontname;
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(90);
text.left = (lmax + linespace + (linelength / 2)) - (text.width / 2) + (py31Value.text * v) + 2;
text.top = ((tmax + tmin) / 2) + (text.height / 2);
}
if (bite.value == true) {
text = g.textFrames.add();
text.contents = "咬 口";
text.textRange.characterAttributes.textFont = Textfontname;
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.left = ((lmax + lmin) / 2) - (text.width / 2);
text.top = ((tmin - linespace) - (linelength / 2)) + (text.height / 2) - (py31Value.text * v) - 2;
}
if (bite5.value == true) {
text = g.textFrames.add();
text.contents = "咬 口";
text.textRange.characterAttributes.textFont = Textfontname;
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
if ((lmax - lmin) < (tmax - tmin)) {
if (flagui.value == true) {
text.rotate(-90);
text.left = ((lmin - linespace) - (linelength / 2)) - (text.width / 2);
text.top = ((tmax + tmin) / 2) + (text.height / 2);
} else {
text.rotate(90);
text.left = (lmax + linespace + (linelength / 2)) - (text.width / 2) + (py31Value.text * v);
text.top = ((tmax + tmin) / 2) + (text.height / 2);
}
} else {
text.left = ((lmax + lmin) / 2) - (text.width / 2);
text.top = ((tmin - linespace) - (linelength / 2)) + (text.height / 2) - (py31Value.text * v) - 2;
}
}
for (var i = 0; i < ww.length; i += 1) {
rg = regGroup.groupItems.add();
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
if (neijiaoxian == true && outspace == linespace) {
tPathVal.setEntirePath([[ww[i], tmin + linelength], [ww[i], (tmin + linelength) - linelength]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[ww[i], tmax - linelength], [ww[i], (tmax - linelength) + linelength]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
} else {
if (shuangjiaoxian == true && rishicaiqie == true && outspace == linespace) {
if (ww[i] == (lmin - outspace) || ww[i] == (lmax + outspace)) {
tPathVal.setEntirePath([[ww[i], tmin], [ww[i], (tmin - linelength) - outspace]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.strokeDashes = [];
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[ww[i], tmax], [ww[i], tmax + linelength + outspace]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
} else {
tPathVal.setEntirePath([[ww[i], tmin - linespace], [ww[i], (tmin - linespace) - linelength]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[ww[i], tmax + linespace], [ww[i], tmax + linespace + linelength]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
}
} else {
tPathVal.setEntirePath([[ww[i], tmin - linespace], [ww[i], (tmin - linespace) - linelength]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[ww[i], tmax + linespace], [ww[i], tmax + linespace + linelength]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
}
}
}
for (var i = 0; i < hh.length; i += 1) {
rg = regGroup.groupItems.add();
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
if (neijiaoxian == true && outspace == linespace) {
tPathVal.setEntirePath([[lmin + linelength, hh[i]], [(lmin + linelength) - linelength, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmax - linelength, hh[i]], [(lmax - linelength) + linelength, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
} else {
if (shuangjiaoxian == true && rishicaiqie == true && outspace == linespace) {
if (hh[i] == (tmin - outspace) || hh[i] == (tmax + outspace)) {
tPathVal.setEntirePath([[lmin, hh[i]], [(lmin - linelength) - outspace, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmax, hh[i]], [lmax + linelength + outspace, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
} else {
tPathVal.setEntirePath([[lmin - linespace, hh[i]], [(lmin - linespace) - linelength, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmax + linespace, hh[i]], [lmax + linespace + linelength, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
}
} else {
tPathVal.setEntirePath([[lmin - linespace, hh[i]], [(lmin - linespace) - linelength, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = rg.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmax + linespace, hh[i]], [lmax + linespace + linelength, hh[i]]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
}
}
}
gr = g.groupItems.add();
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[(lmin - linespace) - (pyValue.text * v), tmax - ((tmax - tmin) / 2)], [(lmin - linespace) - (gdValue.text * v) - (pyValue.text * v), tmax - ((tmax - tmin) / 2)]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[(lmin - linespace) - (linelength / 2), (tmax - ((tmax - tmin) / 2)) + (((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2)], [(lmin - linespace) - (linelength / 2), (tmax - ((tmax - tmin) / 2)) - ((((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2))]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[(lmax + linespace) + (pyValue.text * v), tmax - ((tmax - tmin) / 2)], [(lmax + linespace) + (gdValue.text * v) + (pyValue.text * v), tmax - ((tmax - tmin) / 2)]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmax + linespace + (linelength / 2), (tmax - ((tmax - tmin) / 2)) + (((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2)], [lmax + linespace + (linelength / 2), (tmax - ((tmax - tmin) / 2)) - ((((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2))]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[(lmin + ((lmax - lmin) / 2)) - ((((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2)), tmax + linespace + (linelength / 2)], [lmin + ((lmax - lmin) / 2) + (((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2), tmax + linespace + (linelength / 2)]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmin + ((lmax - lmin) / 2), (tmax + linespace) + (pyValue.text * v)], [lmin + ((lmax - lmin) / 2), tmax + linespace + (gdValue.text * v) + (pyValue.text * v)]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[(lmin + ((lmax - lmin) / 2)) - ((((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2)), (tmin - linespace) - (linelength / 2)], [lmin + ((lmax - lmin) / 2) + (((kdValue.text / 2) - (lLValue.text / 2)) * v) + (linelength / 2), (tmin - linespace) - (linelength / 2)]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
tPathVal = gr.pathItems.add();
tPathVal.strokeDashes = [];
tPathVal.setEntirePath([[lmin + ((lmax - lmin) / 2), (tmin - linespace) - (pyValue.text * v)], [lmin + ((lmax - lmin) / 2), (tmin - linespace) - (gdValue.text * v) - (pyValue.text * v)]]);
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = lw;
tPathVal.filled = false;
o = gr.pathItems.ellipse((tmax - ((tmax - tmin) / 2)) + (od / 2), ((lmin - (od / 2)) - linespace) - (linelength / 2), od, od);
o.strokeColor = regColor;
o.strokeWidth = lw;
o.strokeDashes = [];
o.filled = false;
o = gr.pathItems.ellipse((tmax - ((tmax - tmin) / 2)) + (od / 2), (lmax - (od / 2)) + linespace + (linelength / 2), od, od);
o.strokeColor = regColor;
o.strokeWidth = lw;
o.strokeDashes = [];
o.filled = false;
o = gr.pathItems.ellipse(tmax + linespace + (od / 2) + (linelength / 2), (lmin + ((lmax - lmin) / 2)) - (od / 2), od, od);
o.strokeColor = regColor;
o.strokeWidth = lw;
o.strokeDashes = [];
o.filled = false;
o = gr.pathItems.ellipse(((tmin - linespace) + (od / 2)) - (linelength / 2), (lmin + ((lmax - lmin) / 2)) - (od / 2), od, od);
o.strokeColor = regColor;
o.strokeWidth = lw;
o.strokeDashes = [];
o.filled = false;
if (wzzcs.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmzcs.value == true || rqzcs.value == true || cpzcs.value == true || pbzcs.value == true || jxzcs.value == true || zizzcs.value == true || zzzcs.value == true || ljzcs.value == true || weidong3.value == true || bzzcs.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpzcs.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbzcs.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxzcs.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizzcs.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmzcs.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqzcs.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzzcs.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljzcs.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzzcs.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(-90);
text.left = lmin - text.width - 8.5 - (py2Value.text * v);
text.top = tmax - (py3Value.text * v);
}
} else { } { }
if (wzzcx.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmzcx.value == true || rqzcx.value == true || cpzcx.value == true || pbzcx.value == true || jxzcx.value == true || zizzcx.value == true || zzzcx.value == true || ljzcx.value == true || weidong3.value == true || bzzcx.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpzcx.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbzcx.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxzcx.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizzcx.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmzcx.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqzcx.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzzcx.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljzcx.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzzcx.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(90);
text.left = lmin - text.width - 7 - (py2Value.text * v);
text.top = tmin + text.height + (py3Value.text * v);
}
} else { } { }
if (wzzs.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmzs.value == true || rqzs.value == true || cpzs.value == true || pbzs.value == true || jxzs.value == true || zizzs.value == true || zzzs.value == true || ljzs.value == true || weidong3.value == true || bzzs.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpzs.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbzs.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxzs.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizzs.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmzs.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqzs.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzzs.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljzs.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzzs.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.left = lmin + (py3Value.text * v);
text.top = tmax + 7 + text.height + (py2Value.text * v);
}
} else { } { }
if (wzzx.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmzx.value == true || rqzx.value == true || cpzx.value == true || pbzx.value == true || jxzx.value == true || zizzx.value == true || zzzx.value == true || ljzx.value == true || weidong3.value == true || bzzx.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpzx.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbzx.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxzx.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizzx.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmzx.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqzx.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzzx.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljzx.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzzx.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.left = lmin + (py3Value.text * v);
text.top = tmin - 8.5 - (py2Value.text * v);
}
} else { } { }
if (wzys.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmys.value == true || rqys.value == true || cpys.value == true || pbys.value == true || jxys.value == true || zizys.value == true || zzys.value == true || ljys.value == true || weidong3.value == true || bzys.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpys.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbys.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxys.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizys.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmys.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqys.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzys.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljys.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzys.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.left = lmax - text.width - (py3Value.text * v);
text.top = tmax + 7 + text.height + (py2Value.text * v);
}
} else { } { }
if (wzyx.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmyx.value == true || rqyx.value == true || cpyx.value == true || pbyx.value == true || jxyx.value == true || zizyx.value == true || zzyx.value == true || ljyx.value == true || weidong3.value == true || bzyx.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpyx.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbyx.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxyx.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizyx.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmyx.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqyx.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzyx.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljyx.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzyx.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.left = lmax - text.width - (py3Value.text * v);
text.top = tmin - 8.5 - (py2Value.text * v);
}
} else { } { }
if (wzycs.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmycs.value == true || rqycs.value == true || cpycs.value == true || pbycs.value == true || jxycs.value == true || zizycs.value == true || zzycs.value == true || ljycs.value == true || weidong3.value == true || bzycs.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpycs.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbycs.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxycs.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizycs.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmycs.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqycs.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzycs.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljycs.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzycs.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(-90);
text.left = lmax + text.width - fsValue.text + (py2Value.text * v) + 6;
text.top = tmax - (py3Value.text * v);
}
} else { } { }
if (wzycx.value == true) {
w = myDate();
if (haveFN.value == true && havePT.value == true) {
docname = new File(doc.fullName).fsName;
} else {
if (haveFN.value == true) {
docname = doc.name;
}
}
if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true || haveFN.value == true || haveTM.value == true || weidong2.value == true || havePT.value == true || wjmycx.value == true || rqycx.value == true || cpycx.value == true || pbycx.value == true || jxycx.value == true || zizycx.value == true || zzycx.value == true || ljycx.value == true || weidong3.value == true || bzycx.value == true) {
gw = g.width / v;
gh = g.height / v;
text = g.textFrames.add();
text.textRange.characterAttributes.textFont = Textfontname;
if (cpycx.value == true && littleSize.value == true) {
text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm ";
} else {
text1 = "";
}
if (pbycx.value == true && bigSize.value == true) {
text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm ";
} else {
text2 = "";
}
if (jxycx.value == true && paperSize.value == true) {
text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm ";
} else {
text3 = "";
}
if (zizycx.value == true && paperSize1.value == true) {
text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm ";
} else {
text4 = "";
}
if (wjmycx.value == true && haveFN.value == true) {
text5 = doc.name + " ";
} else {
text5 = "";
}
if (rqycx.value == true && haveTM.value == true) {
text6 = w + " ";
} else {
text6 = "";
}
if (zzycx.value == true && weidong2.text != "") {
text7 = weidong2.text + " ";
} else {
text7 = "";
}
if (ljycx.value == true && havePT.value == true) {
text8 = docname + " ";
} else {
text8 = "";
}
if (bzycx.value == true && weidong3.text != "") {
text9 = weidong3.text + " ";
} else {
text9 = "";
}
if (pxu1.value == true) {
text.contents = text5 + text6 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu2.value == true) {
text.contents = text5 + text1 + text2 + text3 + text4 + text9 + text8 + text7 + text6;
}
if (pxu3.value == true) {
text.contents = text6 + text5 + text7 + text1 + text2 + text3 + text4 + text9 + text8;
}
if (pxu4.value == true) {
text.contents = text8 + text1 + text2 + text3 + text4 + text9 + text7 + text5 + text6;
}
if (pxu5.value == true) {
text.contents = text9 + text5 + text1 + text2 + text3 + text4 + text8 + text7 + text6;
}
if (pxu6.value == true) {
text.contents = text1 + text2 + text3 + text4 + text9 + text8 + text7 + text5 + text6;
}
text.textRange.characterAttributes.fillColor = regColor;
text.textRange.characterAttributes.stroked = false;
text.textRange.characterAttributes.size = textfontsize;
text.rotate(90);
text.left = lmax + text.width - fsValue.text + (py2Value.text * v) + 7;
text.top = tmin + text.height + (py3Value.text * v);
}
}
} else { } {
}
if (zlagui.value == true || flagui.value == true) {
if (sfValue.text != "") {
linkfile = g.placedItems.add();
linkfile.file = new File(sfValue.text);
} else {
if (zlagui.value == true) {
linkpdf = "Lagui_z.pdf";
} else {
linkpdf = "Lagui_f.pdf";
}
laguifile = new File(set_folder + linkpdf);
if (laguifile.exists) {
linkfile = g.placedItems.add();
linkfile.file = laguifile;
} else {
return false;
}
}
if (zlagui.value == true) {
if ((lmax - lmin) < (tmax - tmin)) {
linkfile.rotate(90);
linkfile.left = (lmax - linkfile.width) - ((lmValue.text - 0) * v);
linkfile.top = tmax + linkfile.height + 8.5 + (lm2Value.text * v);
} else {
linkfile.left = lmax + 8.5 + (lm2Value.text * v);
linkfile.top = tmin + linkfile.height + ((lmValue.text - 0) * v);
}
} else {
if ((lmax - lmin) < (tmax - tmin)) {
linkfile.rotate(- 90);
linkfile.left = lmin + ((lmValue.text - 0) * v);
linkfile.top = tmax + linkfile.height + 8.5 + (lm2Value.text * v);
} else {
linkfile.left = lmin - 8.5 - linkfile.width - (lm2Value.text * v);
linkfile.top = tmin + linkfile.height + ((lmValue.text - 0) * v);
}
}
if (embed.value == true) {
linkfile.embed();
}
}
if (ABtrans.value == true || gird.value == true) {
g1 = cutlayer.groupItems.add();
}
lmin = lmin + qubian;
tmax = tmax - qubian;
lmax = lmax - qubian;
tmin = tmin + qubian;
if (autopage.value == false && ABtrans.value == true) {
Ab = doc.artboards[doc.artboards.getActiveArtboardIndex()];
refB = [lmin, tmax, lmax, tmin];
refB_width = refB[2] - refB[0];
refB_heigth = refB[1] - refB[3];
var yVal = refB[0] - ((Paper_width - refB_width) / 2);
var xVal = refB[1] + ((Paper_heigth - refB_heigth) - Paper_bite);
paper = g1.pathItems.rectangle(xVal, yVal, Paper_width, Paper_heigth);
paper.filled = false;
paper.stroked = true;
if (pxu11.value == true) {
paper.strokeColor = new CMYKColor();
paper.strokeColor.cyan = py11Value.text;
paper.strokeColor.magenta = py12Value.text;
paper.strokeColor.yellow = py13Value.text;
paper.strokeColor.black = py14Value.text;
paper.strokeWidth = py21Value.text;
}
if (pxu12.value == true) {
paper.strokeColor = regColor;
paper.strokeWidth = 1;
paper.strokeDashes = [5, 1, 1];
paper.guides = true;
paper.locked = true;
}
refB[0] = refB[0] - ((Plate_width - refB_width) / 2);
refB[2] = refB[2] + ((Plate_width - refB_width) / 2);
refB[1] = refB[1] + ((Plate_heigth - refB_heigth) - Plate_bite);
refB[3] = refB[3] - Plate_bite;
Ab.artboardRect = refB;
}
if (autopage.value == false && gird.value == true) {
var arrayVal = [];
arrayVal[0] = [[- 66666, tmin], [66666, tmin]];
arrayVal[1] = [[- 66666, tmin - Paper_bite], [66666, tmin - Paper_bite]];
arrayVal[2] = [[(lmin + lmax) / 2, 66666], [(lmin + lmax) / 2, -66666]];
arrayVal[3] = [[- 66666, tmin - Plate_bite], [66666, tmin - Plate_bite]];
for (var i = 0; i < arrayVal.length; i += 1) {
var tPathVal = g1.pathItems.add();
tPathVal.setEntirePath(arrayVal[i]);
tPathVal.filled = false;
tPathVal.stroked = true;
tPathVal.strokeColor = regColor;
tPathVal.strokeWidth = 1;
tPathVal.strokeDashes = [5, 1, 1];
tPathVal.guides = true;
tPathVal.locked = true;
}
}
if (autopage.value == true) {
Ab = doc.artboards[doc.artboards.getActiveArtboardIndex()];
Ab.artboardRect = g.geometricBounds;
}
}
function myDate() {
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
if (month < 10) {
month = "0" + month;
}
if (date < 10) {
date = "0" + date;
}
time = year + "-" + month + "-" + date;
return time;
}
function function3(modeVal, gArgG, fileReadVal) {
var NewFileVal = new File(gArgG);
NewFileVal.lineFeed = "Windows";
if (modeVal == "read") {
NewFileVal.open("r");
var fileReadVal = NewFileVal.read();
return fileReadVal;
}
if (modeVal == "write") {
NewFileVal.open("w", "TEXT", "????");
NewFileVal.write(fileReadVal);
NewFileVal.close();
}
}
function function8() {
NewFileVal = new File(gArgG);
if (NewFileVal.exists == true) {
AutoMarkinfo = function3("read", filePath, filename);
AutoMarkXml = new XML(AutoMarkinfo);
}
}
function function10() {
NewFileVal = new File(Preset);
PresetXml = new XML("<Preset></Preset>");
PresetXml.ys0Value = "常用";
PresetXml.ys1Value = "1";
PresetXml.ys2Value = "2";
PresetXml.ys3Value = "3";
PresetXml.ys4Value = "4";
PresetXml.ys5Value = "5";
PresetXml.ys6Value = "6";
PresetXml.ys7Value = "7";
PresetXml.ys8Value = "8";
PresetXml.ys9Value = "9";
PresetXml.ys10Value = "10";
PresetXml.note2 = "";
Contents = PresetXml;
function3("write", Preset, Contents);
}
function function9() {
PresetXml.ys0Value = ys0Value.text;
PresetXml.ys1Value = ys1Value.text;
PresetXml.ys2Value = ys2Value.text;
PresetXml.ys3Value = ys3Value.text;
PresetXml.ys4Value = ys4Value.text;
PresetXml.ys5Value = ys5Value.text;
PresetXml.ys6Value = ys6Value.text;
PresetXml.ys7Value = ys7Value.text;
PresetXml.ys8Value = ys8Value.text;
PresetXml.ys9Value = ys9Value.text;
PresetXml.ys10Value = ys10Value.text;
PresetXml.note2 = note2.text;
Contents = PresetXml;
function3("write", Preset, Contents);
}
function function2() {
NewFileVal = new File(gArgG);
AutoMarkXml = new XML("<AutoMark></AutoMark>");
AutoMarkXml.lLValue = 9;
AutoMarkXml.lwValue = 0.1;
AutoMarkXml.lSValue = 3;
AutoMarkXml.oSValue = 3;
AutoMarkXml.doubleLine = 1;
AutoMarkXml.JPLine = 1;
AutoMarkXml.njLine = 0;
AutoMarkXml.zlagui = 0;
AutoMarkXml.flagui = 0;
AutoMarkXml.buhanchuxue = 1;
AutoMarkXml.quanbuchuxue = 0;
AutoMarkXml.dabanchuxue = 0;
AutoMarkXml.CMYK = 1;
AutoMarkXml.mingcheng = 0;
AutoMarkXml.wu = 0;
AutoMarkXml.colorLable = 0;
AutoMarkXml.boolCx = 1;
AutoMarkXml.boolMx = 1;
AutoMarkXml.boolYx = 1;
AutoMarkXml.boolKx = 1;
AutoMarkXml.prValue = "";
AutoMarkXml.haveFN = 1;
AutoMarkXml.haveTM = 1;
AutoMarkXml.havePT = 0;
AutoMarkXml.littleSize = 0;
AutoMarkXml.bigSize = 1;
AutoMarkXml.paperSize = 0;
AutoMarkXml.paperSize1 = 0;
AutoMarkXml.bite = 0;
AutoMarkXml.bite2 = 0;
AutoMarkXml.bite3 = 0;
AutoMarkXml.bite4 = 0;
AutoMarkXml.bite5 = 1;
AutoMarkXml.weidong3 = "";
AutoMarkXml.paperW = 0;
AutoMarkXml.paperH = 0;
AutoMarkXml.paperB = 0;
AutoMarkXml.platoW = 650;
AutoMarkXml.platoH = 550;
AutoMarkXml.platoB = 60;
AutoMarkXml.cxdbkuang = 0;
AutoMarkXml.autopage = 0;
AutoMarkXml.ABtrans = 0;
AutoMarkXml.gird = 0;
AutoMarkXml.onlyCTP = 0;
AutoMarkXml.sfValue = "";
AutoMarkXml.sbValue = "";
AutoMarkXml.scValue = "";
AutoMarkXml.lmValue = 110;
AutoMarkXml.lm2Value = 0;
AutoMarkXml.embed = 1;
AutoMarkXml.fnValue = "微软雅黑";
AutoMarkXml.fsValue = 12;
AutoMarkXml.chValue = 5;
AutoMarkXml.cwValue = 5;
AutoMarkXml.rdValue = 3;
AutoMarkXml.kdValue = 20;
AutoMarkXml.gdValue = 9;
AutoMarkXml.pyValue = 0;
AutoMarkXml.py2Value = 0;
AutoMarkXml.py3Value = 5;
AutoMarkXml.py4Value = 0;
AutoMarkXml.py5Value = 0;
AutoMarkXml.py6Value = 15;
AutoMarkXml.py11Value = 0;
AutoMarkXml.py12Value = 0;
AutoMarkXml.py13Value = 0;
AutoMarkXml.py14Value = 100;
AutoMarkXml.py21Value = 0.25;
AutoMarkXml.py31Value = 0;
AutoMarkXml.py41Value = 0;
AutoMarkXml.py42Value = 0;
AutoMarkXml.csValue = 0;
AutoMarkXml.clValue = "20,40,60,80,100";
AutoMarkXml.weidong2 = "";
AutoMarkXml.wzzcs = 0;
AutoMarkXml.wzzcx = 0;
AutoMarkXml.wzzs = 0;
AutoMarkXml.wzzx = 0;
AutoMarkXml.wzys = 0;
AutoMarkXml.wzyx = 0;
AutoMarkXml.wzycs = 0;
AutoMarkXml.wzycx = 1;
AutoMarkXml.wjmzcs = 0;
AutoMarkXml.wjmzcx = 0;
AutoMarkXml.wjmzs = 0;
AutoMarkXml.wjmzx = 0;
AutoMarkXml.wjmys = 0;
AutoMarkXml.wjmyx = 0;
AutoMarkXml.wjmycs = 0;
AutoMarkXml.wjmycx = 1;
AutoMarkXml.rqzcs = 0;
AutoMarkXml.rqzcx = 0;
AutoMarkXml.rqzs = 0;
AutoMarkXml.rqzx = 0;
AutoMarkXml.rqys = 0;
AutoMarkXml.rqyx = 0;
AutoMarkXml.rqycs = 0;
AutoMarkXml.rqycx = 1;
AutoMarkXml.zzzcs = 0;
AutoMarkXml.zzzcx = 0;
AutoMarkXml.zzzs = 0;
AutoMarkXml.zzzx = 0;
AutoMarkXml.zzys = 0;
AutoMarkXml.zzyx = 0;
AutoMarkXml.zzycs = 0;
AutoMarkXml.zzycx = 1;
AutoMarkXml.ljzcs = 0;
AutoMarkXml.ljzcx = 0;
AutoMarkXml.ljzs = 0;
AutoMarkXml.ljzx = 0;
AutoMarkXml.ljys = 0;
AutoMarkXml.ljyx = 0;
AutoMarkXml.ljycs = 0;
AutoMarkXml.ljycx = 1;
AutoMarkXml.bzzcs = 0;
AutoMarkXml.bzzcx = 0;
AutoMarkXml.bzzs = 0;
AutoMarkXml.bzzx = 0;
AutoMarkXml.bzys = 0;
AutoMarkXml.bzyx = 0;
AutoMarkXml.bzycs = 0;
AutoMarkXml.bzycx = 1;
AutoMarkXml.cpzcs = 0;
AutoMarkXml.cpzcx = 0;
AutoMarkXml.cpzs = 0;
AutoMarkXml.cpzx = 0;
AutoMarkXml.cpys = 0;
AutoMarkXml.cpyx = 0;
AutoMarkXml.cpycs = 0;
AutoMarkXml.cpycx = 1;
AutoMarkXml.pbzcs = 0;
AutoMarkXml.pbzcx = 0;
AutoMarkXml.pbzs = 0;
AutoMarkXml.pbzx = 0;
AutoMarkXml.pbys = 0;
AutoMarkXml.pbyx = 0;
AutoMarkXml.pbycs = 0;
AutoMarkXml.pbycx = 1;
AutoMarkXml.jxzcs = 0;
AutoMarkXml.jxzcx = 0;
AutoMarkXml.jxzs = 0;
AutoMarkXml.jxzx = 0;
AutoMarkXml.jxys = 0;
AutoMarkXml.jxyx = 0;
AutoMarkXml.jxycs = 0;
AutoMarkXml.jxycx = 1;
AutoMarkXml.zizzcs = 0;
AutoMarkXml.zizzcx = 0;
AutoMarkXml.zizzs = 0;
AutoMarkXml.zizzx = 0;
AutoMarkXml.zizys = 0;
AutoMarkXml.zizyx = 0;
AutoMarkXml.zizycs = 0;
AutoMarkXml.zizycx = 1;
AutoMarkXml.yszcs = 0;
AutoMarkXml.yszcx = 1;
AutoMarkXml.yszs = 0;
AutoMarkXml.yszx = 0;
AutoMarkXml.ysys = 0;
AutoMarkXml.ysyx = 0;
AutoMarkXml.ysycs = 0;
AutoMarkXml.ysycx = 0;
AutoMarkXml.pxu1 = 1;
AutoMarkXml.pxu2 = 0;
AutoMarkXml.pxu3 = 0;
AutoMarkXml.pxu4 = 0;
AutoMarkXml.pxu5 = 0;
AutoMarkXml.pxu6 = 0;
AutoMarkXml.pxu11 = 1;
AutoMarkXml.pxu12 = 0;
AutoMarkXml.pxu31 = 0;
AutoMarkXml.pxu32 = 0;
AutoMarkXml.pxu33 = 0;
Contents = AutoMarkXml;
function3("write", gArgG, Contents);
}
function function7() {
AutoMarkXml.lLValue = lLValue.text;
AutoMarkXml.lwValue = lwValue.text;
AutoMarkXml.lSValue = lSValue.text;
AutoMarkXml.oSValue = oSValue.text;
AutoMarkXml.doubleLine = doubleLine.value - 0;
AutoMarkXml.JPLine = JPLine.value - 0;
AutoMarkXml.njLine = njLine.value - 0;
AutoMarkXml.zlagui = zlagui.value - 0;
AutoMarkXml.flagui = flagui.value - 0;
AutoMarkXml.buhanchuxue = buhanchuxue.value - 0;
AutoMarkXml.quanbuchuxue = quanbuchuxue.value - 0;
AutoMarkXml.dabanchuxue = dabanchuxue.value - 0;
AutoMarkXml.CMYK = CMYK.value - 0;
AutoMarkXml.mingcheng = mingcheng.value - 0;
AutoMarkXml.wu = wu.value - 0;
AutoMarkXml.colorLable = colorLable.value - 0;
AutoMarkXml.boolCx = boolCx.value - 0;
AutoMarkXml.boolMx = boolMx.value - 0;
AutoMarkXml.boolYx = boolYx.value - 0;
AutoMarkXml.boolKx = boolKx.value - 0;
AutoMarkXml.prValue = prValue.text;
AutoMarkXml.haveFN = haveFN.value - 0;
AutoMarkXml.haveTM = haveTM.value - 0;
AutoMarkXml.havePT = havePT.value - 0;
AutoMarkXml.littleSize = littleSize.value - 0;
AutoMarkXml.bigSize = bigSize.value - 0;
AutoMarkXml.paperSize = paperSize.value - 0;
AutoMarkXml.paperSize1 = paperSize1.value - 0;
AutoMarkXml.bite = bite.value - 0;
AutoMarkXml.bite2 = bite2.value - 0;
AutoMarkXml.bite3 = bite3.value - 0;
AutoMarkXml.bite4 = bite4.value - 0;
AutoMarkXml.bite5 = bite5.value - 0;
AutoMarkXml.weidong3 = weidong3.text;
AutoMarkXml.paperW = paperW.text - 0;
AutoMarkXml.paperH = paperH.text - 0;
AutoMarkXml.paperB = paperB.text - 0;
AutoMarkXml.platoW = platoW.text - 0;
AutoMarkXml.platoH = platoH.text - 0;
AutoMarkXml.platoB = platoB.text - 0;
AutoMarkXml.cxdbkuang = cxdbkuang.text - 0;
AutoMarkXml.autopage = autopage.value - 0;
AutoMarkXml.ABtrans = ABtrans.value - 0;
AutoMarkXml.gird = gird.value - 0;
AutoMarkXml.onlyCTP = onlyCTP.value - 0;
AutoMarkXml.sfValue = sfValue.text;
AutoMarkXml.sbValue = sbValue.text;
AutoMarkXml.scValue = scValue.text;
AutoMarkXml.lmValue = lmValue.text;
AutoMarkXml.lm2Value = lm2Value.text;
AutoMarkXml.embed = embed.value - 0;
AutoMarkXml.fnValue = fnValue.text;
AutoMarkXml.fsValue = fsValue.text;
AutoMarkXml.chValue = chValue.text;
AutoMarkXml.cwValue = cwValue.text;
AutoMarkXml.rdValue = rdValue.text;
AutoMarkXml.kdValue = kdValue.text;
AutoMarkXml.gdValue = gdValue.text;
AutoMarkXml.pyValue = pyValue.text;
AutoMarkXml.py2Value = py2Value.text;
AutoMarkXml.py3Value = py3Value.text;
AutoMarkXml.py4Value = py4Value.text;
AutoMarkXml.py5Value = py5Value.text;
AutoMarkXml.py6Value = py6Value.text;
AutoMarkXml.py11Value = py11Value.text;
AutoMarkXml.py12Value = py12Value.text;
AutoMarkXml.py13Value = py13Value.text;
AutoMarkXml.py14Value = py14Value.text;
AutoMarkXml.py21Value = py21Value.text;
AutoMarkXml.py31Value = py31Value.text;
AutoMarkXml.py41Value = py41Value.text;
AutoMarkXml.py42Value = py42Value.text;
AutoMarkXml.csValue = csValue.text;
AutoMarkXml.clValue = clValue.text;
AutoMarkXml.weidong2 = weidong2.text;
AutoMarkXml.wzzcs = wzzcs.value - 0;
AutoMarkXml.wzzcx = wzzcx.value - 0;
AutoMarkXml.wzzs = wzzs.value - 0;
AutoMarkXml.wzzx = wzzx.value - 0;
AutoMarkXml.wzys = wzys.value - 0;
AutoMarkXml.wzyx = wzyx.value - 0;
AutoMarkXml.wzycs = wzycs.value - 0;
AutoMarkXml.wzycx = wzycx.value - 0;
AutoMarkXml.wjmzcs = wjmzcs.value - 0;
AutoMarkXml.wjmzcx = wjmzcx.value - 0;
AutoMarkXml.wjmzs = wjmzs.value - 0;
AutoMarkXml.wjmzx = wjmzx.value - 0;
AutoMarkXml.wjmys = wjmys.value - 0;
AutoMarkXml.wjmyx = wjmyx.value - 0;
AutoMarkXml.wjmycs = wjmycs.value - 0;
AutoMarkXml.wjmycx = wjmycx.value - 0;
AutoMarkXml.rqzcs = rqzcs.value - 0;
AutoMarkXml.rqzcx = rqzcx.value - 0;
AutoMarkXml.rqzs = rqzs.value - 0;
AutoMarkXml.rqzx = rqzx.value - 0;
AutoMarkXml.rqys = rqys.value - 0;
AutoMarkXml.rqyx = rqyx.value - 0;
AutoMarkXml.rqycs = rqycs.value - 0;
AutoMarkXml.rqycx = rqycx.value - 0;
AutoMarkXml.zzzcs = zzzcs.value - 0;
AutoMarkXml.zzzcx = zzzcx.value - 0;
AutoMarkXml.zzzs = zzzs.value - 0;
AutoMarkXml.zzzx = zzzx.value - 0;
AutoMarkXml.zzys = zzys.value - 0;
AutoMarkXml.zzyx = zzyx.value - 0;
AutoMarkXml.zzycs = zzycs.value - 0;
AutoMarkXml.zzycx = zzycx.value - 0;
AutoMarkXml.ljzcs = ljzcs.value - 0;
AutoMarkXml.ljzcx = ljzcx.value - 0;
AutoMarkXml.ljzs = ljzs.value - 0;
AutoMarkXml.ljzx = ljzx.value - 0;
AutoMarkXml.ljys = ljys.value - 0;
AutoMarkXml.ljyx = ljyx.value - 0;
AutoMarkXml.ljycs = ljycs.value - 0;
AutoMarkXml.ljycx = ljycx.value - 0;
AutoMarkXml.bzzcs = bzzcs.value - 0;
AutoMarkXml.bzzcx = bzzcx.value - 0;
AutoMarkXml.bzzs = bzzs.value - 0;
AutoMarkXml.bzzx = bzzx.value - 0;
AutoMarkXml.bzys = bzys.value - 0;
AutoMarkXml.bzyx = bzyx.value - 0;
AutoMarkXml.bzycs = bzycs.value - 0;
AutoMarkXml.bzycx = bzycx.value - 0;
AutoMarkXml.cpzcs = cpzcs.value - 0;
AutoMarkXml.cpzcx = cpzcx.value - 0;
AutoMarkXml.cpzs = cpzs.value - 0;
AutoMarkXml.cpzx = cpzx.value - 0;
AutoMarkXml.cpys = cpys.value - 0;
AutoMarkXml.cpyx = cpyx.value - 0;
AutoMarkXml.cpycs = cpycs.value - 0;
AutoMarkXml.cpycx = cpycx.value - 0;
AutoMarkXml.pbzcs = pbzcs.value - 0;
AutoMarkXml.pbzcx = pbzcx.value - 0;
AutoMarkXml.pbzs = pbzs.value - 0;
AutoMarkXml.pbzx = pbzx.value - 0;
AutoMarkXml.pbys = pbys.value - 0;
AutoMarkXml.pbyx = pbyx.value - 0;
AutoMarkXml.pbycs = pbycs.value - 0;
AutoMarkXml.pbycx = pbycx.value - 0;
AutoMarkXml.jxzcs = jxzcs.value - 0;
AutoMarkXml.jxzcx = jxzcx.value - 0;
AutoMarkXml.jxzs = jxzs.value - 0;
AutoMarkXml.jxzx = jxzx.value - 0;
AutoMarkXml.jxys = jxys.value - 0;
AutoMarkXml.jxyx = jxyx.value - 0;
AutoMarkXml.jxycs = jxycs.value - 0;
AutoMarkXml.jxycx = jxycx.value - 0;
AutoMarkXml.zizzcs = zizzcs.value - 0;
AutoMarkXml.zizzcx = zizzcx.value - 0;
AutoMarkXml.zizzs = zizzs.value - 0;
AutoMarkXml.zizzx = zizzx.value - 0;
AutoMarkXml.zizys = zizys.value - 0;
AutoMarkXml.zizyx = zizyx.value - 0;
AutoMarkXml.zizycs = zizycs.value - 0;
AutoMarkXml.zizycx = zizycx.value - 0;
AutoMarkXml.yszcs = yszcs.value - 0;
AutoMarkXml.yszcx = yszcx.value - 0;
AutoMarkXml.yszs = yszs.value - 0;
AutoMarkXml.yszx = yszx.value - 0;
AutoMarkXml.ysys = ysys.value - 0;
AutoMarkXml.ysyx = ysyx.value - 0;
AutoMarkXml.ysycs = ysycs.value - 0;
AutoMarkXml.ysycx = ysycx.value - 0;
AutoMarkXml.pxu1 = pxu1.value - 0;
AutoMarkXml.pxu2 = pxu2.value - 0;
AutoMarkXml.pxu3 = pxu3.value - 0;
AutoMarkXml.pxu4 = pxu4.value - 0;
AutoMarkXml.pxu5 = pxu5.value - 0;
AutoMarkXml.pxu6 = pxu6.value - 0;
AutoMarkXml.pxu11 = pxu11.value - 0;
AutoMarkXml.pxu12 = pxu12.value - 0;
AutoMarkXml.pxu31 = pxu31.value - 0;
AutoMarkXml.pxu32 = pxu32.value - 0;
AutoMarkXml.pxu33 = pxu33.value - 0;
Contents = AutoMarkXml;
function3("write", gArgG, Contents);
}
function checkSetFolder() {
var $folder = new Folder(set_folder);
if (!$folder.exists) {
$folder.create();
}
}
function1();