Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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.
-
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
-
EA does not seem to allow us to directly manipulate Model objects.
-
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
-
Try this:
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.