Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: adepreter on May 07, 2021, 08:47:55 pm

Title: API to set the diagram "Freeze Visible" property?
Post by: adepreter on May 07, 2021, 08:47:55 pm
Hello,
Does anyone know what is the API to set the diagram "Freeze Visible" property?
Cheers,
Alain
Title: Re: API to set the diagram "Freeze Visible" property?
Post by: qwerty on May 07, 2021, 09:23:48 pm
Where would I find that property in the GUI?

q.
Title: Re: API to set the diagram "Freeze Visible" property?
Post by: adepreter on May 07, 2021, 10:30:13 pm
On an opened diagram
=> Properties window => Connectors group => Freeze Visible

Then the issue is how to change this useful value using the API?
Title: Re: API to set the diagram "Freeze Visible" property?
Post by: Geert Bellekens on May 07, 2021, 11:25:20 pm
I'm guessing its going to be somewhere in either PDATA or StyleEx
The best way to figure it out is to get these values, change the property, and then compare.

Geert
Title: Re: API to set the diagram "Freeze Visible" property?
Post by: philchudley on May 08, 2021, 12:27:49 am
After a bit of experimentation the styleex is

DLKO=1;

This can be added manually to the stylexx attribute for the diagram metaclass in the MDG

I did find the order seemed to matter, so for my MDG I have:

HideConnStereotype=0;DLKO=1;FTV=1;ETV=1;

Being HideConnectorSterotypes = false    FreezeVisible = true     Filter to Version = true       New to Version is true

Phil
Title: Re: API to set the diagram "Freeze Visible" property?
Post by: adepreter on May 08, 2021, 03:30:14 am
You are all amazing!

THANK YOU :-)