Extract Component Business Rule (EHFSynchronization_ComputationIfExtractComponent)

An opening ID is an entry point used to customize business logic. The Extract component business rule enables the customization of the Extract process by identifying the supports to be extracted or not.

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 when extracting 3D content while using the Extract or the Formboard commands.

This opening ID is used to customize the extract of supports, depending on if they are placed in the electrical geometry or not.

DefinitionDescription
PLM Opening IDEHFSynchronization_ComputationIfExtractComponent
Customization intent Computation
Execution contextClient

Input Objects

Input objects must be of the following types:

  • ThisObject corresponds to the support (ProductOccurence).
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead or WriteComments
FactTypeAny EKL typeType of ThisObject in the business rule body.
GetIfSupportOutsideBoolean ReadReturns the position of the support.

  • If True: the support is not in the electrical geometry.
  • If False: the support is in the electrical geometry.

SetIfSupportExtractBooleanWriteSets if the support is extracted or not.

  • If True: the support is extracted.
  • If False: the support is not extracted.

Sample

The following sample illustrates how to not extract a support which is placed outside the electrical geometry.

/* CATRule signature (do not edit) : (ThisObject : #In Support (ProductOccurrence), Parameters : #In RuleContext) : #Void */
//declaration
let ifSupportOutSideGBN(Boolean)
let ifSupportExtract(Boolean)

set ifSupportExtract=true

//read input parameter 
set ifSupportOutSideGBN=Parameters.GetAttributeBoolean("GetIfSupportOutside")

//set do not extract support if outside of the Electrical Geometry
//in current sample we are not extracting the supports outside the Electrical Geometry
if (true == ifSupportOutSideGBN)
	set ifSupportExtract=false

//set output
Parameters.SetAttributeBoolean("SetIfSupportExtract", ifSupportExtract)