Introduction
Usage : control if you allow to inserting an existing view under a sheet based on a criteria
Datasetup Resource Set :
- Diagram Resource
Datasetup Resource : Schematic_InsertExistingDifView
Rule Example 1
Description
Insert Existing view allowed if name is "GA"
Rule
/* Rule to Insert an Existing View (Schematic_InsertExistingDifView) */ /* ThisObject : #In DifView */ /* Parameters : #In RuleContext */ set Validation = False let iViewName (String) iViewName = ThisObject.Name let result(Integer) result=iViewName.Search("GA",0,True) if(result>=0) { set Validation=True } Notify("BR Insert Existing View - Validation : #",Validation)