Rule to Filter a View To Get Design View

An opening ID is an entry point used to customize business logic. The Schematic_FilterViewToGetDesignView opening ID is used to filter the diagram views to be compared from the same sheet.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when using Compare and Synchronize Sheets.

Definition Description
PLM Opening ID Schematic_FilterViewToGetDesignView
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: LogicalOccurrence (the logical system occurrence containing the sheet)
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
Input_List_DifSheetInstances (input) List Read List of the sheet instances
Input_List_ListOfDifViewReferences (input) List Read List of list of diagram view references corresponding to the list of the sheet instances
Output_List_ListOfDesignViewReferences (output) List Write List of List of filtered diagram view references corresponding to the list of the sheet instances

Sample

let ListOfDifSheetInst(List)
set ListOfDifSheetInst=Parameters.GetAttributeObject("Input_List_DifSheetInstances")

let ListOfListOfDifViewRef(List)
set ListOfListOfDifViewRef=Parameters.GetAttributeObject("Input_List_ListOfDifViewReferences")

let outListOfListOfDesignView(List)
let j = 1
let illsize = 0
set illsize = ListOfListOfDifViewRef->Size()
for j while j<=illsize
{
	let ListOfDifViewRef(List)
	set ListOfDifViewRef = ListOfListOfDifViewRef->GetItem(j)
	
	let outListOfDesignView(List)
	let DifViewRef(DIFView)
	let strDifViewName(String)
	let i = 1
	let isize = 0
	let index(Integer)
	set isize = ListOfDifViewRef->Size()
	for i while i<=isize
	{
		set DifViewRef = ListOfDifViewRef->GetItem(i)
		set strDifViewName = DifViewRef.Name
		
		set index = strDifViewName->Search("DesignView")
		if(-1 <> index)
		{
			outListOfDesignView.Append(DifViewRef)
		}		
		i = i+1
	}
	
	outListOfListOfDesignView.Append(outListOfDesignView)
	j = j+1
}

Parameters.SetAttributeObject("Output_List_ListOfDesignViewReferences", outListOfListOfDesignView)