Interference Creation Opening (PLMPIMOpeningIDCreationBL)

An opening ID is an entry point used to customize business logic. The Interference creation opening ID is available in the interference business logic management resource set and it is used to control the creation 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 created more specifically when an interference metric is being created.

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject: the Interference metric to be created (PLMPIMMetricReference).
  • Parameters: corresponds to the context object.

Context Object Parameters

Parameter Name Type Read/Write Comments
CustoType String Read Final type being manipulated (useful with specialized object).
SimItf ObjectType Read Interference Simulation being executed.
ReferenceSCA ObjectType Read Occurrence path from Root to SCA (Smallest Common Ancestor).
Occurrence1 ObjectType Read Occurrence path of the first interfering Part.
Occurrence2 ObjectType Read Occurrence path of the second interfering Part.
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).
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).
ValidityStatus String Read Validity status of the interference.
CreateInterference Boolean Read/Write Output of the BL. If TRUE (default value), the Interference is created. If FALSE, the Interference is not created.

Samples

The following sample illustrates how to refuse the creation of small clash interferences when their penetration depth is under 2mm and their penetration volume is under 200m㎥.

/* Rule : PLMPIMOpeningIDCreationBL */
/*
ThisObject : #In PLMPIMMetricReference
Parameters : #In RuleContext
*/

/* Attr from ThisObject */
Let V_Itf_Type(String)

/* 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 (ThisObject->HasAttribute("V_Itf_Type")) 
{
	V_Itf_Type = ThisObject->GetAttributeString("V_Itf_Type")
	if ((V_Itf_Type == "Clash") AND ((Quantifier < 2mm) AND (ClashVolume < 200mm3)))
	{
		Parameters.SetAttributeBoolean("CreateInterference", false)
	}
}


The following sample illustrates how to modify the properties of interference entities based on their type and numerical values.

/* Rule : PLMPIMOpeningIDCreationBL */
/*
ThisObject : #In PLMPIMMetricReference
Parameters : #In RuleContext
*/

/* Attr from ThisObject */
Let V_Itf_Type(String)

/* 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 (ThisObject->HasAttribute("V_Itf_Type"))
{
	V_Itf_Type = ThisObject->GetAttributeString("V_Itf_Type")
	if (V_Itf_Type == "Clash")
	{
		if (Quantifier < 2mm)
		{
			ThisObject.V_Itf_User_Type = "Potential_Clash"
			ThisObject.V_description = "This clash is so small that we say it is a contact"
		}
		else if (ClashVolume > 500mm3)
		{
			ThisObject.V_description = "This clash must be analysed because it's volume is over 500mm3"
			ThisObject.V_Itf_Analysis = "KO"
		}
	}
	else if (V_Itf_Type == "Potential_Clash")
	{
		ThisObject.V_description = "It is ok, we don't check contacts"
		ThisObject.V_Itf_Analysis = "OK"
		ThisObject.V_Itf_User_Type = "No_Interference"
	}
}

The following sample illustrates how to exclusively create interferences between IFC AecWall and AecSlab elements.

/* Rule : PLMPIMOpeningIDCreationBL */
/*
ThisObject : #In PLMPIMMetricReference
Parameters : #In RuleContext
*/

/* Attr from Parameters */
let IFCtypes1(List)
let IFCtypes2(List)

let IFC_AecType1 (String)
let IFC_AecType2 (String)

set IFC_AecType1 = "NonIFCType"
set IFC_AecType2 = "NonIFCType"

Parameters.SetAttributeBoolean("CreateInterference", false)

/* Get IFC_Types_1 */
if ( Parameters->HasAttribute("IFC_Types_1") )
{
  IFCtypes1 = Parameters->GetAttributeObject("IFC_Types_1")
  let idx1 = 1
  for idx1 while idx1 <= IFCtypes1.Size()
  {
    let IFC_Type1(String)
    set IFC_Type1 = IFCtypes1->GetItem(idx1)
  }
}

/* Get IFC_Types_2 */
if ( Parameters->HasAttribute("IFC_Types_2") )
{
  IFCtypes2 = Parameters->GetAttributeObject("IFC_Types_2")
  let idx2 = 1
  for idx2 while idx2 <= IFCtypes2.Size()
  {
    let IFC_Type2(String)
    set IFC_Type2 = IFCtypes2->GetItem(idx2)
  }
}

/* Get last AEC type 1 */
if (IFCtypes1.Size() <= 3)
{
  set IFC_AecType1 = IFCtypes1->GetItem(IFCtypes1.Size()-2)
}

/* Get last AEC type 2 */
if (IFCtypes2.Size() <= 3)
{
  set IFC_AecType2 = IFCtypes2->GetItem(IFCtypes2.Size()-2)
}

/* Create interference only if between AecWall and AecSlab */
if ((IFC_AecType1 like "AecWall" or IFC_AecType1 like "AecSlab") and (IFC_AecType2 like "AecWall" or IFC_AecType2 like "AecSlab"))
{
  Trace(1,"    Interference between AecWall and AecSlab              CREATED ")
  Parameters.SetAttributeBoolean("CreateInterference", true)
}
else
  Trace(1,"    Interference between # and #              NOT CREATED ", IFC_AecType1, IFC_AecType2)

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