Context Object Parameters
Parameter Name |
Type |
Read or Write |
Comments |
ListComputed3DRef |
List |
Read |
List of references computed from the predefined part
number. |
PhysicalElement |
VPMReference |
Write |
Reference selected by the business rule. |
Sample
let selectedOcc(ProductOccurrence)
let father(ProductOccurrence)
Let sName (STRING)
let inst (VPMInstance)
let refer (VPMReference)
let refList (List)
let size(Integer)
let index(Integer)
let bpartfound(Boolean)
set refList = ThisObject.GetAttributeObject("ListComputed3DRef")
set size = refList.Size()
bpartfound = false
index=1
for index while index <= size
{
if( bpartfound == false)
{
refer = refList.GetItem(index)
if( (NULL <> refer) and (refer.V_discipline == "SameAsValueNeeded") )
{
bpartfound = true
Parameters.SetAttributeObject("PhysicalElement", refer)
Parameters.SetAttributeInteger("Severity", 0)
Parameters.SetAttributeString("Message", "Done OK")
}
}
}