Document Viewer

« Back

HandsOn Query 3: Evaluate Container Instances

Get all objects that are situated inside the object V1 or object V1 is situated inside them

CC "Modeling" GET_ACT_MODEL

# make first query with all objects inside V1
CC "AQL" EVAL_AQL_EXPRESSION expr: "({\"V1\":\"V\"}<-\"Is inside\")
                                 OR ({\"V1\":\"V\"}->\"Is inside\")"
                             modelid: ( modelid )
SETL st1: ( objids )
IF (ecode = 0) {
    CC "AdoScript" INFOBOX ("Found objects: " + st1)
}
ELSE {
    CC "AdoScript" INFOBOX "An error has occured!"
}