Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
Validation | Boolean |
Write | TRUE if the part is an End Item and FALSE otherwise. |
Sample
The following sample determines if a part is an End Item or not.
Let iPartReference(Part)
Let AttValue(String)
Validation = true
set iPartReference = ThisObject
if ( NULL <> iPartReference)
{
if (iPartReference->HasAttribute("End Item") == true)
{
AttValue = iPartReference->GetAttributeString("End Item")
if (AttValue <> "Yes")
{
Validation = false
}
}
}