Author Topic: API to set the diagram "Freeze Visible" property?  (Read 4953 times)

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
API to set the diagram "Freeze Visible" property?
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: API to set the diagram "Freeze Visible" property?
« Reply #1 on: May 07, 2021, 09:23:48 pm »
Where would I find that property in the GUI?

q.

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
Re: API to set the diagram "Freeze Visible" property?
« Reply #2 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?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: API to set the diagram "Freeze Visible" property?
« Reply #3 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

philchudley

  • EA User
  • **
  • Posts: 744
  • Karma: +21/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: API to set the diagram "Freeze Visible" property?
« Reply #4 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
Models are great!
Correct models are even greater!

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
Re: API to set the diagram "Freeze Visible" property?
« Reply #5 on: May 08, 2021, 03:30:14 am »
You are all amazing!

THANK YOU :-)