Interference Update Opening (PLMPIMOpeningIDUpdateBL)

An opening ID is an entry point used to customize business logic. The interference update opening ID is available in the interference business logic management resource set and it is used to control the update of interferences.

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

This page discusses:

This page discusses:

General Information

This opening ID is invoked when an interference is being updated, following the recalculation of an existing interference metric.

The table below provides you with information related to the definition of the opening ID.

PLM Opening ID: PLMPIMOpeningIDUpdateBL
Customization intent: Execution
Execution context: Client

Input Objects

Input objects must be of the following types:

  • Parameters: corresponds to the context object.

Context Object Parameters

Parameter Name Type Read/Write Comments
SimItf ObjectType Read Interference Simulation being re-executed.
ItfContext_Previously_Computed ObjectType Read Contextual Interference being updated.
V_Itf_Case_Of_Calc String Read Type of computation used to calculate the Interference.
V_Itf_Spec_Clearance_value Length Read Value of the clearance specification. Unit Millimeter (mm).
V_Itf_Type String Read Interference type from the solver.
V_Itf_Previous_Analysis String Read Previous Interference analysis status.
V_Itf_Real_Tolerance_Used_For_First_Occurence Length Read Tolerance used for the first occurrence. Unit Meter (m).
V_Itf_Real_Tolerance_Used_For_Second_Occurence Length Read Tolerance used for the second occurrence. Unit Meter (m).
V_Itf_Location_In_Context List(Length) Read Location of the Interference in the Root context. List size = 3.
Quantifier Length Read Value representing the penetration depth in case of Clash and the minimum distance in case of Clearance.
ClashVolume Volume Read Value representing the intersection volume of Clash (exists only if valued).
Itf_FeatureID1 String Read Feature id of the sub element under the first interfering Part (exists only if valued).
Itf_FeatureID2 String Read Feature id of the sub element under the second interfering Part (exists only if valued).
Itf_FeatureName1 String Read Feature name of the sub element under the first interfering Part (exists only if valued).
Itf_FeatureName2 String Read Feature name of the sub element under the second interfering Part (exists only if valued).
AnchoragePoints List(Length) Read Anchorage points of the penetration vector in the SCA context. List size = 6.
IFC_Names_1 List(String) Read IFC element names under the first interfering Part (exists only if valued).
IFC_Names_2 List(String) Read IFC element names under the second interfering Part (exists only if valued).
IFC_Types_1 List(String) Read IFC element types under the first interfering Part (exists only if valued).
IFC_Types_2 List(String) Read IFC element types under the second interfering Part (exists only if valued).
IFC_IDs_1 List(String) Read IFC element identifiers under the first interfering Part (exists only if valued).
IFC_IDs_2 List(String) Read IFC element identifiers under the second interfering Part (exists only if valued).
V_Context_Validity_Status String Read Validity status of the Interference
V_Itf_User_Type String Read/Write User defined Interference type.
V_Itf_Analysis String Read/Write Interference analysis status.
V_description String Read/Write Description of the Interference
UpdateInterference Boolean Read/Write Output of the BL. If TRUE (default value), the Interference is updated. If FALSE, the Interference is not updated.

Samples

The following sample illustrates how to pre-value the analysis of clash interferences via business logic based on numerical attributes such as penetration depth and volume.

/* Rule : PLMPIMOpeningIDUpdateBL */
/*
Parameters : #In RuleContext
*/

/* Attr from Parameters */
Let Quantifier(Length)
Let ClashVolume(Volume)

if (Parameters->HasAttribute("Quantifier"))
{
	Quantifier = Parameters->GetAttributeReal("Quantifier")*1m
}

if (Parameters->HasAttribute("ClashVolume"))
{
	ClashVolume = Parameters->GetAttributeReal("ClashVolume")*1m3
}

if (Parameters->GetAttributeString("V_Itf_Type") == "Clash")
{
	if (Quantifier<= 1.5mm)
	{
		Parameters->SetAttributeString("V_Itf_Analysis","OK")
		Parameters->SetAttributeString("V_description","Clash marked as OK because quantifier <= 1.5mm")
	}
	else if (ClashVolume >= 200mm3)
	{
		Parameters->SetAttributeString("V_Itf_Analysis","KO")
		Parameters->SetAttributeString("V_description","Clash marked as KO because it's volume is over 200mm3")
	}
}

The following sample illustrates how to pre-value the interference description field with IFC names via business logic.

/* Rule : PLMPIMOpeningIDUpdateBL */
/*
Parameters : #In RuleContext
*/

let rc = 1

/* Attr from Parameters */
let IFCnames1(List)
let IFCnames2(List)

let bPointingFeature(Boolean)
set bPointingFeature = false

let ItfMetric(PLMPIMMetricReference)
let ItfContext(SIMItfContextOfInterference)
set ItfMetric = ThisObject

/* Get previously computed interference metric */
if (Parameters->HasAttribute("ItfContext_Previously_Computed"))
{
  ItfContext = Parameters->GetAttributeObject("ItfContext_Previously_Computed")

  if (ItfContext <> NULL)
    rc = ItfContext.GetInterferenceMetric(ItfMetric)
}

/* Check if metric points to features either IFC, electric, pathway, etc ... */
if (ItfMetric <> NULL and rc ==0)
  rc = ItfMetric->IsPointingToFeature(bPointingFeature)

if (bPointingFeature == true and rc == 0 )
{
  
  /* Get IFC names of 1st element */
  if ( Parameters->HasAttribute("IFC_Names_1") )
  {
    IFCnames1 = Parameters->GetAttributeObject("IFC_Names_1")
    let idx1 = 1
    for idx1 while idx1 <= IFCnames1.Size()
    {
      let IFC_Name1(String)
      set IFC_Name1 = IFCnames1->GetItem(idx1)
    }
  }  
  
  /* Get IFC names of 2nd element */
  if ( Parameters->HasAttribute("IFC_Names_2") )
  {
    IFCnames2 = Parameters->GetAttributeObject("IFC_Names_2")
    let idx2 = 1
    for idx2 while idx2 <= IFCnames2.Size()
    {
      let IFC_Name2(String)
      set IFC_Name2 = IFCnames2->GetItem(idx2)
    }
  }
  
  /* Add an IFC name from 1st and 2nd elements to the interference's description  */
  if (IFCnames1.Size() >= 3 and IFCnames2.Size() >= 3)
  {
    let desc (String)
    set desc = IFCnames1->GetItem(IFCnames1.Size()-2) + " / " + IFCnames2->GetItem(IFCnames2.Size()-2)
    ThisObject.V_description = desc
    Trace(1,"Interference description set to : #", desc)
  }
}
else
  Trace(1,"This interference is not IFC")

Trace(1," ---------------------------------------------------------------------------------------------- ")