Synchronization Rule for Attributes

In the DELMnOSynchronizePLMAttributes.CATRule file, you can define a list of PLM Attributes and a list of Types, which considers during the synchronization process. The Synchronization Manager command processes the list returned by the CATRule file. If modifies or not, this verifies the attributes in the list. If they are modified, then in the Synchronization Manager command panel, the status is shown as Modified.

This page discusses:

General Information

This rule is executed duringSynchronization Manager .

You can modify the existing CATRule file from following the location of your installation of the 3DExperience...\ win_b64\ resources\knowledge\scripts

Input Objects

Inputs for the rule must be of the following type:

Parameters corresponds to the context object.

The Parameter input object has two inputs registered in it.

ListOfObjectTypes – It stores the list of types (String). Valid values are as follows:

  1. Reference
  2. Instance
  3. CustomRef
  4. CustomInst

ListOfAttributeKeys – It stores the list of Unique Ids (Internal Names) of PLM Attribute.

Sample

The following example explains how to return Description (V_description) and Title (V_Name) PLM attributes and Reference as Type from the CATRule.

/* ---- output ---- */
let ListOfObjectTypes (List)
let ListOfAttributeKeys (List)

set ListOfObjectTypes = Parameters->GetAttributeObject(“ListOfObjectTypes”)
set ListOfAttributeKeys = Parameters->GetAttributeObject(“ListOfAttributeKeys”)

if (ListOfObjectTypes <> NULL)
{
	/* --> Start to modify */
	ListOfObjectTypes.Append("Reference")
	ListOfObjectTypes.Append("Reference")	
	/* <-- End to modify */
}
if (ListOfAttributeKeys  <> NULL)
{
	/* --> Start to modify */
	ListOfAttributeKeys.Append("V_description")
	ListOfAttributeKeys.Append("V_Name")
	/* <-- End to modify */
}
Parameters.SetAttributeObject("ListOfObjectTypes ", ListOfObjectTypes)
Parameters.SetAttributeObject("ListOfAttributeKeys ", ListOfAttributeKeys)