Попытка управлять XREF. Создал zip-файл и загрузил в корзину. затем пытается перевести объект
Здесь код, используемый для перевода файла.
`List<JobPayloadItem> outputs = new List<JobPayloadItem>()
{
new JobPayloadItem
(
JobPayloadItem.TypeEnum.Stl,
new List<JobPayloadItem.ViewsEnum>()
{ JobPayloadItem.ViewsEnum._2d,JobPayloadItem.ViewsEnum._3d}, new JobObjOutputPayloadAdvanced(JobObjOutputPayloadAdvanced.ExportFileStructureEnum.Multiple)
)
};
string Base64URN = string.Empty;
Base64URN = Base64Encode(uploadedObj.objectId);
objUrn.urn = Base64URN;
JobPayload job;
if (string.IsNullOrEmpty(null))
job = new JobPayload(new JobPayloadInput(Base64URN,true,DocNo), new JobPayloadOutput(outputs));
else
job = new JobPayload(new JobPayloadInput(Base64URN, true, uploadedObj.objectKey), new JobPayloadOutput(outputs));
DerivativesApi derivative = new DerivativesApi();
derivative.Configuration.AccessToken = oauth.access_token;
dynamic jobPosted = await derivative.TranslateAsync(job);
objUrn.urn = jobPosted.urn;`
Исключительная ситуация при переводе файла.
at Autodesk.Forge.DerivativesApi.<TranslateAsyncWithHttpInfo>d__10f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Autodesk.Forge.DerivativesApi.<TranslateAsync>d__105.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at Atom.UI.Controllers.Document.BIMViewerController.<CreateBucketTest>d__20.MoveNext() in E:\Codebase\Atom\2018.3.0.0_BIM_360_KALPATHARU -FORGE\Atom.UI\Controllers\Document\BIMViewerController.cs:line 463
Исключение
{"диагностика": "Не удалось запустить перевод для этого файла."}