Symmetry Default Method Computation (Symmetry_DefaultMethod_Computation)

An opening ID is an entry point used to customize business logic. Symmetry Default Method Computation allows you to define default symmetry planes and types.

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 only during the symmetry recursive generation process.

This opening ID is used to customize a symmetry method and a symmetry plane for all new references generated during the symmetry recursive generation process. Default symmetry method during recursive symmetry generation can be retrieved.

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject corresponds to the original Reference or RepReference.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
SymmetryDefaultMethodinteger Read/WriteSets or gets default symmetry method:
  • New Reference = 1
  • Same Reference = 2
  • Existing Reference = 4
  • Recursive Generation = 8
  • No Reference = 16
  • Recursive without Rep = 32
SymmetryDefaultPlaneintegerRead/WriteSets or gets default symmetry plane:
  • XY = 1
  • YZ = 2
  • ZX = 3

Sample

The following sample illustrates how to customize the default plane and method:

In the below example, the plane is forced to 3 (ZX) and the default method is forced to 1 (New Reference).

Let varPlane = 3

/* New Reference for each product */
Parameters.SetAttributeInteger("SymmetryDefaultMethod", 1) 

/* Retrieve the plane set by user in Symmetry UI */
varPlane = Parameters.GetAttributeInteger("SymmetryDefaultPlane")

/* return the user value */
Parameters.SetAttributeInteger("SymmetryDefaultPlane", varPlane)