Compute 3D position at which new component will be placed (L2P_ComputeComponent3DPosition)

An opening ID is an entry point used to customize business logic. The Compute 3D position at which new component will be placed opening ID enables the computation of the position for physical components linked to logical instances during their analysis and/or synchronization.

This opening ID is available in the Logical to Physical Synchronization 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 during the analysis of a logical instance, when you enter the coordinates of its corresponding physical instance to be created.

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject: Logical component to be synchronized.
  • Parameters corresponds to the context object.

    A message attribute is displayed in the synchronization report.

Context Object Parameters

Parameter NameTypeRead/WriteComments
L2PPhysicalXLength Write The X Coordinate (length) for the physical component.
L2PPhysicalY LengthWrite The Y Coordinate (length) for the physical component.
L2PPhysicalZ LengthWrite The Z Coordinate (length) for the physical component.

Sample

The following sample illustrates the syntax of the business rule.

/* CATRule signature (do not edit) : (ThisObject : #In Unknown, Parameters : #In RuleContext) : #Void */

/* CATRule signature (do not edit) : (ThisObject : #In RFLVPMLogicalInstance, Parameters : #In RuleContext) : #Void */

let X(Length)
let Y(Length)
let Z(Length)
X=3000.0mm
Y=0.0mm
Z=0.0mm

Parameters.SetAttributeReal("L2PPhysicalX", X)
Parameters.SetAttributeReal("L2PPhysicalY", Y)
Parameters.SetAttributeReal("L2PPhysicalZ", Z)
Parameters.Severity = 1
Parameters.Message = "Computation of 3D Position OK"