Changes for page Интерфейс bim

Last modified by Bimit Administrator on 02.10.2024, 09:47

From version 68.17
edited by Bimit Administrator
on 17.07.2023, 11:56
Change comment: There is no comment for this version
To version 68.13
edited by Bimit Administrator
on 17.07.2023, 11:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2329,11 +2329,9 @@
2329 2329  
2330 2330  
2331 2331  {{code language="java"}}
2332 -def collisionList = bim.getCollisionsForReport()
2333 - def param = [:]
2334 - param.add(“pageSize”, 3)
2335 - param.add(“fontSize”, 12)
2336 - file.collisionsToPdf(template, collisionList, param)
2332 +def conditionWall = bim.createCondition("class", "eq", "IfcWall")
2333 +def conditionDoor = bim.createCondition("class", "eq", "IfcDoor")
2334 +bim.showElements(conditionWall | conditionDoor )
2337 2337  
2338 2338  {{/code}}
2339 2339  
... ... @@ -2346,12 +2346,25 @@
2346 2346  * **bim.getFilesDownloadLinks() - **Данный метод предназначен для получения списка ссылок на скачивания файлов из задач по проекту.
2347 2347  Ссылка действительна в течении одного дня. Изменить данное время можно командой editTokenExpiredDate (см. ниже). Данный метод рекомендуется использовать при формировании отчетов.
2348 2348  **Пример использования:**
2349 -
2350 2350  {{code language="java"}}
2351 -def conditionWall = bim.createCondition("class", "eq", "IfcWall")
2352 -def conditionDoor = bim.createCondition("class", "eq", "IfcDoor")
2353 -bim.showElements(conditionWall | conditionDoor )
2354 -
2348 +def tasks = bim.getProjectTasks()
2349 + def taskAttachments = []
2350 + for(def task : tasks) {
2351 + taskAttachments.push(bim.getTaskAttachments(task.uuid))
2352 + }
2353 +
2354 + def uuids = []
2355 + for (def attachments : taskAttachments) {
2356 + for (def attachment : attachments) {
2357 + if (attachment != null)
2358 + uuids.push(attachment.uuid)
2359 + }
2360 + }
2361 + def downloadLinks = bim.getFilesDownloadLinks(uuids)
2362 + console.info(downloadLinks) -> INFO [
2363 +6201ced9-b873-4a7d-8266-537f1566c543.docx,
2364 +687ac450-75e2-42f6-9fbe-7c608912c079.png
2365 +]
2355 2355  {{/code}}
2356 2356  
2357 2357  (% class="box infomessage" %)