Réserver une Démo

SVP notez : Cette page d’aide n’est pas pour la dernière version d’Enterprise Architect. La dernière aide peut être trouvée ici.

Pré. Proc.

EARules_GetShapeScript

EARules_GetShapeScript allows an Add-In registered to provide rules for a language to customize the rendering of an element for the modeling language of the diagram being drawn.

This event occurs during diagram drawing.

Syntax

Function EARules_GetShapeScript (Repository As EA.Repository, Language As String, Element as EA.Element) As String

The EARules_GetShapeScript 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

Language

String

Direction: IN

Description: Specifies the language for the rule that Enterprise Architect is requesting. This will match one of the values returned from EARules_Initialize.

EARules_Initialize

Element

EA.Element

Direction: IN

Description: Specifies the element currently being drawn.

Element Class

Return Value

  • Return a string containing the Shape Script to use for this element
  • Return an empty string to defer to the parent rules