Customize KBL Export of Protective Covering (ELE_AddCustomizedKBLElementsToProtection)

An opening ID is an entry point used to customize business logic. The Customize KBL export of Internal Protection opening ID allows you to customize the attributes of a protective covering during an export in KBL format.

This opening ID is available in the Electrical Data Exchange 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 when using the Export Electrical System command. For more information, see Electrical Manufacturing Preparation User's Guide: Electrical Physical System Export in KBL: Exporting an Electrical Physical System in KBL.

This opening ID is used to customize and valuate:

  • KBL attributes from the standard schema
  • Attributes not defined in the KBL standard schema

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

PLM Opening ID: ELE_AddCustomizedKBLElementsToProtection
Customization intent: Computation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: a protective covering.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
KBL_custo (output)String WriteString containing the XML code specifying the attributes to be set or reset within the KBL structure of the protective covering.
KBL_user_custo (output)StringWriteString containing the XML code specifying the customer attributes to be added in the KBL structure of the protective covering.

Sample

The following sample gives an example of the business rule syntax to valuate and customize KBL attributes for a conductor and a support.

let sKBLcusto(String)
let sKBLuser(String)
let Support_reference(Support)
let Connector_reference(SingleInsertConnector)
set Support_reference=ThisObject
set Connector_reference=ThisObject
/* init custo string with empty XML content */
sKBLuser="</>"
sKBLcusto="</>"
if   ( Support_reference <>  NULL  )
{
	sKBLuser="<UserCusto1>FIXING_param1</UserCusto1>" 	
	sKBLuser=sKBLuser+ "<UserCusto2>FIXING_param2</UserCusto2>" 
	sKBLcusto="<Company_name>FixingProvider</Company_name>" 
}
else if   ( Connector_reference <>  NULL  )
{
	sKBLuser="<UserCusto1>HOUSING_param1</UserCusto1>" 	
	sKBLuser=sKBLuser+ "<UserCusto2>HOUSING_param2</UserCusto2>"
	sKBLcusto="<Company_name>ConnectorProvider </Company_name>" 
}

Parameters.SetAttributeString("KBL_custo",sKBLcusto)
Parameters.SetAttributeString("KBL_user_custo",sKBLuser)