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_ForceLength

EARules_ForceLength allows an Add-In registered to provide rules for a language to specify that some elements are sized to the width or height of the diagram.

This event occurs during diagram load and resize events.

Syntax

Function EARules_ForceLength (Repository As EA.Repository, Language As String, Diagram as EA.Diagram) As Integer

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

Diagram

EA.Diagram

Direction: IN

Description: Specifies the diagram currently being loaded.

Diagram Class

Return Value

  • Return a positive value to specify that this diagram should enforce the length of elements
  • Return zero to specify that no elements should have their length enforced
  • Return a negative value to use the behavior from the base rules

Learn more