Context Object Parameters
| Parameter Name |
Type |
Read or Write |
Comments |
ListInputObjects |
List |
Read |
List of logical or physical objects for which family name is to
be computed. |
ListOfFamilyIDs |
List |
Write |
The output will be ignored if the size of output list does not
match with input list. |
Sample
let iList(List)
let AttrFamilyIDList(List)
let lsize(Integer)
let obj (Feature)
set iList = Parameters.GetAttributeObject("ListInputObjects")
for obj inside iList
{
let logOcc (LogicalOccurrence)
let logRef (RFLVPMLogicalReference)
let physOcc (ProductOccurrence)
let physRef (VPMReference)
let sFamily (String)
set logOcc = obj
set physOcc = obj
if(NULL <> logOcc)
{
set logRef = logOcc.Reference
if(NULL <> logRef)
set sFamily = logRef.V_description
}
else if(NULL <> physOcc)
{
set physRef = physOcc.Reference
if(NULL <> physRef)
set sFamily = physRef.V_description
}
AttrFamilyIDList.Append(sFamily)
}
Parameters.SetAttributeObject("ListOfFamilyIDs", AttrFamilyIDList )
Notify("Family Name BR Called")