Book a Demo

Author Topic: [ShapeScripts] - iterate over attributes  (Read 7157 times)

Daiim

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
[ShapeScripts] - iterate over attributes
« on: April 10, 2017, 10:50:21 pm »
Hi guys,

is it possible somehow to iterate through all element attributes to draw them individually (e.g. as checkbox if they are boolean?)

or alternatively, use uml profiles and overload checklist, so that they'll have a certain set of elements? btw - how does checklist work (in rendering its elements in shapes?) - modifying its tagged value (the xml element list) has no effect ..

thx for help, tips and hints.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: [ShapeScripts] - iterate over attributes
« Reply #1 on: April 11, 2017, 12:39:02 am »
I guess that is not possible (except any Sparxian has a tricky solution for it). The GUI elements are hard coded stuff inside EA and do not use shape script.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: [ShapeScripts] - iterate over attributes
« Reply #2 on: April 11, 2017, 01:31:02 am »
No, I asked the same question a while ago. The attributes info is not available to shapescripts. They have created a feature request on my behalf.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: [ShapeScripts] - iterate over attributes
« Reply #3 on: April 11, 2017, 09:32:33 am »
No, I asked the same question a while ago. The attributes info is not available to shapescripts. They have created a feature request on my behalf.

Geert
+1

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!