Skip to content

EXEC_LAYOUT_ALGORITHM

EXEC_LAYOUT_ALGORITHM applies a layout algorithm on a model.

Syntax

leo-grammar
CC "Drawing" EXEC_LAYOUT_ALGORITHM	name:strValue modelid:intValue

# --> RESULT ecode:intValue
CC "Drawing" EXEC_LAYOUT_ALGORITHM	name:strValue modelid:intValue

# --> RESULT ecode:intValue

Parameters

  • name (strValue) - specifies the algorithm which shall be applied on this model
  • modelid (idValue) - specifies the ID of the model

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details

A layout algorithm with the specified name must exist. It can be statically customized or dynamically created with CC "Drawing" CREATE_LAYOUT_ALGORITHM. Note that the UI independent name has to be used here.

See Also

CREATE_LAYOUT_ALGORITHM

Examples

asc
CC "Modeling" GET_ACT_MODEL
SET algname:"Without swimlanes (horizontal)"
CC "Drawing" EXEC_LAYOUT_ALGORITHM name:(algname) modelid:(modelid)
CC "Modeling" GET_ACT_MODEL
SET algname:"Without swimlanes (horizontal)"
CC "Drawing" EXEC_LAYOUT_ALGORITHM name:(algname) modelid:(modelid)

Versions and Changes

Available since ADOxx 1.3