Computation Rule for Undefined Faces (CCV_UndefinedFacesTreatment)

An opening ID is an entry point used to customize business logic. Computation rule for undefined faces customizes the treatment of undefined faces, that is of faces that do not clearly belong to a specific area (Core, cavity, slider, etc.).

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:

  • To automatically transfer undefined faces to a specific area.

This opening ID is used to customize:

  • The use of area ratio.
  • The use of projected areas ratio.
  • The value under which an area is ignored.

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read/Write Comments
IndexSlider Integer Read Index of the pulling direction:
  • 0: Main pulling direction
  • n: nth secondary pulling direction
DraftAngle Integer Read Value of the draft angle
SurfaceArea String Read Area of the faces
ListAngles List Read Angles between the facets normal and the pulling direction.
Destination Integer Write
  • 1: CoreSide
  • 2: CavitySide
  • 3: OtherSide
  • 4: NoDraftSide
  • 5: UndercutSide
  • 6: SliderSide
InfoMessage String Write Information message

Sample

Let FaceArea(AREA) 
Let FaceAnglesToPullingDirection(List)

Let CavitySide(Integer)
Let CoreSide(Integer)
Let OtherSide(Integer)
Let NoDraftSide(Integer)
Let UndercutSide(Integer)
Let SliderSide(Integer)

CavitySide = 1
CoreSide = 2
OtherSide = 3
NoDraftSide = 4
UndercutSide = 5
SliderSide = 6

set FaceAnglesToPullingDirection = Parameters->GetAttributeObject("ListAngles")
FaceArea = Parameters.GetAttributeReal("SurfaceArea")*1mm2

if(IndexSlider < 1)
{ 
                /* This is the main pulling direction */
                if(FaceArea < 1mm2) Parameters.SetAttributeInteger("Destination",1)}