ecl-logo Documentation

Placement

Placement[placementRules]primitive

generates a primitive that describes a placement of an item into a destination according to placementRules.

Details

  • Placements contains a set of mandatory and optional keys that describes the placement.
  • Required Keys:
  •     Item,Destination
  • Optional Keys:
  •     Position,Layout
  • Input
    Output
    Messages
  • InsufficientParametersPlease make sure both Item and Destination is specified.
    InvalidPlacementThe Placement parameters do not match PlacementP. Please make sure all keys are valid and their values match the required patterns in PlacementP.

Examples

Basic Examples  (3)

Creates a Placement primitive:

Fetch parameter by dereferencing the desired key:

Specific Position and Layout values can be optionally specified:

Messages  (4)

InsufficientParameters  (2)

Throws a message Item and Destination keys are not specified:

Throws a message if no keys are provided:

InvalidPlacement  (2)

Throws a message if an extra key is provided:

Throws a message if a key's value does not match PlacementP: