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

Last modified by Bimit Administrator on 02.10.2024, 09:47

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

Summary

Details

Page properties
Content
... ... @@ -2326,16 +2326,14 @@
2326 2326  
2327 2327  * **bim.getCollisionsForReport()**
2328 2328  **Пример использования:**
2329 -
2330 -
2331 2331  {{code language="java"}}
2332 -def conditionWall = bim.createCondition("class", "eq", "IfcWall")
2333 -def conditionDoor = bim.createCondition("class", "eq", "IfcDoor")
2334 -bim.showElements(conditionWall | conditionDoor )
2330 +def project = bim.getProject()
2331 +def editProjectDate = project.getEditDate()
2332 + console.info(editProjectDate.toString())
2333 +// -> “INFO: 2022-01-01 01:01:12.567 +0300”
2335 2335  
2336 2336  {{/code}}
2337 2337  
2338 -
2339 2339  (% class="box infomessage" %)
2340 2340  (((
2341 2341  **{{id name="_Toc27"/}}getFilesDownloadLinks** - получение списка ссылок на скачивание файлов, которые вложены в задачи проекта
... ... @@ -2372,10 +2372,11 @@
2372 2372  
2373 2373  * **bim.editTokenExpiredDate()**
2374 2374  **Пример использования:**
2375 -{{code language="java"}}
2376 -UUID uuid = UUID.fromString('94e8e236-510b-4325-8b3a-15e317924bb2')
2377 - bim.editTokenExpiredDate (uuid, 2)
2378 -{{/code}}
2373 +{{code language="java"}}def listModels = bim.getProjectModels()
2374 +for (Model model: listModels ) {
2375 +def modelUuid = model.getUuid()
2376 +// console.info(modelUuid .toString()) -> “INFO: 4e733308-7ddd-11ec-90d6-0242ac120003”
2377 +}{{/code}}
2379 2379  
2380 2380  (% class="box infomessage" %)
2381 2381  (((
... ... @@ -2392,16 +2392,29 @@
2392 2392  **Примеры использования:**
2393 2393  
2394 2394  {{code language="java"}}
2395 -def conditionWall = bim.createCondition("class", "eq", "IfcWall")
2396 -def conditionDoor = bim.createCondition("class", "eq", "IfcDoor")
2397 -bim.showElements(conditionWall | conditionDoor )
2394 +def listCollisions = bim.getModelCollisions(UUID.fromString("ac178efe-7e8d-11ec-90d6-0242ac120003")
2395 +for (def collsion: listCollisions ) {
2396 +def globalAId = collsion.getGlobalAId()
2398 2398  
2398 +// console.info(globalAId) -> “INFO: 0Dtdg2chjBhhgnQ7zCqZkk”
2399 +def globalBId = collsion.getGlobalBId()
2400 +
2401 +// console.info(globalBId) -> “INFO: js89njhsihd9ffsd3kmll9hln0”
2402 +}
2403 +
2399 2399  {{/code}}
2400 2400  
2401 2401  
2402 2402  {{code language="java"}}
2403 -def elementCondition = bim.createCondition("attribute","width", "gt", "1000")
2404 -bim.showElements(elementCondition)
2408 +def listCollisions = bim.getModelCollisions(UUID.fromString("ac178efe-7e8d-11ec-90d6-0242ac120003", "NEW")
2409 +for (def collsion: listCollisions ) {
2410 +def globalAId = collsion.getGlobalAId()
2411 +
2412 +// console.info(globalAId) -> “INFO: 0Dtdg2chjBhhgnQ7zCqZkk”
2413 +def globalBId = collsion.getGlobalBId()
2414 +
2415 +// console.info(globalBId) -> “INFO: js89njhsihd9ffsd3kmll9hln0”
2416 +}
2405 2405  {{/code}}
2406 2406  
2407 2407