预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

EARules_Initialize

EARules_Initialize enables Add-Ins to override internal behavior for one or more technologies.
This event occurs during Add-In initialization.

Syntax

Function EARules_Initialize (Repository As EA.Repository, RuleIndex As Integer, Base As String) As String
The EARules_Initialize function syntax contains these parameters.

Parameter

Description

See also

Repository

EA.Repository
Direction: IN
Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Repository Class

RuleIndex

Integer
Direction: IN
Description: Provides a count of the number of calls to this function. This allows you to define multiple rule sets without maintaining your own state for previous calls to this function.

Base

String
Direction: OUT
Description: This parameter can be assigned the name of an existing set of rules that will be treated as a superclass of the rule set defined by your Add-In. The rules are named by the profile name containing the stereotypes or diagram types that are being modified. You will usually use this value if you are extending the stereotypes within that profile.
The customized rules that are built-in to Enterprise Architect are:

  • ArchiMate3.0

  • BPMN2.0

  • DMN1.1

  • MARTE

  • Modelica

  • SPEM

  • SysML1.2

  • SysML1.3

  • SysML1.4

  • SysPhS

Return Value


  • Returns a non-empty string that matches the name of a profile or diagram profile to define rules for that profile; this function will be called again to allow rules for additional profiles

  • Returns an empty string to specify that the Add-In does not define any additional technology-specific rules