Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Giu Platania 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?
-
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
-
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....