Book a Demo

Author Topic: Programmatically show element|diagram property dialog  (Read 3471 times)

larswilhelmsen

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Programmatically show element|diagram property dialog
« on: January 09, 2017, 04:57:03 am »
Hi,

 I guessed it was an available operation on the Repository interface or on Element|Diagram to pop up the property dialog for the given item.
 
 Is this possible at all with the available API functionality?

 --larsw

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Programmatically show element|diagram property dialog
« Reply #1 on: January 09, 2017, 05:48:05 am »
Yes, though not documented:

Code: [Select]
xmlres =
          Respository.CustomCommand(
            "CFormCommandHelper", "ProcessCommand",
            "Dlg=" + dlg + ";id=" + id + ";hwnd=" + hwnd);

Depending on dlg the id parameter must be supplied:

dlg id
PKG EaPackage.PackageID
ELM EaElement.ElementID
ATT EaAttribute.AttributeID
OP  EaMethod.MethodID
DGM EaDiagram.DiagramID

(from my Scripting book p. 39)

q.