Execute Synchronize Attributes (L2P_ExecuteSynchroniseAttributes)

An opening ID is an entry point used to customize business logic. The Execute Synchronize Attributes opening ID is available in the Logical to Physical Assistant 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 each time the physical object (equipment, connector, wire) is synchronized with logical:

  • When you click Synchronize Properties on a row with a physical object.
  • When you place or create an object using the Auto Place or Manual Place action.

This opening ID is used to update custom attributes or links of physical object.

Definition Description
PLM Opening ID L2P_ExecuteSynchronizeProperties
Customization intent Execution
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: an L2PItem object for which Synchronize properties is triggered.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
FactType Any EKL type — Type of ThisObject in the business rule body.

Sample

let facet2dOcc(LogicalOccurrence)
let facet3DOcc(ProductOccurrence)
let facet2DRef(RFLVPMLogicalReference)
let facet3DRef(VPMReference)
let facet2DInst(RFLVPMLogicalInstance)
let facet3DInst(VPMInstance)
let str2d(String)
let str3d(String)
set facet2dOcc = ThisObject.Facet2D
set facet3DOcc = ThisObject.Facet3D

if (  facet3DOcc <> NULL and facet2dOcc <> NULL )
{
	set facet3DInst = facet3DOcc.Instance
	set facet2DInst = facet2dOcc.Instance
}
if (  facet2DInst <> NULL and facet3DInst <> NULL )
{
  /* Update 3D facet Instance Description with value from logical instance description */
	facet3DInst.SetAttributeString("V_description", facet2DInst.V_description)
}