Customize KBL Export of Occurrence (ELE_AddCustomizedKBLElementsToOccurrence)

An opening ID is an entry point used to customize business logic. The Customize KBL export of Occurrence opening ID allows you to customize the attributes of an occurrence 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 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 KBL 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_AddCustomizedKBLElementsToOccurrence
Customization intent: Computation
Execution context: Client

The BR can be used to manage attributes of occurrence of :

  • Any type of electrical device occurrence
  • Accessory
  • Cable

Input Objects

Input objects must be of the following type: ThisObject is a Feature.

Context Object Parameters

Parameter Name Type Read/Write Comments
KBL_custo (output) String Write String containing the XML code specifying the attributes to be set or reset within the KBL structure of the occurrence.
KBL_user_custo (output) String Write String containing the XML code specifying the customer attributes to be added in the KBL structure of the occurrence.

Sample

The following sample gives an example of the business rule syntax of electrical harness with physical system and electrical geometry including connectors and supports.

let sKBLcusto(String)
let sKBLuser(String)

let Fixing_occurence(SharedSupportPartOccurrence)
let Connector_occurrence(Elec3DSingleInsertConnectorOccurrence)

set Connector_occurrence=ThisObject
set Fixing_occurence=ThisObject

/* init custo string with empty XML content */
sKBLuser="</>"       /*   user xml content  - does not exist in kbl definition */
sKBLcusto="</>"    /*    override the default value of kbl attribute */ 

if   ( Connector_occurrence <>  NULL  )
{
	// add user xml tags
	sKBLuser="<UserAttribute1>"+"value1"+"</UserAttribute1>" 	
    sKBLuser=sKBLuser+"<UserAttribute2>"+"value2"+"</UserAttribute2>"
	// customize kbl attribute <description>
	sKBLcusto="<Description>+"User Description"+</Description>" 
}
else if ( Fixing_occurence <>  NULL  )
{
    // add user xml tags
	sKBLuser="<FixingAttribute>"+"FixingType"+"</FixingAttribute>" 
}
Parameters.SetAttributeString("KBL_custo",sKBLcusto)
Parameters.SetAttributeString("KBL_user_custo",sKBLuser)