Document Viewer

« Back

HandsOn Query 1: Query Instances in Active Model

Get all objects of class "A" in the current model

CC "Modeling" GET_ACT_MODEL
CC "AQL" EVAL_AQL_EXPRESSION expr: "<\"A\">" modelid: (modelid)
IF (ecode = 0) {
  CC "AdoScript" INFOBOX ("Found objects: " + objids + ".")
}
ELSE {
  CC "AdoScript" INFOBOX "An error has occured!"
}