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

Last modified by Bimit Administrator on 02.10.2024, 09:47

From version 45.1
edited by Bimit Administrator
on 10.02.2022, 13:51
Change comment: There is no comment for this version
To version 51.1
edited by Bimit Administrator
on 10.02.2022, 14:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,6 +5,7 @@
5 5  * [[getProjectModels>>||anchor="HgetProjectModels"]] - взятие всех активных моделей проекта на котором выполняется плагин
6 6  * [[getModelRevisions>>||anchor="HgetModelRevisions"]] - взятие всех ревизий модели
7 7  * [[getProjectTasks>>doc:||anchor="HgetProjectTasks"]] - получение списка всех задач проекта
8 +* [[getTaskComments>>||anchor="HgetTaskComments"]] - получение списка всех комментариев у задачи по идентификатору задача
8 8  * getElement
9 9  * getElements
10 10  * getGeometryElement
... ... @@ -203,7 +203,7 @@
203 203  **Пример использования:**
204 204  
205 205  {{code language="java"}}
206 -def listModels = bim.getProjectModels()
207 +def listModels = bim.getProjectModels()
207 207  for (Model model: listModels ) {
208 208  def modelUuid = model.getUuid()
209 209  
... ... @@ -221,8 +221,17 @@
221 221  
222 222  **Пример использования:**
223 223  
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()
224 224  
230 +// console.info(modelRevisionUuid .toString()) -> “INFO: 697ba2b6-7ddd-11ec-90d6-0242ac120003”
231 +}
225 225  
233 +{{/code}}
234 +
235 +
226 226  === ===
227 227  
228 228  (% class="box infomessage" %)
... ... @@ -452,5 +452,77 @@
452 452  {{/code}}
453 453  
454 454  
465 +(% class="box infomessage" %)
466 +(((
467 +getTaskComments - получение списка всех комментариев у задачи по идентификатору задача
468 +)))
455 455  
470 +* **getTaskComments(UUID taskUuid)**
471 +
472 +(% style="margin-left:2px" %)
473 +(((
474 +(% cellspacing="0" style="border-collapse:collapse; border:medium none; height:225px; width:850px" %)
475 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:125px" %)(((
476 +(% style="line-height:1.2" %)
477 +(% 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" %)Поле
478 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:146px" %)(((
479 +(% style="line-height:1.2" %)
480 +(% 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" %)Тип данных поля
481 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:326px" %)(((
482 +(% style="line-height:1.2" %)
483 +(% 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" %)Описание поля
484 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:228px" %)(((
485 +(% style="line-height:1.2" %)
486 +(% 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" %)Метод взятия данных поля
487 +)))
488 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:125px" %)(((
489 +(% style="line-height:1.2" %)
490 +(% 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
491 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:146px" %)(((
492 +(% style="line-height:1.2" %)
493 +(% 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
494 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:326px" %)(((
495 +(% style="line-height:1.2" %)
496 +(% 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" %)дата создания комментария
497 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:228px" %)(((
498 +(% style="line-height:1.2" %)
499 +(% 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()
500 +)))
501 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:125px" %)(((
502 +(% style="line-height:1.2" %)
503 +(% 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
504 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:146px" %)(((
505 +(% style="line-height:1.2" %)
506 +(% 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
507 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:326px" %)(((
508 +(% style="line-height:1.2" %)
509 +(% 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" %)комментарий
510 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:228px" %)(((
511 +(% style="line-height:1.2" %)
512 +(% 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()
513 +)))
514 +|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:125px" %)(((
515 +(% style="line-height:1.2" %)
516 +(% 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
517 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:146px" %)(((
518 +(% style="line-height:1.2" %)
519 +(% 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
520 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:326px" %)(((
521 +(% style="line-height:1.2" %)
522 +(% 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" %)автор комментария
523 +)))|(% style="border-color:#000000; border-style:solid; border-width:1px; padding:7px; vertical-align:top; width:228px" %)(((
524 +(% style="line-height:1.2" %)
525 +(% 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()
526 +)))
527 +)))
528 +
529 +**Пример использования**
530 +
531 +{{code language="java"}}
532 +def listComments = bim.getTaskComments(c73df7aa-7ddd-11ec-90d6-0242ac120003)
533 +for (Comment comment: listComments ) {
534 + def authorUuid= comment.setAuthorUuid()
535 +
536 +{{/code}}
537 +
456 456