Book a Demo

Author Topic: Setting diagram properties  (Read 3699 times)

stegeto22

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Setting diagram properties
« on: March 12, 2007, 04:30:20 am »
Hi,

how is it possible to change all of the settings shown in diagram properties with the automation interface?

Thanks

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Setting diagram properties
« Reply #1 on: March 12, 2007, 05:03:13 am »
You'll have to hunt through the documentation for most of them. Those things that affect the appearance of the diagram as a whole can be set pretty easily, while other settings that affect what is shown for elements sometimes need to be set on an individual basis.

One thing to remember is that these properties have to be set for each diagram you create through the API. There does not appear to be anything that remembers your default (or preferred, if you prefer) settings.
No, you can't have it!

stegeto22

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Setting diagram properties
« Reply #2 on: March 12, 2007, 05:21:00 am »
I've looked in the documentation, but there I only find some of these settings (e.g. "show details", "show public").
What I want to set is "Show constraints", "Show tags" or "Show additional parents". These settings are not described in the documentation.
« Last Edit: March 12, 2007, 05:44:07 am by stegeto22 »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Setting diagram properties
« Reply #3 on: March 12, 2007, 10:04:39 am »
AFAIK you will need to set some of these by tweaking the back end database directly, whether an EAP file (which you get through the appropriate Jet driver) or a DBMS (which you can reach through OLEDB).

Remember that you will be on your own if you trash the file, since this is not documented or supported by Sparx. However, the necessary stuff is pretty easy to figure out, and has remained pretty stable for quite some time.

When you fiddle with the back end data, pay attention to what's there already (you'll know what I mean when you see it) and make sure you restore the parts you do not need to touch.

You also need to ensure that you synchronize your database tweaks with what you are doing through the API. You might need to occasionally reload a diagram. See the documentation for the necessary methods.

Look at the PDATA field in the t_diagram table. That will get you started.

David
No, you can't have it!