Attribute Mapping for Family Item Generated Model with Table Columns (ComponentsFamilyAttributeMapping)

An opening ID is an entry point used to customize business logic. Attribute Mapping for Family Item Generated Model with Table Columns is used to define business rules for mapping attributes with table columns.

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 for any component family reference.

The following table provides you with information related to the definition of the opening ID:

Definition Description
PLM Opening ID Attribute mapping for family item with table columns
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following type:

  • ThisObject
  • Parameters

Context Object Parameters

Parameter Name Type Read or Write Comments
Columns List Read/Write Name of table columns to map.
Attributes List Read/Write Internal name of attribute.

Sample

The following sample maps "V_Name" attribute internal name with "Configuration" table column. It also maps "V_Title" attribute internal name with "Part Title" table column:

/*Rule created by xyz 1/4/2020*/

//Define list for attribute internal names
let lAttributes (List)
lAttributes.Append (“V_Name”)
lAttributes.Append (“V_Title”)

//Define list of Table columns
//V_Name ==> Configuration
//V_Title ==> Part Title

let lColumns (List)
lColumns.Append (“Configuration”)
lColumns.Append (“Part Title”)

//Set those lists in Parameters rules context
Parameters.SetAttributeObject(“Attributes”, lAttributes)
Parameters.SetAttributeObject(“Columns”, lColumns)