Book a Demo

Author Topic: Can we interrogate feature visibility from script  (Read 4784 times)

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Can we interrogate feature visibility from script
« on: May 26, 2010, 03:49:47 pm »
Hi,
I have a script in which I'm trying to construct a Word document based on model elements and their relationships. A bit like a poor-man's Add-in.

I would like to restrict the contents based on what is displayed on a diagram. One thing I would like to do is itemise the Attributes of a Class only if they are visible on the diagram.

Is it possible to interrogate the model from within to see what features are visible for a given class on a given diagram?

Cheers,
Andrew.
Regards,
Andrew Warner.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can we interrogate feature visibility from scr
« Reply #1 on: May 26, 2010, 03:56:20 pm »
Andrew,

This question (and its answer) has been posted on the forum recently.
Try a search (using the top left button) for "attribute visible" or something like that.

Geert

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Can we interrogate feature visibility from scr
« Reply #2 on: May 26, 2010, 04:02:43 pm »
Thanks Geert,
I did a search for the things I thought would match before I posted but I'll have another look.

Thanks again,
Andrew.
Regards,
Andrew Warner.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Can we interrogate feature visibility from scr
« Reply #3 on: May 26, 2010, 04:12:57 pm »
Search for "SPL" within the last month...
The Sparx Team
[email protected]

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can we interrogate feature visibility from scr
« Reply #4 on: May 26, 2010, 04:31:41 pm »
searching on "feature visibility" did it for me:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1273728522/5#5

Geert

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Can we interrogate feature visibility from scr
« Reply #5 on: May 27, 2010, 06:49:47 am »
Thanks guys I'll chase it up and thanks Geert, it was right there in front of me. I just couldn't see it for looking, Dang!

Cheers,
Andrew.
Regards,
Andrew Warner.