Book a Demo

Author Topic: JScript to Automate the Feature and Compartment Visibility for Classes  (Read 4622 times)

localhro2

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
All,

I have a script that looks at a class and then creates a diagram with that class on it and all other classes connected to it via associations, generalizations, etc...

So far it works great, but I also want to automate the Feature and Compartment Visibility, so that I can automatically show notes, wrap Features, and show Attributes on all of the classes on the diagram.

How do you access the feature and compartment visibility from the API? Is it even possible. I would assume it would happen at the Diagram Object level. Am I looking in the wrong API Class??

Any help would be greatly appreciated we are building 1000's of these diagrams so doing it manually will be a chore.

Thanks,

Sean Conway

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
You will probably need to have a look into my Inside book. Chap. 9.9 about t_diagram.PDATA lists quite a lot of those features. It's coded as CSV. You can also find out the details yourself by changing/observing the field.

q.