[Backend] 上傳的模型 加上轉檔功能
This commit is contained in:
parent
8fe1dae9f7
commit
2a712865ab
@ -290,6 +290,7 @@
|
||||
var datas = data.split(",");
|
||||
var urn = datas[0];
|
||||
let m3d_names = datas[1].split(".");
|
||||
translateObject(urn);// forge轉換模型
|
||||
|
||||
var url = "/BuildInfo/SaveBuildInfo";
|
||||
|
||||
@ -465,6 +466,7 @@
|
||||
var datas = data.split(",");
|
||||
var urn = datas[0];
|
||||
let m3d_names = datas[1].split(".");
|
||||
translateObject(urn);// forge轉換模型
|
||||
|
||||
var url = "/BuildInfo/EditBuildInfo";
|
||||
var formData2 = new FormData();
|
||||
@ -955,6 +957,24 @@
|
||||
}
|
||||
//#endregion
|
||||
|
||||
//#region 翻譯模型
|
||||
function translateObject(urn) {
|
||||
$("#forgeViewer").empty();
|
||||
//if (node == null) node = $('#appBuckets').jstree(true).get_selected(true)[0];
|
||||
var bucketKey = "ta3hqsffzqbnouxkpldkuksew4sj21w5-bims_models";//forge上傳平台-資料夾
|
||||
var objectKey = urn;
|
||||
|
||||
jQuery.post({
|
||||
url: '/api/forge/modelderivative/jobs',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify({ 'bucketKey': bucketKey, 'objectName': objectKey }),
|
||||
success: function (res) {
|
||||
//$("#forgeViewer").html('Translation started! Please try again in a moment.');
|
||||
},
|
||||
});
|
||||
}
|
||||
//#endregion
|
||||
|
||||
|
||||
</script>
|
||||
}
|
Loading…
Reference in New Issue
Block a user