Report the list of connected sheets
- The purpose of this function is to have a functionality to be able to report on\\off-sheet connectors
- So, this EKL method takes a PLM Instance (The routable) as input and returns all the properties of all Sheets connectors connected to this PLM instance.
- CATGetSchSheetConnectorInformations (iRoutableInstance, oListOfSheetCntrInfos)
//LogicalOccurrence - string
<strong>Let</strong> RoutableInstance(PLMCoreInstance)
<strong>Let</strong> DisplayMessage(String)
<strong>Set</strong> RoutableInstance = ThisObject.Instance
<strong>Let</strong> ListOfSheetCntrInfos(List)
GetSchSheetConnectorInformations(RoutableInstance, ListOfSheetCntrInfos)
<strong>Let</strong> j = 1
<strong>Let</strong> jsize = 0
jsize = ListOfSheetCntrInfos->Size()
<strong>Let</strong> ListofRelatedName(List)
<strong>for</strong> j <strong>while</strong> j<=jsize
<strong>{<!-- --></strong>
<strong>Let</strong> SheetCntrInfos(Feature)
<strong>set</strong> SheetCntrInfos = ListOfSheetCntrInfos.GetItem(j)
<strong>if</strong>(SheetCntrInfos <> NULL)
<strong>{<!-- --></strong>
//Retrieve the information about each sheet connector
DisplayMessage = " Input Routable : " + RoutableInstance.GetAttributeString("PLM_ExternalID") + " | "
DisplayMessage = DisplayMessage + "Active Sheet Connector Name = " + SheetCntrInfos.GetAttributeString("SheetConnector_Object_Name")+ " | "
<strong>Let</strong> RelatedOffSheetName(String)
<strong>Let</strong> i = 1
<strong>Set</strong> ListofRelatedName = SheetCntrInfos.GetAttributeObject("SheetConnector_RelatedOffSheetObject_Name")
<strong>for</strong> i <strong>while</strong> i<=ListofRelatedName->Size()
<strong>{<!-- --></strong>
RelatedOffSheetName = ListofRelatedName[i]
<strong>if</strong> (RelatedOffSheetName <> "")
DisplayMessage = DisplayMessage + " | " + "Related OffSheet Name= " + RelatedOffSheetName+ " | "
<strong>}</strong>
<strong>Let</strong> RelatedRoutableInstance(PLMCoreInstance)
<strong>Set</strong> RelatedRoutableInstance = SheetCntrInfos.GetAttributeObject("SheetConnector_RelatedRoutable")
<strong>if</strong> (RelatedRoutableInstance <> NULL)
DisplayMessage = DisplayMessage + "Related Routable Instance = "+ RelatedRoutableInstance.GetAttributeString("PLM_ExternalID")+ " | "
<strong>Let</strong> RelatedComponentInstance(PLMCoreInstance)
<strong>Set</strong> RelatedComponentInstance = SheetCntrInfos.GetAttributeObject("SheetConnector_RelatedComponent")
<strong>if</strong> (RelatedComponentInstance <> NULL)
DisplayMessage = DisplayMessage + "Related Component Instance = "+ RelatedComponentInstance.GetAttributeString("PLM_ExternalID")+ " | "
<strong>Let</strong> SheetInst(DIFSheetInstance)
<strong>Set</strong> SheetInst = SheetCntrInfos.GetAttributeObject("SheetConnector_SheetInstance")
<strong>if</strong> (SheetInst <> NULL)
DisplayMessage = DisplayMessage + " | " + "Sheet Instance = " + SheetInst.GetAttributeString("PLM_ExternalID")
<strong>Let</strong> Sheet(DIFSheet)
<strong>Set</strong> Sheet = SheetCntrInfos.GetAttributeObject("SheetConnector_SheetReference")
<strong>if</strong> (Sheet <> NULL)
DisplayMessage = DisplayMessage + " | " + "Sheet Reference = " + Sheet.Name+ " | "
<strong>Let</strong> ViewInstance(DIFViewInstance)
<strong>Set</strong> ViewInstance = SheetCntrInfos.GetAttributeObject("SheetConnector_ViewInstance")
DisplayMessage = DisplayMessage + "View Instance= " + ViewInstance.GetAttributeString("PLM_ExternalID")+ " | "
<strong>Let</strong> ViewRef(DIFView)
<strong>Set</strong> ViewRef = SheetCntrInfos.GetAttributeObject("SheetConnector_ViewReference")
DisplayMessage = DisplayMessage + "View Reference= " + ViewRef.Name+ " | "
<strong>Let</strong> PositionX(Real)
<strong>Set</strong> PositionX = SheetCntrInfos.GetAttributeReal("SheetConnector_PositionX_InSheet")
DisplayMessage = DisplayMessage + " | "+ "PositionX= " + PositionX+ " | "
<strong>Let</strong> PositionY(Real)
<strong>Set</strong> PositionY = SheetCntrInfos.GetAttributeReal("SheetConnector_PositionY_InSheet")
DisplayMessage = DisplayMessage+ "PositionY= " + PositionY+ " | "
<strong>Let</strong> FramePositionX(String)
<strong>Set</strong> FramePositionX = SheetCntrInfos.GetAttributeString("SheetConnector_FramePositionX")
DisplayMessage = DisplayMessage + "FramePositionX= " + FramePositionX+ " | "
<strong>Let</strong> FramePositionY(String)
<strong>Set</strong> FramePositionY = SheetCntrInfos.GetAttributeString("SheetConnector_FramePositionY")
DisplayMessage = DisplayMessage + "FramePositionY= " + FramePositionY+ " | "
Message(DisplayMessage)
<strong>}</strong>
<strong>}</strong>