ReturnBool = true
let profile(KWEProfile)
set profile = ThisPrecondition.GetProfile()
let context(VPMReference)
set context = profile.RootContext
let listDrawings(List)
set listDrawings = context.Query("Drawing", "true")
let NbrDrawing(Integer)
set NbrDrawing = listDrawings.Size()
if(NbrDrawing == 0)
ReturnBool = false
Note:
The above script executes the processing group only if the precondition is applied
to an assembly containing a drawing.
The precondition is created.