Compute List of Family IDs for the Provided Objects (L2P_ComputeFamilyName)

An opening ID is an entry point used to customize business logic. The Compute List of Family IDs for the Provided Objects opening ID is available in the Logical to Physical Assistant Resources resource set.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked to get the Family ID for one or more logical or physical objects, for which family name is not known OOTB or it is not computed based on the association with any 2D and 3D facet. This rule may be triggered during analysis and actions like Reconcile or Select 3D reference.

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

Input Objects

Input objects must be of the following types:

  • ThisObject: None
  • Parameters corresponds to the context object.

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