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

Last modified by Bimit Administrator on 02.10.2024, 09:47

From version 40.1
edited by Bimit Administrator
on 10.02.2022, 10:42
Change comment: There is no comment for this version
To version 49.1
edited by Bimit Administrator
on 10.02.2022, 14:11
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,10 +1,11 @@
1 1  Основной интерфейс для получения и работы с данными. В данном интерфейсе доступны следующие методы:
2 2  
3 -* [[getProject>>||anchor="HgetProject"]]
4 -* getProfile
5 -* getProjectModels
6 -* getModelRevisions
3 +* [[getProject>>||anchor="HgetProject"]] - взятие проекта на котором выполняется плагин
4 +* [[getProfile>>||anchor="HgetProfile"]] - получение данных о пользователе по его идентификатору Uuid
5 +* [[getProjectModels>>||anchor="HgetProjectModels"]] - взятие всех активных моделей проекта на котором выполняется плагин
6 +* [[getModelRevisions>>||anchor="HgetModelRevisions"]] - взятие всех ревизий модели
7 7  * [[getProjectTasks>>doc:||anchor="HgetProjectTasks"]] - получение списка всех задач проекта
8 +* [[getTaskComments>>||anchor="HgetTaskComments"]] - получение списка всех комментариев у задачи по идентификатору задача
8 8  * getElement
9 9  * getElements
10 10  * getGeometryElement
... ... @@ -20,14 +20,15 @@
20 20  * getProjectCollisions
21 21  * getModelCollisions
22 22  
23 -====== getProject ======
24 +====== ======
24 24  
26 +====== ======
27 +
25 25  (% class="box infomessage" %)
26 26  (((
27 -взятие проекта на котором выполняется плагин
30 +**getProject** - взятие проекта на котором выполняется плагин
28 28  )))
29 29  
30 -
31 31  * **bim.getProject() **- метод представляет следующую структуру
32 32  
33 33  (((
... ... @@ -175,7 +175,62 @@
175 175  {{/code}}
176 176  
177 177  
180 +(% class="box infomessage" %)
181 +(((
182 +**getProfile**  - получение данных о пользователе по его идентификатору Uuid
183 +)))
178 178  
185 +* **bim.getProfile(Идентификатор пользователя)**
186 +
187 +**Пример использования:**
188 +
189 +{{code language="java"}}
190 +def profile = bim.getProfile(UUID.fromString(“ef952aa8-7ddc-11ec-90d6-0242ac120003")
191 +def profileUuid= profile.getUuid()
192 +
193 +// console.info(profileUuid.toString()) -> “INFO: ef952aa8-7ddc-11ec-90d6-0242ac120003”
194 +{{/code}}
195 +
196 +
197 +(% class="box infomessage" %)
198 +(((
199 +**getProjectModels** - взятие всех активных моделей проекта на котором выполняется плагин)
200 +)))
201 +
202 +* **bim.getProjectModels()**
203 +
204 +**Пример использования:**
205 +
206 +{{code language="java"}}
207 +def listModels = bim.getProjectModels()
208 +for (Model model: listModels ) {
209 +def modelUuid = model.getUuid()
210 +
211 +// console.info(modelUuid .toString()) -> “INFO: 4e733308-7ddd-11ec-90d6-0242ac120003”
212 +}
213 +{{/code}}
214 +
215 +
216 +(% class="box infomessage" %)
217 +(((
218 +**getModelRevisions** - взятие всех ревизий модели
219 +)))
220 +
221 +* **bim.getModelRevisions(Идентификатор модели)**
222 +
223 +**Пример использования:**
224 +
225 +{{code language="java"}}
226 +def listModelRevisions = bim.getModelRevisions(UUID.fromString(“4e733308-7ddd-11ec-90d6-0242ac120003”)
227 +for (ModelRevision modelRevision: listModelRevisions ) {
228 + def modelRevisionUuid= modelRevision.getUuid()
229 +
230 +// console.info(modelRevisionUuid .toString()) -> “INFO: 697ba2b6-7ddd-11ec-90d6-0242ac120003”
231 +}
232 +
233 +{{/code}}
234 +
235 +
179 179  === ===
180 180  
181 181  (% class="box infomessage" %)
... ... @@ -405,6 +405,134 @@
405 405  {{/code}}
406 406  
407 407  
465 +(% class="box infomessage" %)
466 +(((
467 +getTaskComments - получение списка всех комментариев у задачи по идентификатору задача
468 +)))
408 408  
470 +* **getTaskComments(UUID taskUuid)**
409 409  
472 +(((
473 +(% cellspacing="0" style="border-collapse:collapse; border:medium none; height:223px; table-layout:fixed; width:850px" %)
474 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:149px" width="NaN" %)(((
475 +(% style="line-height:1.2" %)
476 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)Поле
477 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:259px" %)(((
478 +(% style="line-height:1.2" %)
479 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)Тип данных поля
480 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:292px" %)(((
481 +(% style="line-height:1.2" %)
482 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)Описание поля
483 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:457px" %)(((
484 +(% style="line-height:1.2" %)
485 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)Метод взятия данных поля
486 +)))
487 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:149px" width="NaN" %)(((
488 +(% style="line-height:1.2" %)
489 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)createDate
490 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:259px" %)(((
491 +(% style="line-height:1.2" %)
492 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)date-time
493 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:292px" %)(((
494 +(% style="line-height:1.2" %)
495 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)дата создания комментария
496 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:457px" %)(((
497 +(% style="line-height:1.2" %)
498 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)getCreateDate()
499 +)))
500 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:149px" width="NaN" %)(((
501 +(% style="line-height:1.2" %)
502 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)text
503 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:259px" %)(((
504 +(% style="line-height:1.2" %)
505 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)string
506 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:292px" %)(((
507 +(% style="line-height:1.2" %)
508 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)комментарий
509 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:457px" %)(((
510 +(% style="line-height:1.2" %)
511 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)getText()
512 +)))
513 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:149px" width="NaN" %)(((
514 +(% style="line-height:1.2" %)
515 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)authorUuid
516 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:259px" %)(((
517 +(% style="line-height:1.2" %)
518 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)uuid
519 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:292px" %)(((
520 +(% style="line-height:1.2" %)
521 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)автор комментария
522 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:457px" %)(((
523 +(% style="line-height:1.2" %)
524 +(% style="color:#000000; font-family:Arial; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)getAuthorUuid()
525 +)))
526 +)))
527 +
528 +**Пример использования:**
529 +
530 +{{code language="java"}}
531 +def listComments = bim.getTaskComments(c73df7aa-7ddd-11ec-90d6-0242ac120003)
532 +for (Comment comment: listComments ) {
533 + def authorUuid= comment.setAuthorUuid()
534 +
535 +{{/code}}
536 +
537 +
538 +(% style="margin-left:2px" %)
539 +(((
540 +(% cellspacing="0" style="border-collapse:collapse; border:medium none; height:225px; width:850px" %)
541 +|(% 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:134px" %)(((
542 +(% style="line-height:1.2" %)
543 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Поле
544 +)))|(% 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:115px" %)(((
545 +(% style="line-height:1.2" %)
546 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Тип данных поля
547 +)))|(% 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:147px" %)(((
548 +(% style="line-height:1.2" %)
549 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Описание поля
550 +)))|(% 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:141px" %)(((
551 +(% style="line-height:1.2" %)
552 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)Метод взятия данных поля
553 +)))
554 +|(% 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:134px" %)(((
555 +(% style="line-height:1.2" %)
556 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)createDate
557 +)))|(% 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:115px" %)(((
558 +(% style="line-height:1.2" %)
559 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)date-time
560 +)))|(% 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:147px" %)(((
561 +(% style="line-height:1.2" %)
562 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)дата создания комментария
563 +)))|(% 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:141px" %)(((
564 +(% style="line-height:1.2" %)
565 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getCreateDate()
566 +)))
567 +|(% 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:134px" %)(((
568 +(% style="line-height:1.2" %)
569 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)text
570 +)))|(% 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:115px" %)(((
571 +(% style="line-height:1.2" %)
572 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; 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
573 +)))|(% 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:147px" %)(((
574 +(% style="line-height:1.2" %)
575 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)комментарий
576 +)))|(% 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:141px" %)(((
577 +(% style="line-height:1.2" %)
578 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getText()
579 +)))
580 +|(% 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:134px" %)(((
581 +(% style="line-height:1.2" %)
582 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)authorUuid
583 +)))|(% 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:115px" %)(((
584 +(% style="line-height:1.2" %)
585 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; 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
586 +)))|(% 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:147px" %)(((
587 +(% style="line-height:1.2" %)
588 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)автор комментария
589 +)))|(% 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:141px" %)(((
590 +(% style="line-height:1.2" %)
591 +(% style="overflow: hidden; overflow-wrap: break-word; font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none" %)getAuthorUuid()
592 +)))
593 +)))
594 +
410 410