VBA,CATIA宏中断循环

时间:2018-09-01 13:46:13

标签: vba catia

When I click Next button on the from I would like to get the next part on the Form 我有一个穿过产品树的FOR循环,并在变量“ oForm.txtPartName”中读取PartName。在oForm上有一个“下一步”按钮,应该做的是换个循环然后跳到树的下一部分。我应该在“下一步”按钮中输入什么代码才能完成工作?

  downloadBlob(data, filename, type) {
    var file = new Blob([data], {type: type});
    if (window.navigator.msSaveOrOpenBlob) // IE10+
        window.navigator.msSaveOrOpenBlob(file, filename);
    else { // Others
        var a = document.createElement("a"),
                url = URL.createObjectURL(file);
        a.href = url;
        a.download = filename;
        document.body.appendChild(a);
        a.click();
        setTimeout(function() {
            document.body.removeChild(a);
            window.URL.revokeObjectURL(url);
        }, 0);
    }
  }

0 个答案:

没有答案