Description
MDG_GetProperty provides miscellaneous Add-In details to Enterprise Architect. This function is called by Enterprise Architect to poll the Add-In for information relating to the PropertyName. This event should occur in as short a duration as possible as Enterprise Architect does not cache the information provided by the function.
Values corresponding to the following PropertyNames must be provided:
· | IconID - Return the name of a DLL and a resource identifier in the format #ResID, where the resource ID indicates an Icon; eg. c:\program files\myapp\myapp.dlll#101 |
· | Language - Return the default language that classes should be assigned when they are created in EA |
· | HiddenMenus - Return one or more values from the MDGMenus enumeration to hide menus that do not apply to your Add-In. For example: |
if( PropertyName == "HiddenMenus" )
return mgBuildProject + mgRun;
Syntax
Function MDG_GetProperty(Repository As EA.Repository, PackageGuid As String, PropertyName As String) As Variant
The MDG_GetProperty function syntax contains the following elements
Parameter |
Type |
Direction |
Description |
Repository |
EA.Repository |
IN |
An EA.Repository object representing the currently-open Enterprise Architect model. Poll its members to retrieve model data and user interface status information. |
PackageGuid |
String |
IN |
The GUID identifying the Enterprise Architect package sub-tree that is controlled by the Add-In. |
PropertyName |
String |
IN |
The name of the property that is used by Enterprise Architect See Description for the possible values |
Return Value
See Description, above.