Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
iPartOccurrence | ObjectType | Read | Occurrence of the design part. |
iPartContext | ObjectType | Read | Context of the occurrence of the design part. |
Validation | Boolean |
Write | TRUE if the Manufactured Part generation is authorized for this part and FALSE otherwise. |
Sample
The following sample checks if Manufactured Part generation is allowed for this part.
/* INPUTS */
Let PartOccurence(ProductOccurrence) /* the occurrence of design part */
Let PartInstance(VPMInstance) /* the related instance of the part occurrence */
Let PartName(String)
/* OUPUTS */
set PartOccurence= Parameters->GetAttributeObject("iPartOccurence")
PartInstance = PartOccurence.Instance
if (PartInstance <> NULL)
{
PartName = PartInstance->GetAttributeString("PLM_ExternalID")
if (PartName == "Product23072-CI(*).1")
{
Validation = true
}
else
{
Validation = false
}
}