Author Topic: Programmatically Open PropertyPage on Model Object  (Read 3826 times)

tmtm

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Programmatically Open PropertyPage on Model Object
« 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Programmatically Open PropertyPage on Model Ob
« Reply #1 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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Programmatically Open PropertyPage on Model Ob
« Reply #2 on: September 04, 2009, 10:55:39 pm »
EA does not seem to allow us to directly manipulate Model objects.
No, you can't have it!

BenjaminCervera

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Programmatically Open PropertyPage on Model Object
« Reply #3 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Programmatically Open PropertyPage on Model Object
« Reply #4 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.