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

Last modified by Bimit Administrator on 02.10.2024, 09:47

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

Summary

Details

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