Author Topic: settings diagram property with VB  (Read 2655 times)

Giu Platania

  • EA User
  • **
  • Posts: 85
  • Karma: +4/-0
  • As Above so Below
    • View Profile
    • Linkedin
settings diagram property with VB
« on: June 02, 2018, 05:07:45 am »
I have a script that is creating a diagram with VB.
To be sure that the result looks acceptable I'm trying to:
1. ensure that disable fully scope object name is true
2. disable the stereotype name for object
3. disable relationships' view

I was looking at the doc in http://www.sparxsystems.com.au/resources/user-guides/automation/automation.pdf without success.
How can I do it?
Giuseppe Platania
Enterprise Architect
Door Business Consulting
+++
"As above so below, to accomplish the miracles of the One Thing" - Trismegistus
===
The above content reflects my own opinion and is not endorsed by Monthy Python
***
The above is NOT a reference to Monty Python

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13245
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: settings diagram property with VB
« Reply #1 on: June 02, 2018, 03:22:15 pm »
Have you considered using the template package?

If that is not an option you'll have to find where exactly the information is stored.
I'm pretty sure it's hiding somewhere in the PDATA and StyleEx columns of t_diagram somewhere.

You might be able to modify the diagram style using the API, but if not then you'll have to resort to updating the database directly using Repository.Execute(sqlUpdateString)

Disclaimer: Repository.Execute is an undocumented and unsupported hidden operation that has the potential to completely ruin your model. Use at your own risk.

Geert

Giu Platania

  • EA User
  • **
  • Posts: 85
  • Karma: +4/-0
  • As Above so Below
    • View Profile
    • Linkedin
Re: settings diagram property with VB
« Reply #2 on: June 04, 2018, 10:25:58 pm »
thank you Geert,
I will give a try to the SQL query. However is amazing that in version 14 we still have this kind of situations....
Giuseppe Platania
Enterprise Architect
Door Business Consulting
+++
"As above so below, to accomplish the miracles of the One Thing" - Trismegistus
===
The above content reflects my own opinion and is not endorsed by Monthy Python
***
The above is NOT a reference to Monty Python