Select a 3D Physical Reference from Computed 3D References (L2P_Select3DReference)

An opening ID is an entry point used to customize business logic. The Select a 3D Physical Reference from Computed 3D References opening ID is available in the Logical to Physical Assistant Resources resource set.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked to select a physical reference from a list of computed 3D references corresponding to the logical object.

Definition Description
PLM Opening ID L2P_Select3DReference
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: an L2PItem object, containing the data found during the analysis of that logical object. You can access the list of the computed references from the below attributes on L2PItem type.
  • Parameters corresponds to the context object.

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")
		 }
        }
}