Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: tmtm on September 04, 2009, 05:43:24 am

Title: Programmatically Open PropertyPage on Model Object
Post by: tmtm on September 04, 2009, 05:43:24 am
How can I programmatically open the property window for an model object? I am referring to the same window that opens when the user double-clicks on a package or element in the Project Browser. I've looked through the documentation but didn't find anything.

Thank you.
Title: Re: Programmatically Open PropertyPage on Model Ob
Post by: Geert Bellekens on September 04, 2009, 04:57:38 pm
I don't think so. I tried to do the same a while ago, but I couldn't find any option to allow that.
You can select an element in the project browser, and you can open a diagram, but that's about it.

Geert
Title: Re: Programmatically Open PropertyPage on Model Ob
Post by: «Midnight» on September 04, 2009, 10:55:39 pm
EA does not seem to allow us to directly manipulate Model objects.
Title: Re: Programmatically Open PropertyPage on Model Object
Post by: BenjaminCervera on February 23, 2018, 04:17:50 am
Do any body knows if this situation changes, I mean,  Is possible to open the property window in a programmatic manner in the new releases of EA ?

Benjamin
Title: Re: Programmatically Open PropertyPage on Model Object
Post by: qwerty on February 23, 2018, 07:22:38 am
Try this:
Code: [Select]
  xmlres =
          Respository.CustomCommand(
            "CFormCommandHelper", "ProcessCommand",
            "Dlg=" + dlg + ";id=" + id + ";hwnd=" + hwnd);
Depending on dlg the id parameter must be supplied:
dlg="ELM" id=EaElement.ElementID opens Element properties

(taken from my Scripting book p. 39)

q.