1
Automation Interface, Add-Ins and Tools / Extracting Available Element Types in Add-In
« on: July 17, 2023, 11:24:15 pm »
Hey guys,
I would like to enable users of my Add-In to have a dropdown menu within the Add-In that provides them with all (for them) possible diagram elements (Actor, Use Case, State, Activity and so on) from UML, SysML, and BPMN for selection.
My idea was to retrieve the version of Enterprise Architect that the user is using and based on that, extract the available element types to later utilize these types in the "repository.elements.AddNew(Name, type)" function. However, I am facing two challenges: I don't know how to retrieve the version within the Add-In, and I'm unsure how to extract the element list based on that version.
Therefore, what I need is a list of possible "UML metaclass types" and "fully-qualified metatypes defined by an MDG Technology" for SysML and BPMN.
I would appreciate any guidance on how to approach this issue or if there is a better alternative solution available.
Thank you in advance for your help!
I would like to enable users of my Add-In to have a dropdown menu within the Add-In that provides them with all (for them) possible diagram elements (Actor, Use Case, State, Activity and so on) from UML, SysML, and BPMN for selection.
My idea was to retrieve the version of Enterprise Architect that the user is using and based on that, extract the available element types to later utilize these types in the "repository.elements.AddNew(Name, type)" function. However, I am facing two challenges: I don't know how to retrieve the version within the Add-In, and I'm unsure how to extract the element list based on that version.
Therefore, what I need is a list of possible "UML metaclass types" and "fully-qualified metatypes defined by an MDG Technology" for SysML and BPMN.
I would appreciate any guidance on how to approach this issue or if there is a better alternative solution available.
Thank you in advance for your help!