Wiki source code of Интерфейс bim
                  Version 3.1 by Bimit Administrator on 08.02.2022, 15:08
              
      Hide last authors
| author | version | line-number | content | 
|---|---|---|---|
|  | 2.1 | 1 | Основной интерфейс для получения и работы с данными. В данном интерфейсе доступны следующие методы: | 
| 2 | |||
| 3 | * getProject | ||
| 4 | * getProfile | ||
| 5 | * getProjectModels | ||
| 6 | * getModelRevisions | ||
| 7 | * getElement | ||
| 8 | * getElements | ||
| 9 | * getGeometryElement | ||
| 10 | * getGeometryElements | ||
| 11 | * getGeometryProject | ||
| 12 | * getGeometryModel | ||
| 13 | * getGeometryElementA | ||
| 14 | * getGeometryElementB | ||
| 15 | * showElements | ||
| 16 | * createGroupElements | ||
| 17 | * showGroupElements | ||
| 18 | * createCondition | ||
| 19 | * getProjectCollisions | ||
| 20 | * getModelCollisions | ||
|  | 3.1 | 21 | * ((( | 
| 22 | (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)getProjectTasks - получение списка всех задач проекта | ||
| 23 | ))) | ||
|  | 2.1 | 24 | |
|  | 3.1 | 25 | |
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)getProjectTasks - получение списка всех задач проекта | ||
| 34 | |||
| 35 | |||
| 36 | (% style="font-size: 14pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(67, 67, 67); font-weight: 400; font-style: normal; text-decoration: none" %)getProjectTasks()(%%) метод который возвращеает структуруру списк задач, каждая задачяа представл\яет из себя слудубющую структуру | ||
| 37 | |||
| 38 | поле тип данных поля описание поля метод взяти\ данных поля | ||
| 39 | |||
| 40 | ((( | ||
| 41 | (% cellspacing="0" style="border-collapse:collapse; border:none; width:539px" %) | ||
| 42 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:129px" %)((( | ||
| 43 | (% style="line-height:1.2" %) | ||
| 44 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)uuid | ||
| 45 | )))|(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:127px" %)((( | ||
| 46 | (% style="line-height:1.2" %) | ||
| 47 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)uuid | ||
| 48 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:138px" %)((( | ||
| 49 | (% style="line-height:1.2" %) | ||
| 50 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)идентификатор задачи | ||
| 51 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:145px" %)((( | ||
| 52 | (% style="line-height:1.2" %) | ||
| 53 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getUuid() | ||
| 54 | ))) | ||
| 55 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:129px" %)((( | ||
| 56 | (% style="line-height:1.2" %) | ||
| 57 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)title | ||
| 58 | )))|(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:127px" %)((( | ||
| 59 | (% style="line-height:1.2" %) | ||
| 60 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)string | ||
| 61 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:138px" %)((( | ||
| 62 | (% style="line-height:1.2" %) | ||
| 63 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)заголовок задачи | ||
| 64 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:145px" %)((( | ||
| 65 | (% style="line-height:1.2" %) | ||
| 66 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getTitle() | ||
| 67 | ))) | ||
| 68 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:129px" %)((( | ||
| 69 | (% style="line-height:1.2" %) | ||
| 70 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)name | ||
| 71 | )))|(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:127px" %)((( | ||
| 72 | (% style="line-height:1.2" %) | ||
| 73 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)string | ||
| 74 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:138px" %)((( | ||
| 75 | (% style="line-height:1.2" %) | ||
| 76 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)наименование задачи | ||
| 77 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:145px" %)((( | ||
| 78 | (% style="line-height:1.2" %) | ||
| 79 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getName() | ||
| 80 | ))) | ||
| 81 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:129px" %)((( | ||
| 82 | (% style="line-height:1.2" %) | ||
| 83 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)description | ||
| 84 | )))|(% style="background-color:#cccccc; border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:127px" %)((( | ||
| 85 | (% style="line-height:1.2" %) | ||
| 86 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)string | ||
| 87 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:138px" %)((( | ||
| 88 | (% style="line-height:1.2" %) | ||
| 89 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)описание задачи | ||
| 90 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:145px" %)((( | ||
| 91 | (% style="line-height:1.2" %) | ||
| 92 | (% style="overflow: hidden; overflow-wrap: break-word; font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getDescription() | ||
| 93 | ))) | ||
| 94 | ))) | ||
| 95 | |||
| 96 | При мер использования | ||
| 97 | |||
| 98 | |||
| 99 | (% style="line-height:1.2" %) | ||
| 100 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Пример: | ||
| 101 | |||
| 102 | (% style="line-height:1.2" %) | ||
| 103 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)def listTasks = bim.getProjectTasks() | ||
| 104 | |||
| 105 | (% style="line-height:1.2" %) | ||
| 106 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)for (Task task: listTasks ) { | ||
| 107 | |||
| 108 | (% style="line-height:1.2" %) | ||
| 109 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %) def taskUuid= task.getUuid() | ||
| 110 | |||
| 111 | (% style="line-height:1.2" %) | ||
| 112 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %) console.info(taskUuid .toString()) -> “INFO: c73df7aa-7ddd-11ec-90d6-0242ac120003” | ||
| 113 | |||
| 114 | (% style="line-height:1.2" %) | ||
| 115 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)….. | ||
| 116 | |||
| 117 | (% style="line-height:1.2" %) | ||
| 118 | (% style="font-size: 13pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)} | ||
| 119 | |||
| 120 | |||
|  | 2.1 | 121 | 
