Skip to content

CHECK_POSITIONS_IN_VARIANT ​

CHECK_POSITIONS_IN_VARIANT checks the position information of all objects in a certain variant and returns whether all, some or none of the objects do not have a position.

Syntax ​

leo-grammar
CC "Drawing" CHECK_POSITIONS_IN_VARIANT	modelid:intValue variant:strValue

#--> RESULT ecode:intValue missing: "all" | "some" | "none"

Parameters ​

  • modelid (idValue) - the model whose object positions shall be checked
  • variant (strValue) - the name of the variant where to check object positions

Returns ​

  • ecode (intValue) - 0 if the command call was successful, to 1 otherwise.
  • missing (strValue) -

Details ​

If the position is missing for all objects in the specified variant, the result variable missing is set to "all". If the position is missing for some (but not all) objects, the result is "some". If all objects have a position in the specified variant, missing is set to "none".

See Also ​

Examples ​

asc
CC "Modeling" GET_ACT_MODEL  #--> modelid
CC "Drawing" CHECK_POSITIONS_IN_VARIANT modelid:(modelid) 
										variant:"Without swimlanes (horizontal)"

Versions and Changes ​

Available since ADOxx 1.3