为什么我的工作项目,由于没有未处理的访问冲突错误?
我想透过此设计自动化API和forge-api-nodejs-client
的v2的工作项。工作项需要JSON文件作为输入参数。我已经创建了自定义的.NET插件,取决于JSON文件。
工作项目由于失败FailedMissingOutput
。我打印出来的报告,并注意到这一点...
[02/11/2019 19:14:48] Command: DRAWMARKUPS
[02/11/2019 19:14:49] ************************MessageBox****************************
[02/11/2019 19:14:49] AutoCAD Error Aborting
[02/11/2019 19:14:49] FATAL ERROR: Unhandled Access Violation Reading 0x0008 Exception at 82480c14h
[02/11/2019 19:14:49] >>>Responding: OK.
[02/11/2019 19:14:49] **************************************************************
[02/11/2019 19:14:49] ************************MessageBox****************************
[02/11/2019 19:14:49] AutoCAD Error-abort
[02/11/2019 19:14:49] Error handler re-entered. Exiting now.
[02/11/2019 19:14:49] >>>Responding: OK.
[02/11/2019 19:14:49] **************************************************************
[02/11/2019 19:14:49] End AutoCAD Core Engine standard output dump.
[02/11/2019 19:14:50] Error: AutoCAD Core Console output contains error(s).
[02/11/2019 19:14:50] End script phase.
[02/11/2019 19:14:50] Start upload phase.
[02/11/2019 19:14:50] Error: Non-optional output [a57863c8-3085-4bc2-90b6-709595f1c566.dwg.dwg] is missing .
[02/11/2019 19:14:50] Error: An unexpected error happened during phase Publishing of job.
[02/11/2019 19:14:50] Job finished with result FailedMissingOutput
下面是我的.NET插件线可能被打破它...
string drawingName = Path.GetFileName(acDoc.Name);
...
// Read input parameters from JSON file
JArray jArray = JArray.Parse(File.ReadAllText("markups.json"));
...
acCurDb.SaveAs(drawingName, DwgVersion.AC1027);
另外,我不包括CommandLineParameters
对象在我的活动的定义的任何Instruction
。
const activityObject = {
id: id,
instruction: {
CommandLineParameters: null,
Script: `${script}`
},
appPackages: appPackages,
requiredEngineVersion: `20.1`,
parameters: {
InputParameters: [{
Name: `HostDwg`,
LocalFileName: `$(HostDwg)`
}],
OutputParameters: [{
Name: outPutFilename,
LocalFileName: `${outPutFilename}.dwg`
}]
},
allowedChildProcesses: [],
version: 1,
isPublic: true,
theData: null,
obj: null
};
我怀疑,我失去了从我的活动定义权CommandLineParameters
,但我不知道那些应该是。
为什么我的工作项目失败?它是活动,还是插件?而且,我怎么能解决这个问题?
更新:我固定在输出文件名.dwg.dwg
错字。现在,工作项目成功,但我仍然得到Unhandled Access Violation
错误。另外,我的剧本似乎并没有在JSON文件中读取。该插件在本地,所以我还是不知道这是怎么回事。
我建议你添加更多的记录到你的.NET插件,这样就可以三角测量问题。您可以使用简单的Console.WriteLine方法,他们将出现在您的报告。你可能想捕获异常并倾倒出来,让你知道什么是失败了。
哪里markup.json从何而来?是您AppPackage拉链的一部分?
我不认为这里CommandLineParameters
起到任何作用。你可以保留它为空为使用accoreconsole.exe活动。我们将默认它。
为什么我的工作项目,由于没有未处理的访问冲突错误?
我想透过此设计自动化API和forge-api-nodejs-client
的v2的工作项。工作项需要JSON文件作为输入参数。我已经创建了自定义的.NET插件,取决于JSON文件。
工作项目由于失败FailedMissingOutput
。我打印出来的报告,并注意到这一点...
[02/11/2019 19:14:48] Command: DRAWMARKUPS
[02/11/2019 19:14:49] ************************MessageBox****************************
[02/11/2019 19:14:49] AutoCAD Error Aborting
[02/11/2019 19:14:49] FATAL ERROR: Unhandled Access Violation Reading 0x0008 Exception at 82480c14h
[02/11/2019 19:14:49] >>>Responding: OK.
[02/11/2019 19:14:49] **************************************************************
[02/11/2019 19:14:49] ************************MessageBox****************************
[02/11/2019 19:14:49] AutoCAD Error-abort
[02/11/2019 19:14:49] Error handler re-entered. Exiting now.
[02/11/2019 19:14:49] >>>Responding: OK.
[02/11/2019 19:14:49] **************************************************************
[02/11/2019 19:14:49] End AutoCAD Core Engine standard output dump.
[02/11/2019 19:14:50] Error: AutoCAD Core Console output contains error(s).
[02/11/2019 19:14:50] End script phase.
[02/11/2019 19:14:50] Start upload phase.
[02/11/2019 19:14:50] Error: Non-optional output [a57863c8-3085-4bc2-90b6-709595f1c566.dwg.dwg] is missing .
[02/11/2019 19:14:50] Error: An unexpected error happened during phase Publishing of job.
[02/11/2019 19:14:50] Job finished with result FailedMissingOutput
下面是我的.NET插件线可能被打破它...
string drawingName = Path.GetFileName(acDoc.Name);
...
// Read input parameters from JSON file
JArray jArray = JArray.Parse(File.ReadAllText("markups.json"));
...
acCurDb.SaveAs(drawingName, DwgVersion.AC1027);
另外,我不包括CommandLineParameters
对象在我的活动的定义的任何Instruction
。
const activityObject = {
id: id,
instruction: {
CommandLineParameters: null,
Script: `${script}`
},
appPackages: appPackages,
requiredEngineVersion: `20.1`,
parameters: {
InputParameters: [{
Name: `HostDwg`,
LocalFileName: `$(HostDwg)`
}],
OutputParameters: [{
Name: outPutFilename,
LocalFileName: `${outPutFilename}.dwg`
}]
},
allowedChildProcesses: [],
version: 1,
isPublic: true,
theData: null,
obj: null
};
我怀疑,我失去了从我的活动定义权CommandLineParameters
,但我不知道那些应该是。
为什么我的工作项目失败?它是活动,还是插件?而且,我怎么能解决这个问题?
更新:我固定在输出文件名.dwg.dwg
错字。现在,工作项目成功,但我仍然得到Unhandled Access Violation
错误。另外,我的剧本似乎并没有在JSON文件中读取。该插件在本地,所以我还是不知道这是怎么回事。
我建议你添加更多的记录到你的.NET插件,这样就可以三角测量问题。您可以使用简单的Console.WriteLine方法,他们将出现在您的报告。你可能想捕获异常并倾倒出来,让你知道什么是失败了。
哪里markup.json从何而来?是您AppPackage拉链的一部分?
我不认为这里CommandLineParameters
起到任何作用。你可以保留它为空为使用accoreconsole.exe活动。我们将默认它。